We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee0a82f commit 4a48d4dCopy full SHA for 4a48d4d
1 file changed
src/lib.rs
@@ -214,7 +214,7 @@ impl UrlPatternInit {
214
let baseurl_path = url::quirks::pathname(base_url);
215
let slash_index = baseurl_path.rfind('/');
216
if let Some(slash_index) = slash_index {
217
- let new_pathname = baseurl_path[..=slash_index].to_string();
+ let new_pathname = &baseurl_path[..=slash_index];
218
result.pathname =
219
Some(format!("{}{}", new_pathname, result.pathname.unwrap()));
220
}
0 commit comments