Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgazelka committed Jan 20, 2024
1 parent d71268d commit b2298c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/client/pathfind/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,11 @@ pub struct MoveState {
pub throwaway_block_count: usize,
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct MoveRecord {
pub state: MoveState,
}

impl PartialEq for MoveRecord {
fn eq(&self, other: &Self) -> bool {
self.state.eq(&other.state)
}
}

impl Eq for MoveRecord {}

impl Hash for MoveRecord {
fn hash<H: Hasher>(&self, state: &mut H) {
self.state.hash(state);
Expand Down
1 change: 1 addition & 0 deletions src/client/pathfind/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl<T, C: PartialOrd + PartialEq> PartialOrd for MinHeapNode<T, C> {
}

impl<T, C: PartialOrd + PartialEq> PartialEq for MinHeapNode<T, C> {
#[allow(clippy::unconditional_recursion)]
fn eq(&self, other: &Self) -> bool {
self.score.eq(&other.score)
}
Expand Down

0 comments on commit b2298c1

Please sign in to comment.