Skip to content

Commit

Permalink
Ignore unnecessary_box_returns pedantic clippy lint
Browse files Browse the repository at this point in the history
    error: boxed return of the sized type `expr::Expr`
       --> src/pat.rs:671:31
        |
    671 |         fn into_expr(self) -> Box<Expr> {
        |                               ^^^^^^^^^ 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`
  • Loading branch information
dtolnay committed Apr 12, 2023
1 parent 23686e4 commit 6536786
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 6536786

Please sign in to comment.