diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..8f261d3 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.86.0" +components = [ "rustfmt", "clippy" ] diff --git a/src/archive.rs b/src/archive.rs index 5fe722b..26853c0 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -49,12 +49,12 @@ impl<'a> PackItArchive<'a> { } /// Get the number of files in the archive - pub const fn len(&self) -> usize { + pub fn len(&self) -> usize { self.files.len() } /// Whether the archive contains any files or not - pub const fn is_empty(&self) -> bool { + pub fn is_empty(&self) -> bool { self.files.is_empty() }