Skip to content

Commit

Permalink
Fix compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Jan 21, 2024
1 parent 1598367 commit 8bec195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions day22/src/day22.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ struct Vec3 {
}

impl Vec3 {
fn min(self, rhs: Self) -> Self { x: self.x.min(rhs.x), y: self.y.min(rhs.y), z: self.z.min(rhs.z) }
fn min(self, rhs: Self) -> Self { Self { x: self.x.min(rhs.x), y: self.y.min(rhs.y), z: self.z.min(rhs.z) } }

fn max(self, rhs: Self) -> Self { x: self.x.max(rhs.x), y: self.y.max(rhs.y), z: self.z.max(rhs.z) }
fn max(self, rhs: Self) -> Self { Self { x: self.x.max(rhs.x), y: self.y.max(rhs.y), z: self.z.max(rhs.z) } }
}

impl Add<Vec3> for Vec3 {
Expand Down Expand Up @@ -153,7 +153,7 @@ impl Board {
}

impl fmt::Display for Board {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result<()> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
todo!()
}
}
Expand Down

0 comments on commit 8bec195

Please sign in to comment.