Skip to content

Commit 6744b73

Browse files
committed
Ignore unnecessary_box_returns pedantic clippy lint in test
warning: boxed return of the sized type `rustc_ast::Expr` --> tests/test_precedence.rs:203:64 | 203 | fn librustc_parenthesize(mut librustc_expr: Box<ast::Expr>) -> Box<ast::Expr> { | ^^^^^^^^^^^^^^ help: try: `rustc_ast::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: `-W clippy::unnecessary-box-returns` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::unnecessary_box_returns)]`
1 parent 4d2978a commit 6744b73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_precedence.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
clippy::match_wildcard_for_single_variants,
2929
clippy::needless_lifetimes,
3030
clippy::too_many_lines,
31-
clippy::uninlined_format_args
31+
clippy::uninlined_format_args,
32+
clippy::unnecessary_box_returns
3233
)]
3334

3435
extern crate rustc_ast;

0 commit comments

Comments
 (0)