aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmer Ben-Amram <[email protected]>2019-12-15 16:15:24 +0000
committerOmer Ben-Amram <[email protected]>2019-12-15 16:15:24 +0000
commit6fba427bf35bebdc7aa08a241ecbe83a2f725127 (patch)
treed565ee954ac41041cc17a9f2cda3e71abe286c9e
parent40116af598ef51cab8a1059dceda7508f994387c (diff)
remove unnecessary turbofish.
-rw-r--r--crates/ra_lsp_server/src/world.rs3
1 files changed, 1 insertions, 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<Path>) -> Result<Url> {
306 let url_original = Url::from_file_path(&path) 306 let url_original = Url::from_file_path(&path)
307 .map_err(|_| format!("can't convert path to url: {}", path.as_ref().display()))?; 307 .map_err(|_| format!("can't convert path to url: {}", path.as_ref().display()))?;
308 308
309 let drive_partition: Vec<&str> = 309 let drive_partition: Vec<&str> = url_original.as_str().rsplitn(2, ':').collect();
310 url_original.as_str().rsplitn(2, ':').collect::<Vec<&str>>();
311 310
312 // There is a drive partition, but we never found a colon. 311 // There is a drive partition, but we never found a colon.
313 // This should not happen, but in this case we just pass it through. 312 // This should not happen, but in this case we just pass it through.