mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-10 06:34:18 +00:00
Clippy: explicit-deref-methods
This commit is contained in:
parent
5c9966109a
commit
11e765c932
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ use crate::id3::v2::frame::{FrameFlags, FrameRef};
|
||||||
use crate::id3::v2::util::synchsafe::SynchsafeInteger;
|
use crate::id3::v2::util::synchsafe::SynchsafeInteger;
|
||||||
|
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::ops::Deref;
|
|
||||||
|
|
||||||
use crate::id3::v2::Frame;
|
use crate::id3::v2::Frame;
|
||||||
use byteorder::{BigEndian, WriteBytesExt};
|
use byteorder::{BigEndian, WriteBytesExt};
|
||||||
|
@ -26,7 +25,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
fn verify_frame(frame: &FrameRef<'_>) -> Result<()> {
|
fn verify_frame(frame: &FrameRef<'_>) -> Result<()> {
|
||||||
match (frame.id().as_str(), frame.deref()) {
|
match (frame.id().as_str(), &**frame) {
|
||||||
("APIC", Frame::Picture { .. })
|
("APIC", Frame::Picture { .. })
|
||||||
| ("USLT", Frame::UnsynchronizedText(_))
|
| ("USLT", Frame::UnsynchronizedText(_))
|
||||||
| ("COMM", Frame::Comment(_))
|
| ("COMM", Frame::Comment(_))
|
||||||
|
|
Loading…
Reference in a new issue