Skip to content

Commit

Permalink
Address clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Aug 31, 2024
1 parent 526590a commit 1a640bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/fn_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2172,9 +2172,8 @@ fn poll_and_track_fn_ready_common(
) -> impl Stream<Item = FnId> + '_ {
stream::poll_fn(move |context| {
fn_ready_rx.poll_recv(context).map(|fn_id_opt| {
fn_id_opt.map(|fn_id| {
fn_id_opt.inspect(|&fn_id| {
fn_ids_processed.push(fn_id);
fn_id
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion src/fn_id_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ unsafe impl IndexType for FnIdInner {

#[inline(always)]
fn max() -> Self {
FnIdInner(std::usize::MAX)
FnIdInner(usize::MAX)
}
}

Expand Down

0 comments on commit 1a640bf

Please sign in to comment.