Skip to content

Commit a56d40c

Browse files
committed
Clippy: Fix needless_option_as_deref
1 parent 9dcd5fd commit a56d40c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/id3/v2/tag/tests.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,13 +1330,11 @@ fn flag_item_conversion() {
13301330

13311331
let tag: Id3v2Tag = tag.into();
13321332
assert_eq!(
1333-
tag.get_text(&FrameId::Valid(Cow::Borrowed("TCMP")))
1334-
.as_deref(),
1333+
tag.get_text(&FrameId::Valid(Cow::Borrowed("TCMP"))),
13351334
Some("1")
13361335
);
13371336
assert_eq!(
1338-
tag.get_text(&FrameId::Valid(Cow::Borrowed("PCST")))
1339-
.as_deref(),
1337+
tag.get_text(&FrameId::Valid(Cow::Borrowed("PCST"))),
13401338
Some("0")
13411339
);
13421340
}

0 commit comments

Comments
 (0)