From 39a8e41c50be6157b7ded6252686319545c6e6fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Gyebn=C3=A1r?= Date: Thu, 7 Nov 2024 15:29:21 +0100 Subject: [PATCH] Fixes test clippy --- naga/tests/validation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/naga/tests/validation.rs b/naga/tests/validation.rs index d8e995aa7b..df8fad2ace 100644 --- a/naga/tests/validation.rs +++ b/naga/tests/validation.rs @@ -635,11 +635,11 @@ error: Function [1] 'main' is invalid )]; for (source, expected_err) in cases { - let module = naga::front::wgsl::parse_str(&source).unwrap(); + let module = naga::front::wgsl::parse_str(source).unwrap(); let err = valid::Validator::new(Default::default(), valid::Capabilities::all()) .validate_no_overrides(&module) .expect_err("module should be invalid"); - println!("{}", err.emit_to_string(&source)); - assert_eq!(err.emit_to_string(&source), expected_err); + println!("{}", err.emit_to_string(source)); + assert_eq!(err.emit_to_string(source), expected_err); } }