From 03c417b0b32901e3c35bd1ef8831422eb9280d6f Mon Sep 17 00:00:00 2001 From: Brent Pedersen Date: Tue, 24 Oct 2023 09:28:07 +0200 Subject: [PATCH] make is_gzip_path pub as it's generally useful --- src/io/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/mod.rs b/src/io/mod.rs index 1d7c2b6..dbdffe2 100644 --- a/src/io/mod.rs +++ b/src/io/mod.rs @@ -79,7 +79,7 @@ impl Io { } /// Returns true if the path ends with a recognized GZIP file extension - fn is_gzip_path>(p: &P) -> bool { + pub fn is_gzip_path>(p: &P) -> bool { if let Some(ext) = p.as_ref().extension() { match ext.to_str() { Some(x) => GZIP_EXTENSIONS.contains(&x),