2019: fix new clippy lints
This commit is contained in:
parent
deb808faf3
commit
9a2e37468f
5 changed files with 83 additions and 60 deletions
|
|
@ -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")?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue