diff options
| author | ThibsG <Thibs@debian.com> | 2020-10-30 18:43:27 +0100 |
|---|---|---|
| committer | ThibsG <Thibs@debian.com> | 2020-11-06 18:11:58 +0100 |
| commit | 8242b2f0a4a53f066fa579d7497ae4574e291e2e (patch) | |
| tree | 352ecd9bcdd188fd50738ecbc5155c39ce37213d | |
| parent | c45255b14573e9cf641a766d225bc73ae7f36fc8 (diff) | |
Remove needless allow
| -rw-r--r-- | tests/ui/option_option.rs | 2 | ||||
| -rw-r--r-- | tests/ui/option_option.stderr | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/option_option.rs b/tests/ui/option_option.rs index a2617a13eca..24344833641 100644 --- a/tests/ui/option_option.rs +++ b/tests/ui/option_option.rs @@ -72,8 +72,6 @@ mod issue_4298 { #[serde(skip_serializing_if = "Option::is_none")] #[serde(default)] #[serde(borrow)] - // FIXME: should not lint here - #[allow(clippy::option_option)] foo: Option<Option<Cow<'a, str>>>, } diff --git a/tests/ui/option_option.stderr b/tests/ui/option_option.stderr index 0cd4c96eb4f..8ae1d23a8e3 100644 --- a/tests/ui/option_option.stderr +++ b/tests/ui/option_option.stderr @@ -59,7 +59,7 @@ LL | Struct { x: Option<Option<u8>> }, | ^^^^^^^^^^^^^^^^^^ error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases - --> $DIR/option_option.rs:77:14 + --> $DIR/option_option.rs:75:14 | LL | foo: Option<Option<Cow<'a, str>>>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
