diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-02-16 16:17:36 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-16 16:17:36 +0000 |
commit | f7b7a09f752caba21f2b21ccb8f74421a599d2c6 (patch) | |
tree | 7ae74a1d80fa0d17d389e96de978ca63374420bf /crates/project_model/src | |
parent | cc49502ab47bcd20c90589226282b8f3c3df5190 (diff) | |
parent | f9bb398cc50d2cad543cd5d2d135db5574ba3a6c (diff) |
Merge #7696
7696: Fix a few clippy::perf warnings r=kjeremy a=kjeremy
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates/project_model/src')
-rw-r--r-- | crates/project_model/src/build_data.rs | 2 |
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 | ||
62 | impl BuildDataCollector { | 62 | impl 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> { |