Deletes impl From<&str>

The code still compiles, so this doesn't seem to break anything. That also means
it's not critical to fix it, but having dead code around isn't great either.
This commit is contained in:
Thomas Hartmann 2019-10-18 20:02:24 +02:00
parent 2c6a9e9e48
commit e913e26c01

View File

@ -39,12 +39,6 @@ impl Unit {
}
}
impl From<&str> for Unit {
fn from(input: &str) -> Unit {
Unit::from_str(input).unwrap()
}
}
impl FromStr for Unit {
type Err = ();
fn from_str(input: &str) -> Result<Self, <Self as std::str::FromStr>::Err> {