Skip to content

Commit d0858d0

Browse files
committed
Auto merge of rust-lang#6303 - ThibsG:OptionOptionSerde, r=ebroto
Remove `allow` in `option_option` lint test As it is not triggering locally anymore, I propose to remove `#[allow(clippy::option_option)]` from the test. The goal is also to see what happens on CI. closes: rust-lang#4298 changelog: none
2 parents 467bf95 + 8242b2f commit d0858d0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/ui/option_option.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ mod issue_4298 {
7272
#[serde(skip_serializing_if = "Option::is_none")]
7373
#[serde(default)]
7474
#[serde(borrow)]
75-
// FIXME: should not lint here
76-
#[allow(clippy::option_option)]
7775
foo: Option<Option<Cow<'a, str>>>,
7876
}
7977

tests/ui/option_option.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ LL | Struct { x: Option<Option<u8>> },
5959
| ^^^^^^^^^^^^^^^^^^
6060

6161
error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
62-
--> $DIR/option_option.rs:77:14
62+
--> $DIR/option_option.rs:75:14
6363
|
6464
LL | foo: Option<Option<Cow<'a, str>>>,
6565
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)