refactor: simplify to string calls (#18011)

This commit is contained in:
Geert-Jan Zwiers 2023-03-04 13:05:07 +01:00 committed by GitHub
parent 399a22db88
commit 58ec963bf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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();
}