Skip to content

Commit 38b17d5

Browse files
committed
fix: Use to_owned() instead of to_string() for str slices
1 parent 12144ab commit 38b17d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/vcs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ fn extract_provider_name(host: &str) -> String {
211211
// Take just the part immediately before the last dot
212212
let parts: Vec<&str> = host.split('.').collect();
213213
if parts.len() >= 2 {
214-
parts[parts.len() - 2].to_string()
214+
parts[parts.len() - 2].to_owned()
215215
} else {
216-
host.to_string()
216+
host.to_owned()
217217
}
218218
}
219219

0 commit comments

Comments
 (0)