Fix rustc 1.71 clippy lints

- Remove an allow for a lint that was merged into core
- Remove a vec which was written to but never read
This commit is contained in:
Josh Holmer 2023-07-15 21:40:31 -04:00
parent 0bb0046a0d
commit 0607b0adfe
2 changed files with 0 additions and 7 deletions

View file

@ -13,7 +13,6 @@
#![allow(clippy::doc_markdown)]
#![allow(clippy::items_after_statements)]
#![allow(clippy::wildcard_imports)]
#![allow(clippy::drop_ref)]
#![allow(clippy::unsafe_derive_deserialize)]
#![allow(clippy::needless_pass_by_value)]
#![allow(clippy::use_self)]

View file

@ -42,11 +42,8 @@ impl TargetQuality {
let mut vmaf_cq = vec![];
let frames = chunk.frames();
let mut q_list = vec![];
// Make middle probe
let middle_point = (self.min_q + self.max_q) / 2;
q_list.push(middle_point);
let last_q = middle_point;
let mut score =
@ -66,8 +63,6 @@ impl TargetQuality {
self.max_q
};
q_list.push(next_q);
// Edge case check
score = read_weighted_vmaf(self.vmaf_probe(chunk, next_q as usize)?, VMAF_PERCENTILE).unwrap();
vmaf_cq.push((score, next_q));
@ -118,7 +113,6 @@ impl TargetQuality {
break;
}
q_list.push(new_point as u32);
score = read_weighted_vmaf(self.vmaf_probe(chunk, new_point)?, VMAF_PERCENTILE).unwrap();
vmaf_cq.push((score, new_point as u32));