mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-15 08:57:08 +00:00
Rename error variant
This commit is contained in:
parent
471dc2f638
commit
06bf9b0862
1 changed files with 2 additions and 14 deletions
16
src/error.rs
16
src/error.rs
|
@ -45,39 +45,27 @@ pub enum LoftyError {
|
|||
))]
|
||||
#[error(transparent)]
|
||||
OggPage(#[from] ogg_pager::PageError),
|
||||
#[cfg(feature = "format-riff")]
|
||||
/// Errors that arise while reading/writing to RIFF files
|
||||
/// Errors that arise while reading/writing to WAV files
|
||||
#[error("Riff: {0}")]
|
||||
Riff(&'static str),
|
||||
#[cfg(feature = "format-aiff")]
|
||||
Wav(&'static str),
|
||||
/// Errors that arise while reading/writing to AIFF files
|
||||
#[error("Aiff: {0}")]
|
||||
Aiff(&'static str),
|
||||
#[cfg(feature = "format-flac")]
|
||||
/// Errors that arise while reading/writing to FLAC files
|
||||
#[error("Flac: {0}")]
|
||||
Flac(&'static str),
|
||||
#[cfg(feature = "format-opus")]
|
||||
/// Errors that arise while reading/writing to OPUS files
|
||||
#[error("Opus: {0}")]
|
||||
Opus(&'static str),
|
||||
#[cfg(feature = "format-vorbis")]
|
||||
/// Errors that arise while reading/writing to OGG Vorbis files
|
||||
#[error("Vorbis: {0}")]
|
||||
Vorbis(&'static str),
|
||||
#[cfg(any(
|
||||
feature = "format-opus",
|
||||
feature = "format-vorbis",
|
||||
feature = "format-flac"
|
||||
))]
|
||||
/// Errors that arise while reading/writing to OGG files
|
||||
#[error("OGG: {0}")]
|
||||
Ogg(&'static str),
|
||||
// TODO: feature
|
||||
/// Errors that arise while reading/writing to MPEG files
|
||||
#[error("MPEG: {0}")]
|
||||
Mpeg(&'static str),
|
||||
#[cfg(feature = "format-ape")]
|
||||
/// Errors that arise while reading/writing to APE files
|
||||
#[error("APE: {0}")]
|
||||
Ape(&'static str),
|
||||
|
|
Loading…
Reference in a new issue