From 82d6cfd495c7e0f230ce1ac61e7a4297fa22f02f Mon Sep 17 00:00:00 2001 From: kjeremy Date: Wed, 30 Sep 2020 15:22:49 -0400 Subject: Minor clippy performance suggestions --- crates/hir/src/code_model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir') 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 { } }).flat_map(|t| t).next(); - doc_url.map(|s| s.trim_matches('"').trim_end_matches("/").to_owned() + "/") + doc_url.map(|s| s.trim_matches('"').trim_end_matches('/').to_owned() + "/") } } -- cgit v1.2.3