From 10d2a5935684fdf32f06b1cc38481314fce5654e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Thu, 15 Dec 2022 22:09:09 +0100 Subject: [PATCH] Clippy: Fix (clippy::needless_borrow) --- macros/src/check.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/src/check.rs b/macros/src/check.rs index 374fcedd09..b0ad6f8715 100644 --- a/macros/src/check.rs +++ b/macros/src/check.rs @@ -53,7 +53,7 @@ pub fn app(app: &App, _analysis: &Analysis) -> parse::Result { // If not enough tasks and first still is None, may cause // "custom attribute panicked" due to unwrap on None - return Err(parse::Error::new(first.unwrap().span(), &s)); + return Err(parse::Error::new(first.unwrap().span(), s)); } // Check that all exceptions are valid; only exceptions with configurable priorities are