Remove all allow dead_code

This commit is contained in:
Serial 2021-09-07 01:14:36 -04:00
parent 2e9392196c
commit 4394d9bf8f
3 changed files with 4 additions and 3 deletions

View file

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

View file

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

View file

@ -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")]