ycbcr_textures: Kernels::quantizes asks the list with contains, as clippy's manual_contains asks
(cherry picked from commit ec5bbee96a13ac7496f1088bb6fc9b3885c11008)
This commit is contained in:
1 parent
8fc9e3dd68
commit
8c19e8bf97
1 file changed
+1
-3
@@ -533,9 +533,7 @@ impl Kernels {
|
||||
/// Whether the `half` kernel `entry`'s stage rounds by the device's quantize
|
||||
/// ([`Kernels::quantizing`]).
|
||||
fn quantizes(&self, entry: &str) -> bool {
|
||||
self.quantizing
|
||||
.iter()
|
||||
.any(|&quantizing| quantizing == entry)
|
||||
self.quantizing.contains(&entry)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user