Replace unimplemented with an error.
This commit is contained in:
parent
3c2837d631
commit
b2c116915a
|
@ -36,7 +36,7 @@ impl FromStr for Command {
|
||||||
"forward" => Ok(Self::Forward(amount)),
|
"forward" => Ok(Self::Forward(amount)),
|
||||||
"down" => Ok(Self::Down(amount)),
|
"down" => Ok(Self::Down(amount)),
|
||||||
"up" => Ok(Self::Up(amount)),
|
"up" => Ok(Self::Up(amount)),
|
||||||
_ => unimplemented!(),
|
_ => Err(eyre!("Unknown command: {}", s)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue