mirror of
https://github.com/danbulant/nushell
synced 2026-05-24 12:35:59 +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 {
|
impl FromStr for Unit {
|
||||||
type Err = ();
|
type Err = ();
|
||||||
fn from_str(input: &str) -> Result<Self, <Self as std::str::FromStr>::Err> {
|
fn from_str(input: &str) -> Result<Self, <Self as std::str::FromStr>::Err> {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue