Skip to content

Commit

Permalink
pass clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jan 6, 2024
1 parent d6f7e56 commit 1472e6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ macro_rules! has_aarch64_builder_feature {
}};
}

#[allow(clippy::nonminimal_bool, clippy::eq_op)]
fn stockfish_build<W: Write>(archive: &mut ar::Builder<W>) {
// Note: The target arch of the build script is the architecture of the
// builder and decides if pgo is possible. It is not necessarily the same
Expand Down
2 changes: 1 addition & 1 deletion src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl QueueState {
if let Some(position_index) = pos.position_index {
*grow_with_and_get_mut(&mut positions, position_index.0, || {
Some(Skip::Skip)
}) = pos.skip.then(|| Skip::Skip);
}) = pos.skip.then_some(Skip::Skip);
}
}
self.incoming.push_back(chunk);
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub trait NevermindExt: Sized {

impl<T, E> NevermindExt for Result<T, E> {}

pub fn grow_with_and_get_mut<'a, T, F>(vec: &'a mut Vec<T>, index: usize, f: F) -> &'a mut T
pub fn grow_with_and_get_mut<T, F>(vec: &mut Vec<T>, index: usize, f: F) -> &mut T
where
F: FnMut() -> T,
{
Expand Down

0 comments on commit 1472e6f

Please sign in to comment.