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 {
|
impl From<Position> for Point {
|
||||||
fn into(self) -> Point {
|
fn from(p: Position) -> Self {
|
||||||
Point {
|
Point { x: p.x, y: p.y }
|
||||||
x: self.x,
|
|
||||||
y: self.y,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ impl MapBuilder for SimpleMapBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_starting_position(&self) -> Position {
|
fn get_starting_position(&self) -> Position {
|
||||||
self.starting_position.clone()
|
self.starting_position
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_snapshot_history(&self) -> Vec<Map> {
|
fn get_snapshot_history(&self) -> Vec<Map> {
|
||||||
|
Loading…
Reference in New Issue
Block a user