Cleanup: fix lint warnings

This commit is contained in:
Petr Gladkikh 2024-11-15 22:41:03 +04:00
parent 6a6e94c88e
commit 1af733ee86
2 changed files with 1 additions and 2 deletions

View file

@ -7,10 +7,10 @@
//! [`decoder`], etc. or even your own type that implements the [`Source`] trait.
//! - Get an output stream handle to a physical device. For example, get a stream to the system's
//! default sound device with [`OutputStream::default()`]
//! FIXME Update documentation after the builder is complete
//! - Call [`.play_raw(source)`](OutputStream::play_raw) on the output stream handle.
//!
//! FIXME Update documentation after the builder is complete
//!
//! The [`play_raw`](OutputStream::play_raw) function expects the source to produce [`f32`]s,
//! which may not be the case. If you get a compilation error, try calling
//! [`.convert_samples()`](Source::convert_samples) on the source to fix it.

View file

@ -106,7 +106,6 @@ impl OutputStreamBuilder {
// In case of supported range limit buffer size to avoid unexpectedly long playback delays.
buffer_size: clamp_supported_buffer_size(config.buffer_size(), 1024),
sample_format: config.sample_format(),
..self.config
};
self
}