mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-02-02 09:46:06 +00:00
Remove unnecessary mut
from make_fn_return_ref
This commit is contained in:
parent
59f094f512
commit
b295f5aef7
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,7 @@ fn specify_fn(
|
||||||
/// Given a function def tagged with `#[return_ref]`, modifies `fn_sig` so that
|
/// 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
|
/// it returns an `&Value` instead of `Value`. May introduce a name for the
|
||||||
/// database lifetime if required.
|
/// 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`.
|
// An input should be a `&dyn Db`.
|
||||||
// We need to ensure it has a named lifetime parameter.
|
// We need to ensure it has a named lifetime parameter.
|
||||||
let (db_lifetime, _) = db_lifetime_and_ty(fn_sig)?;
|
let (db_lifetime, _) = db_lifetime_and_ty(fn_sig)?;
|
||||||
|
|
Loading…
Reference in a new issue