aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model
diff options
context:
space:
mode:
authorkjeremy <[email protected]>2021-02-16 15:55:34 +0000
committerkjeremy <[email protected]>2021-02-16 15:55:34 +0000
commitf9bb398cc50d2cad543cd5d2d135db5574ba3a6c (patch)
tree7ae74a1d80fa0d17d389e96de978ca63374420bf /crates/project_model
parentcc49502ab47bcd20c90589226282b8f3c3df5190 (diff)
Fix a few clippy::perf warnings
Diffstat (limited to 'crates/project_model')
-rw-r--r--crates/project_model/src/build_data.rs2
1 files changed, 1 insertions, 1 deletions
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<String, BuildData>;
61 61
62impl BuildDataCollector { 62impl BuildDataCollector {
63 pub(crate) fn add_config(&mut self, workspace_root: &AbsPath, config: BuildDataConfig) { 63 pub(crate) fn add_config(&mut self, workspace_root: &AbsPath, config: BuildDataConfig) {
64 self.configs.insert(workspace_root.to_path_buf().clone(), config); 64 self.configs.insert(workspace_root.to_path_buf(), config);
65 } 65 }
66 66
67 pub fn collect(&mut self, progress: &dyn Fn(String)) -> Result<BuildDataResult> { 67 pub fn collect(&mut self, progress: &dyn Fn(String)) -> Result<BuildDataResult> {