Skip to content

Commit 7d5b34b

Browse files
authored
Merge pull request #767 from RustAudio/fix/0.21-cleanup
fix: various v0.21 cleanups
2 parents 3ff2ac9 + 741611c commit 7d5b34b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: install ${{ matrix.toolchain }} toolchain
3636
run: rustup toolchain install ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
3737

38-
- run: cargo clippy -- -D warnings
38+
- run: cargo clippy --all-features -- -D warnings
3939
if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest'
4040

4141
- run: |

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Upgrade `cpal` to v0.16.
1414
- Update dependencies.
1515

16+
### Fixed
17+
- Fix clippy warnings with `Source::white` and `Source::pink` functions.
18+
1619
## Version [0.21] (2025-07-12)
1720

1821
### Added

UPGRADE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ rodio. While we did our best, we might have missed things. PRs that improve this
33
guide are very welcome!
44

55
The list below only contains required code changes. For a complete list of
6-
changes and new features, see [CHANGELOG.md].
6+
changes and new features, see [CHANGELOG.md](CHANGELOG.md).
77

88
# rodio 0.21 to current GitHub version
99

src/source/noise.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ use rand_distr::{Normal, Triangular};
4141
use crate::{ChannelCount, Sample, SampleRate, Source};
4242

4343
/// Convenience function to create a new `WhiteUniform` noise source.
44-
#[deprecated(since = "0.21", note = "use WhiteUniform::new() instead")]
44+
#[deprecated(since = "0.21.0", note = "use WhiteUniform::new() instead")]
4545
pub fn white(sample_rate: SampleRate) -> WhiteUniform<SmallRng> {
4646
WhiteUniform::new(sample_rate)
4747
}
4848

4949
/// Convenience function to create a new `Pink` noise source.
50-
#[deprecated(since = "0.21", note = "use Pink::new() instead")]
50+
#[deprecated(since = "0.21.0", note = "use Pink::new() instead")]
5151
pub fn pink(sample_rate: SampleRate) -> Pink<SmallRng> {
5252
Pink::new(sample_rate)
5353
}

0 commit comments

Comments
 (0)