Skip to content

Commit 7b065db

Browse files
committed
clippy: update reference file to match suggested change
1 parent 230d9cb commit 7b065db

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/ui/ref_option_ref.stderr

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
1+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
22
--> $DIR/ref_option_ref.rs:10:23
33
|
44
LL | static REF_THRESHOLD: &Option<&i32> = &Some(&THRESHOLD);
55
| ^^^^^^^^^^^^^ help: try: `Option<&i32>`
66
|
77
= note: `-D clippy::ref-option-ref` implied by `-D warnings`
88

9-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
9+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
1010
--> $DIR/ref_option_ref.rs:12:18
1111
|
1212
LL | const REF_CONST: &Option<&i32> = &Some(&CONST_THRESHOLD);
1313
| ^^^^^^^^^^^^^ help: try: `Option<&i32>`
1414

15-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
15+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
1616
--> $DIR/ref_option_ref.rs:14:25
1717
|
1818
LL | type RefOptRefU32<'a> = &'a Option<&'a u32>;
1919
| ^^^^^^^^^^^^^^^^^^^ help: try: `Option<&'a u32>`
2020

21-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
21+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
2222
--> $DIR/ref_option_ref.rs:15:25
2323
|
2424
LL | type RefOptRef<'a, T> = &'a Option<&'a T>;
2525
| ^^^^^^^^^^^^^^^^^ help: try: `Option<&'a T>`
2626

27-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
27+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
2828
--> $DIR/ref_option_ref.rs:17:14
2929
|
3030
LL | fn foo(data: &Option<&u32>) {}
3131
| ^^^^^^^^^^^^^ help: try: `Option<&u32>`
3232

33-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
33+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
3434
--> $DIR/ref_option_ref.rs:19:23
3535
|
3636
LL | fn bar(data: &u32) -> &Option<&u32> {
3737
| ^^^^^^^^^^^^^ help: try: `Option<&u32>`
3838

39-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
39+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
4040
--> $DIR/ref_option_ref.rs:24:11
4141
|
4242
LL | data: &'a Option<&'a u32>,
4343
| ^^^^^^^^^^^^^^^^^^^ help: try: `Option<&'a u32>`
4444

45-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
45+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
4646
--> $DIR/ref_option_ref.rs:27:32
4747
|
4848
LL | struct StructTupleRef<'a>(u32, &'a Option<&'a u32>);
4949
| ^^^^^^^^^^^^^^^^^^^ help: try: `Option<&'a u32>`
5050

51-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
51+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
5252
--> $DIR/ref_option_ref.rs:31:14
5353
|
5454
LL | Variant2(&'a Option<&'a u32>),
5555
| ^^^^^^^^^^^^^^^^^^^ help: try: `Option<&'a u32>`
5656

57-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
57+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
5858
--> $DIR/ref_option_ref.rs:40:14
5959
|
6060
LL | type A = &'static Option<&'static Self>;
6161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Option<&'static Self>`
6262

63-
error: since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>
63+
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`
6464
--> $DIR/ref_option_ref.rs:46:12
6565
|
6666
LL | let x: &Option<&u32> = &None;

0 commit comments

Comments
 (0)