Skip to content

Commit d7f593e

Browse files
committed
Fix test failure
1 parent 71f5d76 commit d7f593e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clippy_lints/src/unnecessary_box_returns.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl UnnecessaryBoxReturns {
8181
// be changed, so this can't be MachineApplicable
8282
Applicability::Unspecified,
8383
);
84-
diagnostic.help("Changing this also requires a change to the return expressions in this function");
84+
diagnostic.help("changing this also requires a change to the return expressions in this function");
8585
},
8686
);
8787
}

tests/ui/unnecessary_box_returns.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: boxed return of the sized type `usize`
44
LL | fn baz(&self) -> Box<usize>;
55
| ^^^^^^^^^^ help: try: `usize`
66
|
7-
= help: Changing this also requires a change to the return expressions in this function
7+
= help: changing this also requires a change to the return expressions in this function
88
= note: `-D clippy::unnecessary-box-returns` implied by `-D warnings`
99

1010
error: boxed return of the sized type `usize`
@@ -13,23 +13,23 @@ error: boxed return of the sized type `usize`
1313
LL | fn baz(&self) -> Box<usize> {
1414
| ^^^^^^^^^^ help: try: `usize`
1515
|
16-
= help: Changing this also requires a change to the return expressions in this function
16+
= help: changing this also requires a change to the return expressions in this function
1717

1818
error: boxed return of the sized type `usize`
1919
--> $DIR/unnecessary_box_returns.rs:24:21
2020
|
2121
LL | fn boxed_usize() -> Box<usize> {
2222
| ^^^^^^^^^^ help: try: `usize`
2323
|
24-
= help: Changing this also requires a change to the return expressions in this function
24+
= help: changing this also requires a change to the return expressions in this function
2525

2626
error: boxed return of the sized type `Foo`
2727
--> $DIR/unnecessary_box_returns.rs:29:20
2828
|
2929
LL | fn _boxed_foo() -> Box<Foo> {
3030
| ^^^^^^^^ help: try: `Foo`
3131
|
32-
= help: Changing this also requires a change to the return expressions in this function
32+
= help: changing this also requires a change to the return expressions in this function
3333

3434
error: aborting due to 4 previous errors
3535

0 commit comments

Comments
 (0)