Skip to content

Commit 53c2b81

Browse files
committed
style: reorder imports and clean up formatting in decoder modules
1 parent 4562618 commit 53c2b81

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

src/decoder/looped.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,4 @@ where
261261
)))),
262262
}
263263
}
264-
}
264+
}

src/decoder/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ use crate::{
6363
pub mod builder;
6464
pub use builder::DecoderBuilder;
6565

66-
mod utils;
6766
mod looped;
67+
mod utils;
6868
pub use looped::LoopedDecoder;
6969

7070
#[cfg(feature = "claxon")]
@@ -82,7 +82,6 @@ mod wav;
8282
/// See the [module-level documentation](self) for examples and usage.
8383
pub struct Decoder<R: Read + Seek>(DecoderImpl<R>);
8484

85-
8685
/// This enum dispatches to the appropriate decoder based on detected format
8786
/// and available features. Large enum variant size is acceptable here since
8887
/// these are infrequently created and moved.
@@ -924,9 +923,6 @@ where
924923
}
925924
}
926925

927-
928-
929-
930926
/// Errors that can occur when creating a decoder.
931927
#[derive(Debug, thiserror::Error, Clone)]
932928
pub enum DecoderError {

src/decoder/symphonia.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@
7777
//! }
7878
//! ```
7979
80-
use std::{io::{Read, Seek, SeekFrom}, sync::Arc, time::Duration};
80+
use std::{
81+
io::{Read, Seek, SeekFrom},
82+
sync::Arc,
83+
time::Duration,
84+
};
8185

8286
use symphonia::{
8387
core::{

src/decoder/wav.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ use hound::{SampleFormat, WavReader};
7474

7575
use super::utils;
7676
use crate::{
77-
decoder::builder::Settings, source::SeekError, BitDepth, ChannelCount, Sample, SampleRate, Source,
77+
decoder::builder::Settings, source::SeekError, BitDepth, ChannelCount, Sample, SampleRate,
78+
Source,
7879
};
7980

8081
/// Decoder for the WAV format using the `hound` library.

0 commit comments

Comments
 (0)