mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix a variety of warnings in components/script/dom (#31894)
This commit is contained in:
parent
4a68243f65
commit
b0196ad373
10 changed files with 45 additions and 43 deletions
|
@ -898,15 +898,15 @@ impl HTMLScriptElement {
|
|||
warn!("Error creating input and output files for unminify");
|
||||
}
|
||||
|
||||
let path;
|
||||
match window_from_node(self).unminified_js_dir() {
|
||||
Some(unminified_js_dir) => path = PathBuf::from(unminified_js_dir),
|
||||
let path = match window_from_node(self).unminified_js_dir() {
|
||||
Some(unminified_js_dir) => PathBuf::from(unminified_js_dir),
|
||||
None => {
|
||||
warn!("Unminified script directory not found");
|
||||
return;
|
||||
},
|
||||
}
|
||||
let (base, has_name) = match script.url.as_str().ends_with("/") {
|
||||
};
|
||||
|
||||
let (base, has_name) = match script.url.as_str().ends_with('/') {
|
||||
true => (
|
||||
path.join(&script.url[url::Position::BeforeHost..])
|
||||
.as_path()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue