mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
clippy: Fix unnecessary_cast
warnings in components/script
(#31823)
* clippy: Fix unnecessary cast warnings * clippy: Replace redundant field names with their shorthand alternatives * clippy: Delete struct pattern dereferencings
This commit is contained in:
parent
3e9b808938
commit
bae77671f8
21 changed files with 32 additions and 45 deletions
|
@ -700,11 +700,7 @@ pub fn get_reports(cx: *mut RawJSContext, path_seg: String) -> Vec<Report> {
|
|||
let mut report = |mut path_suffix, kind, size| {
|
||||
let mut path = path![path_seg, "js"];
|
||||
path.append(&mut path_suffix);
|
||||
reports.push(Report {
|
||||
path,
|
||||
kind,
|
||||
size: size as usize,
|
||||
})
|
||||
reports.push(Report { path, kind, size })
|
||||
};
|
||||
|
||||
// A note about possibly confusing terminology: the JS GC "heap" is allocated via
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue