From 0787d5e13fe662d1df45af9721986794af166c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20L=C3=B3pez?= Date: Tue, 2 Dec 2025 13:32:58 +0100 Subject: [PATCH 1/2] archive: prepare for 1.86 toolchain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove const in a few places where the 1.86 toolchain does not allow for it. Signed-off-by: Carlos López --- src/archive.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } From 0b1fc9053a61984c2ef4831e4d0b9ead6f92323c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20L=C3=B3pez?= Date: Tue, 2 Dec 2025 13:34:20 +0100 Subject: [PATCH 2/2] repo: fix toolchain to 1.86 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set the required toolchain version to 1.86, just like the main SVSM repo does. Signed-off-by: Carlos López --- rust-toolchain.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 rust-toolchain.toml 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" ]