Remove unnecessary mut from make_fn_return_ref

This commit is contained in:
Yoshitomo Nakanishi 2023-10-08 20:41:55 +02:00
parent 59f094f512
commit b295f5aef7

View file

@ -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)?;