Simplify a few boolean creations (#2543)

This commit is contained in:
Chris Gillespie
2020-09-13 18:15:44 -07:00
committed by GitHub
parent dd79afb503
commit e05e6b42fe
5 changed files with 14 additions and 22 deletions

View File

@ -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