mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
clippy: fixed some warnings in components/script (#31888)
This commit is contained in:
parent
8dece05980
commit
92b557867c
11 changed files with 39 additions and 40 deletions
|
@ -105,13 +105,13 @@ impl File {
|
|||
Err(_) => return Err(Error::InvalidCharacter),
|
||||
};
|
||||
|
||||
let ref blobPropertyBag = filePropertyBag.parent;
|
||||
let blobPropertyBag = &filePropertyBag.parent;
|
||||
|
||||
let modified = filePropertyBag.lastModified;
|
||||
// NOTE: Following behaviour might be removed in future,
|
||||
// see https://github.com/w3c/FileAPI/issues/41
|
||||
let replaced_filename = DOMString::from_string(filename.replace("/", ":"));
|
||||
let type_string = normalize_type_string(&blobPropertyBag.type_.to_string());
|
||||
let replaced_filename = DOMString::from_string(filename.replace('/', ":"));
|
||||
let type_string = normalize_type_string(blobPropertyBag.type_.as_ref());
|
||||
Ok(File::new_with_proto(
|
||||
global,
|
||||
proto,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue