Skip to content

Commit

Permalink
Clippy: explicit-deref-methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed May 1, 2024
1 parent 5c99661 commit 11e765c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lofty/src/id3/v2/write/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::id3::v2::frame::{FrameFlags, FrameRef};
use crate::id3::v2::util::synchsafe::SynchsafeInteger;

use std::io::Write;
use std::ops::Deref;

use crate::id3::v2::Frame;
use byteorder::{BigEndian, WriteBytesExt};
Expand All @@ -26,7 +25,7 @@ where
}

fn verify_frame(frame: &FrameRef<'_>) -> Result<()> {
match (frame.id().as_str(), frame.deref()) {
match (frame.id().as_str(), &**frame) {
("APIC", Frame::Picture { .. })
| ("USLT", Frame::UnsynchronizedText(_))
| ("COMM", Frame::Comment(_))
Expand Down

0 comments on commit 11e765c

Please sign in to comment.