From 5a02a5bbe944bb10f3f78da8a69fde63af723699 Mon Sep 17 00:00:00 2001 From: "max.nuding" Date: Fri, 2 Dec 2022 07:53:27 +0100 Subject: [PATCH] Fix from trait --- src/day02/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/day02/mod.rs b/src/day02/mod.rs index 861a37c..0ee2936 100644 --- a/src/day02/mod.rs +++ b/src/day02/mod.rs @@ -7,7 +7,7 @@ struct Hand { impl From<&str> for Hand { fn from(s: &str) -> Self { - Self { letter: s.0.chars().next().unwrap() } + Self { letter: s.chars().next().unwrap() } } }