aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2022-12-15 22:09:09 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2022-12-15 22:09:09 +0100
commit10d2a5935684fdf32f06b1cc38481314fce5654e (patch)
tree554eb5b0ba1f05ba558f1ddda1b8e6805f3e9956 /macros/src
parente31ee3fa114dbdd8a52f14292106803fb8b9bb96 (diff)
downloadrtic-10d2a5935684fdf32f06b1cc38481314fce5654e.tar.gz
rtic-10d2a5935684fdf32f06b1cc38481314fce5654e.tar.zst
rtic-10d2a5935684fdf32f06b1cc38481314fce5654e.zip
Clippy: Fix (clippy::needless_borrow)
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/check.rs b/macros/src/check.rs
index 374fcedd..b0ad6f87 100644
--- a/macros/src/check.rs
+++ b/macros/src/check.rs
@@ -53,7 +53,7 @@ pub fn app(app: &App, _analysis: &Analysis) -> parse::Result<Extra> {
// 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