From f9bb398cc50d2cad543cd5d2d135db5574ba3a6c Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 16 Feb 2021 10:55:34 -0500 Subject: Fix a few clippy::perf warnings --- crates/project_model/src/build_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/project_model') diff --git a/crates/project_model/src/build_data.rs b/crates/project_model/src/build_data.rs index a5c564e0a..295b5f8ef 100644 --- a/crates/project_model/src/build_data.rs +++ b/crates/project_model/src/build_data.rs @@ -61,7 +61,7 @@ pub(crate) type BuildDataMap = FxHashMap; impl BuildDataCollector { pub(crate) fn add_config(&mut self, workspace_root: &AbsPath, config: BuildDataConfig) { - self.configs.insert(workspace_root.to_path_buf().clone(), config); + self.configs.insert(workspace_root.to_path_buf(), config); } pub fn collect(&mut self, progress: &dyn Fn(String)) -> Result { -- cgit v1.2.3