From 6fba427bf35bebdc7aa08a241ecbe83a2f725127 Mon Sep 17 00:00:00 2001 From: Omer Ben-Amram Date: Sun, 15 Dec 2019 18:15:24 +0200 Subject: remove unnecessary turbofish. --- crates/ra_lsp_server/src/world.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs index 8b48726ee..16cc11e8c 100644 --- a/crates/ra_lsp_server/src/world.rs +++ b/crates/ra_lsp_server/src/world.rs @@ -306,8 +306,7 @@ fn url_from_path_with_drive_lowercasing(path: impl AsRef) -> Result { let url_original = Url::from_file_path(&path) .map_err(|_| format!("can't convert path to url: {}", path.as_ref().display()))?; - let drive_partition: Vec<&str> = - url_original.as_str().rsplitn(2, ':').collect::>(); + let drive_partition: Vec<&str> = url_original.as_str().rsplitn(2, ':').collect(); // There is a drive partition, but we never found a colon. // This should not happen, but in this case we just pass it through. -- cgit v1.2.3