mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 01:05:01 +02:00
Simplify a few boolean creations (#2543)
This commit is contained in:
@ -207,8 +207,8 @@ impl UntaggedValue {
|
||||
}
|
||||
|
||||
/// Helper for creating boolean values
|
||||
pub fn boolean(s: impl Into<bool>) -> UntaggedValue {
|
||||
UntaggedValue::Primitive(Primitive::Boolean(s.into()))
|
||||
pub fn boolean(b: impl Into<bool>) -> UntaggedValue {
|
||||
UntaggedValue::Primitive(Primitive::Boolean(b.into()))
|
||||
}
|
||||
|
||||
/// Helper for creating date duration values
|
||||
|
Reference in New Issue
Block a user