diff options
author | Freya Murphy <freya@freyacat.org> | 2024-02-29 21:05:10 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-02-29 21:05:10 -0500 |
commit | ace046624d2e23fba67564a86af7f03ed8a48eae (patch) | |
tree | 21ae64bc5897b1b89ee2ab8563b0e7ce047bf34a /matrix-lang/src/parse.rs | |
parent | fix readme (diff) | |
download | matrix-ace046624d2e23fba67564a86af7f03ed8a48eae.tar.gz matrix-ace046624d2e23fba67564a86af7f03ed8a48eae.tar.bz2 matrix-ace046624d2e23fba67564a86af7f03ed8a48eae.zip |
remove unwraps, fix utf8
Diffstat (limited to '')
-rw-r--r-- | matrix-lang/src/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix-lang/src/parse.rs b/matrix-lang/src/parse.rs index c476650..04f09ee 100644 --- a/matrix-lang/src/parse.rs +++ b/matrix-lang/src/parse.rs @@ -169,7 +169,7 @@ impl Parser { }; } if parts.len() == 1 { - Ok((E::List(parts.pop().unwrap()), pos).into()) + Ok((E::List(parts.pop().expect("bypassed vec length")), pos).into()) } else { let codomain = parts.len(); let domain = parts[0].len(); |