diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4284f6c..77b85f24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: install ${{ matrix.toolchain }} toolchain run: rustup toolchain install ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: cargo clippy -- -D warnings + - run: cargo clippy --all-features -- -D warnings if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest' - run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index f5f6e58e..33883c15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgrade `cpal` to v0.16. - Update dependencies. +### Fixed +- Fix clippy warnings with `Source::white` and `Source::pink` functions. + ## Version [0.21] (2025-07-12) ### Added diff --git a/UPGRADE.md b/UPGRADE.md index 1d58f6d2..887dce1d 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -3,7 +3,7 @@ rodio. While we did our best, we might have missed things. PRs that improve this guide are very welcome! The list below only contains required code changes. For a complete list of -changes and new features, see [CHANGELOG.md]. +changes and new features, see [CHANGELOG.md](CHANGELOG.md). # rodio 0.21 to current GitHub version diff --git a/src/source/noise.rs b/src/source/noise.rs index 357a2cf6..ec812f43 100644 --- a/src/source/noise.rs +++ b/src/source/noise.rs @@ -41,13 +41,13 @@ use rand_distr::{Normal, Triangular}; use crate::{ChannelCount, Sample, SampleRate, Source}; /// Convenience function to create a new `WhiteUniform` noise source. -#[deprecated(since = "0.21", note = "use WhiteUniform::new() instead")] +#[deprecated(since = "0.21.0", note = "use WhiteUniform::new() instead")] pub fn white(sample_rate: SampleRate) -> WhiteUniform { WhiteUniform::new(sample_rate) } /// Convenience function to create a new `Pink` noise source. -#[deprecated(since = "0.21", note = "use Pink::new() instead")] +#[deprecated(since = "0.21.0", note = "use Pink::new() instead")] pub fn pink(sample_rate: SampleRate) -> Pink { Pink::new(sample_rate) }