Fix from trait
This commit is contained in:
parent
a96624e0a0
commit
5a02a5bbe9
@ -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() }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user