mirror of
https://github.com/nushell/nushell
synced 2025-01-14 06:04:09 +00:00
Merge pull request #851 from t-hart/pr/remove-unwrap-unit
Deletes impl From<&str> for Unit
This commit is contained in:
commit
f3c41bbdf1
1 changed files with 0 additions and 6 deletions
|
@ -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 a new issue