Fix compile errors

This commit is contained in:
Ian Manske
2024-04-22 17:50:31 -04:00
parent 16c8c6cd7d
commit 7e38cc0363
51 changed files with 114 additions and 144 deletions

View File

@ -264,7 +264,7 @@ fn compact_primitive_description(mut value: Value) -> Value {
if val.len() != 1 {
return value;
}
if let Some(type_name) = val.to_mut().get_mut("type") {
if let Some(type_name) = val.get_mut("type") {
return std::mem::take(type_name);
}
}
@ -300,8 +300,7 @@ fn describe_value(
),
head,
),
Value::Record { val, .. } => {
let mut val = val.into_owned();
Value::Record { mut val, .. } => {
for (_k, v) in val.iter_mut() {
*v = compact_primitive_description(describe_value(
std::mem::take(v),

View File

@ -269,7 +269,7 @@ impl<'a> std::fmt::Debug for DebuggableValue<'a> {
Value::Record { val, .. } => {
write!(f, "{{")?;
let mut first = true;
for (col, value) in (&**val).into_iter() {
for (col, value) in val {
if !first {
write!(f, ", ")?;
}