diff options
author | kjeremy <[email protected]> | 2020-09-30 20:22:49 +0100 |
---|---|---|
committer | kjeremy <[email protected]> | 2020-09-30 20:22:49 +0100 |
commit | 82d6cfd495c7e0f230ce1ac61e7a4297fa22f02f (patch) | |
tree | 3a6fceb66786f1b6dd0bf711182b21dd6bd2280a /crates/hir | |
parent | 7c9ae771bca39d511a0ea7395da2b4b91b44ee12 (diff) |
Minor clippy performance suggestions
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs index 567fd91af..5721a66c4 100644 --- a/crates/hir/src/code_model.rs +++ b/crates/hir/src/code_model.rs | |||
@@ -145,7 +145,7 @@ impl Crate { | |||
145 | } | 145 | } |
146 | }).flat_map(|t| t).next(); | 146 | }).flat_map(|t| t).next(); |
147 | 147 | ||
148 | doc_url.map(|s| s.trim_matches('"').trim_end_matches("/").to_owned() + "/") | 148 | doc_url.map(|s| s.trim_matches('"').trim_end_matches('/').to_owned() + "/") |
149 | } | 149 | } |
150 | } | 150 | } |
151 | 151 | ||