forked from extern/nushell
empty? rewrite. (#2641)
This commit is contained in:
committed by
GitHub
parent
df07be6a42
commit
5d945ef869
@ -448,6 +448,18 @@ impl From<&str> for Value {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<bool> for Value {
|
||||
fn from(s: bool) -> Value {
|
||||
Value {
|
||||
value: s.into(),
|
||||
tag: Tag {
|
||||
anchor: None,
|
||||
span: Span::unknown(),
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> From<T> for UntaggedValue
|
||||
where
|
||||
T: Into<Primitive>,
|
||||
|
Reference in New Issue
Block a user