2019: fix new clippy lints

This commit is contained in:
Antoine Martin 2020-12-14 19:45:51 +01:00
parent deb808faf3
commit 9a2e37468f
5 changed files with 83 additions and 60 deletions

View file

@ -190,7 +190,7 @@ impl FromStr for Move {
fn from_str(s: &str) -> Result<Self> {
let direction = s
.chars()
.nth(0)
.next()
.context("couldn't get direction char in move")?;
let s = s.get(1..).context("move missing length")?;