We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
explicit-deref-methods
1 parent 5c99661 commit 11e765cCopy full SHA for 11e765c
lofty/src/id3/v2/write/frame.rs
@@ -3,7 +3,6 @@ use crate::id3::v2::frame::{FrameFlags, FrameRef};
3
use crate::id3::v2::util::synchsafe::SynchsafeInteger;
4
5
use std::io::Write;
6
-use std::ops::Deref;
7
8
use crate::id3::v2::Frame;
9
use byteorder::{BigEndian, WriteBytesExt};
@@ -26,7 +25,7 @@ where
26
25
}
27
28
fn verify_frame(frame: &FrameRef<'_>) -> Result<()> {
29
- match (frame.id().as_str(), frame.deref()) {
+ match (frame.id().as_str(), &**frame) {
30
("APIC", Frame::Picture { .. })
31
| ("USLT", Frame::UnsynchronizedText(_))
32
| ("COMM", Frame::Comment(_))
0 commit comments