Fix some clippy warnings
This commit is contained in:
parent
0f8d4d8fab
commit
731e6dd243
@ -23,12 +23,9 @@ impl From<Point> for Position {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<Point> for Position {
|
||||
fn into(self) -> Point {
|
||||
Point {
|
||||
x: self.x,
|
||||
y: self.y,
|
||||
}
|
||||
impl From<Position> for Point {
|
||||
fn from(p: Position) -> Self {
|
||||
Point { x: p.x, y: p.y }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ impl MapBuilder for SimpleMapBuilder {
|
||||
}
|
||||
|
||||
fn get_starting_position(&self) -> Position {
|
||||
self.starting_position.clone()
|
||||
self.starting_position
|
||||
}
|
||||
|
||||
fn get_snapshot_history(&self) -> Vec<Map> {
|
||||
|
Loading…
Reference in New Issue
Block a user