Fix compilation on redox

This commit is contained in:
Noah 2020-06-02 15:17:14 -05:00
parent 097b6a1889
commit 6708cef2a4

View file

@ -2042,7 +2042,7 @@ impl<O: OutputStream> Compiler<O> {
let mut compile_element = |element| {
self.compile_expression(element).map_err(|e| {
if matches!(e.error, CompileErrorType::InvalidStarExpr) {
if let CompileErrorType::InvalidStarExpr = e.error {
self.error(CompileErrorType::SyntaxError(
"iterable unpacking cannot be used in comprehension".to_owned(),
))