Fixes for clippy 1.72. (#587)

This commit is contained in:
Laurent Mazare
2023-08-24 17:46:17 +01:00
committed by GitHub
parent c265ac50fa
commit e21c686cdc
5 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#![allow(clippy::redundant_closure_call)]
use crate::{CpuStorage, CudaStorage, Layout, Result, Shape, Tensor};
use half::{bf16, f16};
use num_traits::float::Float;
@ -398,6 +399,7 @@ bin_op!(
vd_max
);
#[allow(clippy::redundant_closure_call)]
macro_rules! unary_op {
($op: ident, $name: literal, $a: ident, $e: expr) => {
impl UnaryOpT for $op {