do not add a depth level when using the "no quote" function

This function does not add a depth level to the Value it's being
given, it only
- adds or removes quotes from a String
- passes the Value to `value_to_string` again
This commit is contained in:
amtoine 2023-03-11 11:14:57 +01:00
parent e504bbc12d
commit 1d11c388e3
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -272,7 +272,7 @@ fn value_to_string_without_quotes(
val.clone()
}
}),
_ => value_to_string(v, span, depth + 1, indent),
_ => value_to_string(v, span, depth, indent),
}
}