From a79840afc903b14d14412e0075a4e0a1c640b798 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Sat, 23 Mar 2024 11:42:46 +0000 Subject: Suppress Rust 1.77 dead_code false warnings. --- tests/serde.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/serde.rs') diff --git a/tests/serde.rs b/tests/serde.rs index d7a6801..7e2e251 100644 --- a/tests/serde.rs +++ b/tests/serde.rs @@ -99,7 +99,7 @@ fn test_serialize_in_scope() -> LuaResult<()> { Err(e) => panic!("expected destructed error, got {}", e), } - struct MyUserDataRef<'a>(&'a ()); + struct MyUserDataRef<'a>(#[allow(unused)] &'a ()); impl<'a> UserData for MyUserDataRef<'a> {} -- cgit v1.2.3