1
Fork 0

Replace unimplemented with an error.

This commit is contained in:
Bauke 2021-12-02 15:02:22 +01:00
parent 3c2837d631
commit b2c116915a
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ impl FromStr for Command {
"forward" => Ok(Self::Forward(amount)),
"down" => Ok(Self::Down(amount)),
"up" => Ok(Self::Up(amount)),
_ => unimplemented!(),
_ => Err(eyre!("Unknown command: {}", s)),
}
}
}