Skip to content

Commit f29e666

Browse files
committed
Optout rustfix test
1 parent f014e15 commit f29e666

File tree

3 files changed

+3
-78
lines changed

3 files changed

+3
-78
lines changed

tests/ui/unnecessary_wrap.fixed

Lines changed: 0 additions & 73 deletions
This file was deleted.

tests/ui/unnecessary_wrap.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// run-rustfix
2-
31
#![warn(clippy::unnecessary_wrap)]
42
#![allow(clippy::no_effect)]
53
#![allow(clippy::needless_return)]

tests/ui/unnecessary_wrap.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: this function returns unnecessarily wrapping data
2-
--> $DIR/unnecessary_wrap.rs:10:1
2+
--> $DIR/unnecessary_wrap.rs:8:1
33
|
44
LL | / fn func1(a: bool, b: bool) -> Option<i32> {
55
LL | | if a && b {
@@ -22,7 +22,7 @@ LL | Some(-1);
2222
...
2323

2424
error: this function returns unnecessarily wrapping data
25-
--> $DIR/unnecessary_wrap.rs:41:1
25+
--> $DIR/unnecessary_wrap.rs:39:1
2626
|
2727
LL | / fn func4() -> Option<i32> {
2828
LL | | Some(1)
@@ -36,7 +36,7 @@ LL | 1
3636
|
3737

3838
error: this function returns unnecessarily wrapping data
39-
--> $DIR/unnecessary_wrap.rs:51:1
39+
--> $DIR/unnecessary_wrap.rs:49:1
4040
|
4141
LL | / fn func6() -> Result<i32, ()> {
4242
LL | | Ok(1)

0 commit comments

Comments
 (0)