From e913e26c01a77e207b5619302ccb0e1d036632c3 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 18 Oct 2019 20:02:24 +0200 Subject: [PATCH] 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. --- src/parser/parse/unit.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/parser/parse/unit.rs b/src/parser/parse/unit.rs index aa19580ac2..e89986f8ac 100644 --- a/src/parser/parse/unit.rs +++ b/src/parser/parse/unit.rs @@ -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::Err> {