diff --git a/src/dfx/src/config/cache.rs b/src/dfx/src/config/cache.rs index 7491d8e701..401b8597ae 100644 --- a/src/dfx/src/config/cache.rs +++ b/src/dfx/src/config/cache.rs @@ -130,7 +130,7 @@ pub fn install_version(v: &str, force: bool) -> Result { // Copy our own binary in the cache. let dfx = temp_p.join("dfx"); - #[allow(clippy::needless_borrow)] + #[allow(clippy::needless_borrows_for_generic_args)] dfx_core::fs::write( &dfx, dfx_core::fs::read(¤t_exe).map_err(UnifiedIoError::from)?,