From 7e0e8ba28c5a701011b194d9bebd8bc60b0d72ff Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 7 Feb 2022 09:33:34 +0100 Subject: Remove borrow that is immediately dereferenced This fixes clippy lint `clippy::needless_borrow`. Signed-off-by: Matthias Beyer --- crates/core/plugin_sm/src/plugin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/core') diff --git a/crates/core/plugin_sm/src/plugin.rs b/crates/core/plugin_sm/src/plugin.rs index fd4977c4..f7df5449 100644 --- a/crates/core/plugin_sm/src/plugin.rs +++ b/crates/core/plugin_sm/src/plugin.rs @@ -91,7 +91,7 @@ pub trait Plugin { }; let module_url = module.url.clone(); if let Some(url) = module_url { - match Self::download_from_url(module, &url, logger, &download_path).await { + match Self::download_from_url(module, &url, logger, download_path).await { Err(prepare_error) => { failed_updates.push(prepare_error); break; -- cgit v1.2.3