mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
refactor: simplify to string calls (#18011)
This commit is contained in:
parent
399a22db88
commit
58ec963bf1
3 changed files with 3 additions and 3 deletions
|
@ -988,7 +988,7 @@ impl ModuleRegistry {
|
|||
.origins
|
||||
.keys()
|
||||
.filter_map(|k| {
|
||||
let mut origin = k.as_str().to_string();
|
||||
let mut origin = k.to_string();
|
||||
if origin.ends_with('/') {
|
||||
origin.pop();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue