mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
chore: upgrade to Rust 1.57.0 (#12968)
This commit is contained in:
parent
72e9720e91
commit
c59f90d01f
11 changed files with 35 additions and 29 deletions
|
@ -137,7 +137,7 @@ pub fn infer_name_from_url(url: &Url) -> Option<String> {
|
|||
stem = parent_name.to_string_lossy().to_string();
|
||||
}
|
||||
}
|
||||
let stem = stem.splitn(2, '@').next().unwrap().to_string();
|
||||
let stem = stem.split_once('@').map_or(&*stem, |x| x.0).to_string();
|
||||
Some(stem)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue