mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 14:12:31 +00:00
Remove all allow dead_code
This commit is contained in:
parent
2e9392196c
commit
4394d9bf8f
3 changed files with 4 additions and 3 deletions
|
@ -10,7 +10,6 @@ use crate::{FileProperties, Result, Tag, TagType};
|
|||
use std::io::{Read, Seek};
|
||||
|
||||
/// An APE file
|
||||
#[allow(dead_code)]
|
||||
pub struct ApeFile {
|
||||
#[cfg(feature = "id3v1")]
|
||||
/// An ID3v1 tag
|
||||
|
|
|
@ -10,7 +10,6 @@ use crate::{FileProperties, Result, Tag, TagType};
|
|||
|
||||
use std::io::{Read, Seek};
|
||||
|
||||
#[allow(dead_code)]
|
||||
/// An MP4 file
|
||||
pub struct Mp4File {
|
||||
/// The file format from ftyp's "major brand" (Ex. "M4A ")
|
||||
|
@ -47,6 +46,10 @@ impl AudioFile for Mp4File {
|
|||
}
|
||||
|
||||
impl Mp4File {
|
||||
/// Returns the file format from ftyp's "major brand" (Ex. "M4A ")
|
||||
pub fn ftyp(&self) -> &str {
|
||||
self.ftyp.as_ref()
|
||||
}
|
||||
#[cfg(feature = "mp4_atoms")]
|
||||
/// Returns a reference to the "ilst" tag if it exists
|
||||
pub fn ilst(&self) -> Option<&Tag> {
|
||||
|
|
|
@ -7,7 +7,6 @@ use crate::{FileProperties, Result, Tag, TagType};
|
|||
|
||||
use std::io::{Read, Seek};
|
||||
|
||||
#[allow(dead_code)]
|
||||
/// An MPEG file
|
||||
pub struct MpegFile {
|
||||
#[cfg(feature = "id3v2")]
|
||||
|
|
Loading…
Reference in a new issue