Skip to content

Commit beb4fee

Browse files
committed
tests: fix clippy warning in ring_buf.rs
Use `allow` instead of fixing it, because `is_multiple_of` is unstable in 1.82 and the clippy warning doesn't exist before 1.90 (otherwise `expect` could have been used). Signed-off-by: Benno Lossin <[email protected]>
1 parent 64df950 commit beb4fee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ring_buf.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ pub struct EvenU64 {
164164
}
165165

166166
impl EvenU64 {
167+
#[allow(clippy::manual_is_multiple_of)]
167168
pub fn new2(value: u64) -> impl Init<Self, Error> {
168169
try_init!(Self {
169170
info: "Hello world!".to_owned(),
@@ -174,6 +175,8 @@ impl EvenU64 {
174175
},
175176
}? Error)
176177
}
178+
179+
#[allow(clippy::manual_is_multiple_of)]
177180
pub fn new(value: u64) -> impl Init<Self, ()> {
178181
try_init!(Self {
179182
info: "Hello world!".to_owned(),

0 commit comments

Comments
 (0)