chore: clippy fix needless_borrow

This commit is contained in:
quake
2022-07-20 21:16:35 +09:00
parent 87af0db074
commit 299777f1c9
11 changed files with 25 additions and 25 deletions

View File

@@ -218,7 +218,7 @@ impl<'d, T: Any + Clone> Deref for DynamicReadLock<'d, T> {
#[inline]
fn deref(&self) -> &Self::Target {
match self.0 {
DynamicReadLockInner::Reference(ref reference) => *reference,
DynamicReadLockInner::Reference(reference) => reference,
#[cfg(not(feature = "no_closure"))]
DynamicReadLockInner::Guard(ref guard) => guard.downcast_ref().expect(CHECKED),
}

View File

@@ -181,7 +181,7 @@ impl FnPtr {
let mut arg_values = crate::StaticVec::new_const();
args.parse(&mut arg_values);
let result = self.call_raw(&context, None, arg_values)?;
let result = self.call_raw(context, None, arg_values)?;
let typ = context.engine().map_type_name(result.type_name());