diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_lsp_server/src/world.rs | 3 |
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. |