Manually catch up to main branch
This commit is contained in:
parent
318825d1b1
commit
3ae7456758
@ -88,7 +88,7 @@ impl Value {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn none() -> Self {
|
pub fn none() -> Self {
|
||||||
Value::none()
|
Value::Option(None)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_string(&self) -> bool {
|
pub fn is_string(&self) -> bool {
|
||||||
@ -120,7 +120,7 @@ impl Value {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_none(&self) -> bool {
|
pub fn is_none(&self) -> bool {
|
||||||
matches!(self, Value::none())
|
matches!(self, Value::Option(None))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_map(&self) -> bool {
|
pub fn is_map(&self) -> bool {
|
||||||
@ -255,7 +255,7 @@ impl Value {
|
|||||||
|
|
||||||
impl Default for &Value {
|
impl Default for &Value {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
&Value::none()
|
&Value::Option(None)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user