mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-10 06:34:18 +00:00
lofty_attr: Use full path for TagType
This commit is contained in:
parent
0805e6683b
commit
f54481026e
8 changed files with 2 additions and 10 deletions
|
@ -143,9 +143,9 @@ fn parse(input: DeriveInput, errors: &mut Vec<syn::Error>) -> proc_macro2::Token
|
|||
}
|
||||
|
||||
#[allow(unreachable_code, unused_variables)]
|
||||
fn contains_tag_type(&self, tag_type: TagType) -> bool {
|
||||
fn contains_tag_type(&self, tag_type: lofty::TagType) -> bool {
|
||||
match tag_type {
|
||||
#( TagType::#tag_type => { #tag_exists_2 } ),*
|
||||
#( lofty::TagType::#tag_type => { #tag_exists_2 } ),*
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ pub(crate) mod write;
|
|||
use crate::id3::v1::tag::ID3v1Tag;
|
||||
#[cfg(feature = "id3v2")]
|
||||
use crate::id3::v2::tag::ID3v2Tag;
|
||||
use crate::tag::TagType;
|
||||
|
||||
use lofty_attr::LoftyFile;
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ use crate::id3::v2::tag::ID3v2Tag;
|
|||
#[cfg(feature = "vorbis_comments")]
|
||||
use crate::ogg::VorbisComments;
|
||||
use crate::properties::FileProperties;
|
||||
use crate::tag::TagType;
|
||||
|
||||
use lofty_attr::LoftyFile;
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ pub(crate) mod write;
|
|||
#[cfg(feature = "id3v2")]
|
||||
use crate::id3::v2::tag::ID3v2Tag;
|
||||
use crate::properties::FileProperties;
|
||||
use crate::tag::TagType;
|
||||
|
||||
use lofty_attr::LoftyFile;
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ pub(crate) mod write;
|
|||
|
||||
#[cfg(feature = "id3v2")]
|
||||
use crate::id3::v2::tag::ID3v2Tag;
|
||||
use crate::tag::TagType;
|
||||
|
||||
use lofty_attr::LoftyFile;
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ use crate::ape::tag::ApeTag;
|
|||
use crate::id3::v1::tag::ID3v1Tag;
|
||||
#[cfg(feature = "id3v2")]
|
||||
use crate::id3::v2::tag::ID3v2Tag;
|
||||
use crate::tag::TagType;
|
||||
|
||||
use lofty_attr::LoftyFile;
|
||||
|
||||
|
|
|
@ -9,8 +9,6 @@ mod properties;
|
|||
mod read;
|
||||
mod trak;
|
||||
|
||||
use crate::tag::TagType;
|
||||
|
||||
use lofty_attr::LoftyFile;
|
||||
|
||||
// Exports
|
||||
|
|
|
@ -7,7 +7,6 @@ pub(crate) mod write;
|
|||
use crate::ape::tag::ApeTag;
|
||||
#[cfg(feature = "id3v1")]
|
||||
use crate::id3::v1::tag::ID3v1Tag;
|
||||
use crate::tag::TagType;
|
||||
|
||||
use lofty_attr::LoftyFile;
|
||||
|
||||
|
|
Loading…
Reference in a new issue