From 65367869006d842bfe17acc16c7973ae5fab56cf Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 11 Apr 2023 19:33:07 -0700 Subject: [PATCH] Ignore unnecessary_box_returns pedantic clippy lint error: boxed return of the sized type `expr::Expr` --> src/pat.rs:671:31 | 671 | fn into_expr(self) -> Box { | ^^^^^^^^^ help: try: `expr::Expr` | = help: changing this also requires a change to the return expressions in this function = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_box_returns = note: `-D clippy::unnecessary-box-returns` implied by `-D clippy::pedantic` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 74bd21b410..8c2c7c295a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -290,6 +290,7 @@ clippy::too_many_lines, clippy::trivially_copy_pass_by_ref, clippy::uninlined_format_args, + clippy::unnecessary_box_returns, clippy::unnecessary_unwrap, clippy::used_underscore_binding, clippy::wildcard_imports,