Skip to content

Commit 11e765c

Browse files
committed
Clippy: explicit-deref-methods
1 parent 5c99661 commit 11e765c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lofty/src/id3/v2/write/frame.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use crate::id3::v2::frame::{FrameFlags, FrameRef};
33
use crate::id3::v2::util::synchsafe::SynchsafeInteger;
44

55
use std::io::Write;
6-
use std::ops::Deref;
76

87
use crate::id3::v2::Frame;
98
use byteorder::{BigEndian, WriteBytesExt};
@@ -26,7 +25,7 @@ where
2625
}
2726

2827
fn verify_frame(frame: &FrameRef<'_>) -> Result<()> {
29-
match (frame.id().as_str(), frame.deref()) {
28+
match (frame.id().as_str(), &**frame) {
3029
("APIC", Frame::Picture { .. })
3130
| ("USLT", Frame::UnsynchronizedText(_))
3231
| ("COMM", Frame::Comment(_))

0 commit comments

Comments
 (0)