Skip to content

Commit 4be7f33

Browse files
committed
🚨 Fix clippy warnings
1 parent 3440f2c commit 4be7f33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/buffer.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ pub struct BufferedRng<InternalGenerator: Rng<OUTPUT>, const OUTPUT: usize> {
2424

2525
impl<InternalGenerator: Rng<OUTPUT>, const OUTPUT: usize> BufferedRng<InternalGenerator, OUTPUT> {
2626
/// Wraps a [`Rng`] InternalGenerator in a [`BufferedRng`] instance.
27-
pub fn new(rng: InternalGenerator) -> Self {
27+
pub const fn new(rng: InternalGenerator) -> Self {
2828
Self {
2929
rng,
3030
buffer: Vec::new(),
3131
}
3232
}
3333

3434
/// Returns the internal RNG, dropping the buffer.
35+
#[allow(clippy::missing_const_for_fn)]
3536
pub fn into_inner(self) -> InternalGenerator {
3637
self.rng
3738
}

0 commit comments

Comments
 (0)