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::backend::BackendStorage;
use crate::{CpuStorage, Error, Result};

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 {

View File

@ -1,3 +1,4 @@
#![allow(clippy::redundant_closure_call)]
use crate::{Error, Result};
#[derive(Clone, PartialEq, Eq)]

View File

@ -1,3 +1,4 @@
#![allow(clippy::redundant_closure_call)]
use crate::backend::{BackendDevice, BackendStorage};
use crate::op::{
BackpropOp, BinaryOp, CmpOp, CustomOp1, CustomOp2, CustomOp3, Op, ReduceOp, UnaryOp,

View File

@ -1,3 +1,4 @@
#![allow(clippy::redundant_closure_call)]
// TODO: Handle negative dimension indexes.
use pyo3::exceptions::{PyTypeError, PyValueError};
use pyo3::prelude::*;