fix clippy warnings for update to rustc 1.46
[nihav.git] / nihav-core / src / scale / scale.rs
index eb8ff6cc2cf6f75dc0203ae5730f0a3c29175155..fc97bd78e97230926f69255b034c60a597031c07 100644 (file)
@@ -7,6 +7,7 @@ impl NNResampler {
     fn new() -> Self { Self{} }
 }
 
+#[allow(clippy::comparison_chain)]
 fn scale_line<T:Copy>(src: &[T], dst: &mut [T], src_w: usize, dst_w: usize) {
     if src_w == dst_w {
         (&mut dst[..dst_w]).copy_from_slice(&src[..dst_w]);