From b295f5aef7dae5ca4b90fbfed065a39b145b25d7 Mon Sep 17 00:00:00 2001 From: Yoshitomo Nakanishi Date: Sun, 8 Oct 2023 20:41:55 +0200 Subject: [PATCH] Remove unnecessary `mut` from `make_fn_return_ref` --- components/salsa-2022-macros/src/tracked_fn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/salsa-2022-macros/src/tracked_fn.rs b/components/salsa-2022-macros/src/tracked_fn.rs index b458332e..b15d6ae6 100644 --- a/components/salsa-2022-macros/src/tracked_fn.rs +++ b/components/salsa-2022-macros/src/tracked_fn.rs @@ -740,7 +740,7 @@ fn specify_fn( /// Given a function def tagged with `#[return_ref]`, modifies `fn_sig` so that /// it returns an `&Value` instead of `Value`. May introduce a name for the /// database lifetime if required. -fn make_fn_return_ref(mut fn_sig: &mut syn::Signature) -> syn::Result<()> { +fn make_fn_return_ref(fn_sig: &mut syn::Signature) -> syn::Result<()> { // An input should be a `&dyn Db`. // We need to ensure it has a named lifetime parameter. let (db_lifetime, _) = db_lifetime_and_ty(fn_sig)?;