Allow strings to be iterable.

This commit is contained in:
Stephen Chung
2022-04-09 13:37:43 +08:00
parent 6422fddd6d
commit 1777ee7f6f
3 changed files with 12 additions and 2 deletions

View File

@@ -316,8 +316,6 @@ impl Expr {
#[cfg(not(feature = "no_float"))]
Expr::FloatConstant(..) => "a floating-point number",
Expr::CharConstant(..) => "a character",
Expr::StringConstant(..) => "a string",
Expr::InterpolatedString(..) => "a string",
Expr::Map(..) => "an object map",
_ => return Ok(self),
};