diff --git a/package/origlang-compiler/src/lexer.rs b/package/origlang-compiler/src/lexer.rs index e454f85e..db443014 100644 --- a/package/origlang-compiler/src/lexer.rs +++ b/package/origlang-compiler/src/lexer.rs @@ -88,7 +88,7 @@ impl Lexer { } } - #[allow(clippy::too_many_lines, clippy::unnecessary_wraps)] + #[allow(clippy::unnecessary_wraps)] fn next_inner(&self) -> Result { macro_rules! fold { ($e:expr, $t:expr, $f:expr) => { diff --git a/package/origlang-ir-optimizer/src/ir1.rs b/package/origlang-ir-optimizer/src/ir1.rs index cdd552d7..ab33754c 100644 --- a/package/origlang-ir-optimizer/src/ir1.rs +++ b/package/origlang-ir-optimizer/src/ir1.rs @@ -32,7 +32,7 @@ gen_cast_from!(Ordering, i64); impl> OutputCompareResultAsSelf for T { fn compare_self(&self, other: &Self) -> Option { - self.partial_cmp(&other).map(T::cast_from) + self.partial_cmp(other).map(T::cast_from) } } @@ -89,7 +89,7 @@ impl FoldBinaryOperatorInvocationWithConstant { }).collect() } - #[allow(clippy::cast_lossless)] + #[allow(clippy::cast_lossless, clippy::too_many_lines)] #[deny(clippy::as_underscore)] #[must_use] fn walk_expression(expr: TypedExpression) -> TypedExpression { @@ -206,6 +206,7 @@ impl FoldBinaryOperatorInvocationWithConstant { } } + #[allow(clippy::redundant_closure_call)] fn fold_compare_into_bool_literal(lhs: &TypedIntLiteral, rhs: &TypedIntLiteral, compare: BinaryOperatorKind) -> TypedExpression { // [T, O] =>> (T, T) => O macro_rules! poly_input_lambda {