lofty_attr: Use full path for TagType

This commit is contained in:
Serial 2022-07-24 16:36:23 -04:00
parent 0805e6683b
commit f54481026e
No known key found for this signature in database
GPG key ID: DA95198DC17C4568
8 changed files with 2 additions and 10 deletions

View file

@ -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
}
}

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -9,8 +9,6 @@ mod properties;
mod read;
mod trak;
use crate::tag::TagType;
use lofty_attr::LoftyFile;
// Exports

View file

@ -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;