Allow arguments to be specified in toml file (closes #10)

This commit is contained in:
Jonas Herzig 2020-07-05 12:07:43 +02:00
parent 2a95f11d30
commit ab58196ee5
6 changed files with 167 additions and 61 deletions

View file

@ -49,6 +49,12 @@ impl From<rtp::Error> for Error {
}
}
impl From<toml::de::Error> for Error {
fn from(e: toml::de::Error) -> Self {
Error::Misc(Box::new(e))
}
}
impl From<()> for Error {
fn from(_: ()) -> Self {
panic!();