mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 00:43:33 +01:00
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:
parent
2c6a9e9e48
commit
e913e26c01
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user