rename parameter
This commit is contained in:
parent
923b661583
commit
7c79c718d0
@ -11,9 +11,9 @@ pub struct Response {
|
|||||||
|
|
||||||
impl Response {
|
impl Response {
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub const fn new(r#move: Move) -> Self {
|
pub const fn new(value: Move) -> Self {
|
||||||
Self {
|
Self {
|
||||||
r#move: match r#move {
|
r#move: match value {
|
||||||
Move::Left => "left",
|
Move::Left => "left",
|
||||||
Move::Down => "down",
|
Move::Down => "down",
|
||||||
Move::Up => "up",
|
Move::Up => "up",
|
||||||
|
Loading…
Reference in New Issue
Block a user