From 7c79c718d0bff7a0fd2a22768f05c8ad331a1f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Sun, 3 Nov 2024 20:17:33 +0100 Subject: [PATCH] rename parameter --- battlesnake/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/battlesnake/src/lib.rs b/battlesnake/src/lib.rs index 04145df..a29c1f5 100644 --- a/battlesnake/src/lib.rs +++ b/battlesnake/src/lib.rs @@ -11,9 +11,9 @@ pub struct Response { impl Response { #[must_use] - pub const fn new(r#move: Move) -> Self { + pub const fn new(value: Move) -> Self { Self { - r#move: match r#move { + r#move: match value { Move::Left => "left", Move::Down => "down", Move::Up => "up",