about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-18 16:57:40 +0100
committerGitHub <noreply@github.com>2021-02-18 16:57:40 +0100
commit04df75a4292a8bbf096fd316d0544a5a95b51e9b (patch)
treebed0af6811f1647f572f413f43e7f3757d2dec4e /src/bootstrap
parent01104b5c29fde36b7b55c8ba83c08c4dd97c4484 (diff)
parentec50a2086a7263b24795f70cfefb3a83737599f7 (diff)
Rollup merge of #82236 - matthiaskrgr:useless_conv, r=jyn514
avoid converting types into themselves (clippy::useless_conversion)
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/install.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/install.rs b/src/bootstrap/install.rs
index 22124ec67f5..b427420d577 100644
--- a/src/bootstrap/install.rs
+++ b/src/bootstrap/install.rs
@@ -53,7 +53,7 @@ fn install_sh(
 }
 
 fn default_path(config: &Option<PathBuf>, default: &str) -> PathBuf {
-    PathBuf::from(config.as_ref().cloned().unwrap_or_else(|| PathBuf::from(default)))
+    config.as_ref().cloned().unwrap_or_else(|| PathBuf::from(default))
 }
 
 fn prepare_dir(mut path: PathBuf) -> String {