From 960c5f3f0a9a69c5d5518ed8ed85e4527684f045 Mon Sep 17 00:00:00 2001 From: Maksym Khomenko Date: Sat, 15 Jun 2024 23:55:19 +0300 Subject: [PATCH] tests: ignore unused variables This produced additional warnings in stderr, which added unexpected output and caused a mismatch inside a test and thus panicked. --- .../tests/ui/args-into-argument-not-found.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/swift-bridge-macro/tests/ui/args-into-argument-not-found.rs b/crates/swift-bridge-macro/tests/ui/args-into-argument-not-found.rs index d0d58c21..fa424698 100644 --- a/crates/swift-bridge-macro/tests/ui/args-into-argument-not-found.rs +++ b/crates/swift-bridge-macro/tests/ui/args-into-argument-not-found.rs @@ -15,12 +15,12 @@ mod ffi { } } -fn some_function(arg: u8) {} +fn some_function(_arg: u8) {} struct SomeType; impl SomeType { - fn some_method(&self, foo: u8) {} + fn some_method(&self, _foo: u8) {} } fn main() {}