Skip to content

Commit

Permalink
make is_gzip_path pub as it's generally useful
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Oct 24, 2023
1 parent e3a3068 commit 03c417b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Io {
}

/// Returns true if the path ends with a recognized GZIP file extension
fn is_gzip_path<P: AsRef<Path>>(p: &P) -> bool {
pub fn is_gzip_path<P: AsRef<Path>>(p: &P) -> bool {
if let Some(ext) = p.as_ref().extension() {
match ext.to_str() {
Some(x) => GZIP_EXTENSIONS.contains(&x),
Expand Down

0 comments on commit 03c417b

Please sign in to comment.