rustc 1.64.0 generates warnings for the mocked Server. This leads to a failure of test.sh.
``` warning: associated function `expect` is never used --> tests/common/mod.rs:49:1 | 49 | / mock!{ 50 | | pub Server {} 51 | | impl Server for Server { 52 | | fn cache(&self, count: u32, offset: u64) -> Result<()>; ... | 86 | | } 87 | | } | |_^ | = note: `#[warn(dead_code)]` on by default ``` --- Note: This also affects the maintenance branches. plugins/rust/tests/common/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/rust/tests/common/mod.rs b/plugins/rust/tests/common/mod.rs index 61c30464..de26c89f 100644 --- a/plugins/rust/tests/common/mod.rs +++ b/plugins/rust/tests/common/mod.rs @@ -48,6 +48,7 @@ lazy_static! { mock!{ pub Server {} + #[allow(dead_code)] impl Server for Server { fn cache(&self, count: u32, offset: u64) -> Result<()>; fn can_cache(&self) -> Result<CacheFlags>; base-commit: 20c2dc98b6bbde2f92e63d500d5e6015184bb105 -- 2.38.0 _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs