diff --git a/src/sql/value/clear.rs b/src/sql/value/clear.rs index 4f265c4f..8d3cc750 100644 --- a/src/sql/value/clear.rs +++ b/src/sql/value/clear.rs @@ -2,7 +2,6 @@ use crate::dbs::Executor; use crate::dbs::Options; use crate::dbs::Runtime; use crate::err::Error; -use crate::sql::object::Object; use crate::sql::value::Value; impl Value { @@ -12,7 +11,7 @@ impl Value { _opt: &Options, _exe: &Executor<'_>, ) -> Result<(), Error> { - *self = Value::from(Object::default()); + *self = Value::base(); Ok(()) } } diff --git a/src/sql/value/set.rs b/src/sql/value/set.rs index 751d1f8a..a1e44fe9 100644 --- a/src/sql/value/set.rs +++ b/src/sql/value/set.rs @@ -3,7 +3,6 @@ use crate::dbs::Options; use crate::dbs::Runtime; use crate::err::Error; use crate::sql::idiom::Idiom; -use crate::sql::object::Object; use crate::sql::part::Part; use crate::sql::value::Value; use async_recursion::async_recursion; @@ -27,7 +26,7 @@ impl Value { Part::Field(p) => match v.value.get_mut(&p.name) { Some(v) if v.is_some() => v.set(ctx, opt, exe, &path.next(), val).await, _ => { - let mut obj = Value::from(Object::default()); + let mut obj = Value::base(); obj.set(ctx, opt, exe, &path.next(), val).await?; v.insert(&p.name, obj); Ok(())