mirror of
https://github.com/nushell/nushell.git
synced 2025-07-15 05:45:10 +02: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:
@ -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> {
|
||||
|
Reference in New Issue
Block a user