mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 14:12:31 +00:00
Fix privacy issue
This commit is contained in:
parent
8f2f7ba484
commit
f7ab03ce47
4 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
#[cfg(feature = "id3v2_restrictions")]
|
||||
use super::items::restrictions::TagRestrictions;
|
||||
use super::restrictions::TagRestrictions;
|
||||
|
||||
#[derive(Default, Copy, Clone, Debug, PartialEq)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
pub(super) mod encapsulated_object;
|
||||
#[cfg(feature = "id3v2_restrictions")]
|
||||
pub(super) mod restrictions;
|
||||
pub(super) mod sync_text;
|
||||
|
|
|
@ -13,12 +13,16 @@ mod frame;
|
|||
mod items;
|
||||
#[cfg(feature = "id3v2")]
|
||||
pub(crate) mod read;
|
||||
#[cfg(feature = "id3v2_restrictions")]
|
||||
mod restrictions;
|
||||
#[cfg(feature = "id3v2")]
|
||||
pub(crate) mod tag;
|
||||
pub(crate) mod util;
|
||||
#[cfg(feature = "id3v2")]
|
||||
pub(crate) mod write;
|
||||
|
||||
#[cfg(feature = "id3v2")]
|
||||
pub use flags::Id3v2TagFlags;
|
||||
#[cfg(feature = "id3v2")]
|
||||
pub use frame::{EncodedTextFrame, Frame, FrameFlags, FrameID, FrameValue, LanguageFrame};
|
||||
#[cfg(feature = "id3v2")]
|
||||
|
@ -26,23 +30,20 @@ pub use items::{
|
|||
encapsulated_object::{GEOBInformation, GeneralEncapsulatedObject},
|
||||
sync_text::{SyncTextContentType, SyncTextInformation, SynchronizedText, TimestampFormat},
|
||||
};
|
||||
#[cfg(feature = "id3v2_restrictions")]
|
||||
pub use restrictions::{
|
||||
ImageSizeRestrictions, TagRestrictions, TagSizeRestrictions, TextSizeRestrictions,
|
||||
};
|
||||
#[cfg(feature = "id3v2")]
|
||||
pub use tag::Id3v2Tag;
|
||||
pub use util::text_utils::TextEncoding;
|
||||
#[cfg(feature = "id3v2")]
|
||||
pub use util::upgrade::{upgrade_v2, upgrade_v3};
|
||||
|
||||
#[cfg(feature = "id3v2")]
|
||||
pub use flags::Id3v2TagFlags;
|
||||
#[cfg(not(feature = "id3v2"))]
|
||||
use flags::Id3v2TagFlags;
|
||||
|
||||
#[cfg(feature = "id3v2_restrictions")]
|
||||
pub use crate::id3::v2::items::restrictions::*;
|
||||
|
||||
use crate::error::{LoftyError, Result};
|
||||
#[cfg(feature = "id3v2_restrictions")]
|
||||
use crate::id3::v2::items::restrictions::TagRestrictions;
|
||||
|
||||
use std::io::Read;
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ impl TagRestrictions {
|
|||
restrictions
|
||||
}
|
||||
|
||||
#[allow(clippy::trivially_copy_pass_by_ref)]
|
||||
/// Convert a [`TagRestrictions`] into a `u8`
|
||||
pub fn as_bytes(&self) -> u8 {
|
||||
let mut byte = 0;
|
Loading…
Reference in a new issue