mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
remove unnecessary turbofish.
This commit is contained in:
parent
40116af598
commit
6fba427bf3
@ -306,8 +306,7 @@ fn url_from_path_with_drive_lowercasing(path: impl AsRef<Path>) -> Result<Url> {
|
||||
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::<Vec<&str>>();
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user