Merge pull request #851 from t-hart/pr/remove-unwrap-unit

Deletes impl From<&str> for Unit
This commit is contained in:
Jonathan Turner 2019-10-20 07:29:07 +13:00 committed by GitHub
commit f3c41bbdf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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> {