Skip to content

Commit 7b94f23

Browse files
Fixing typo and formatting
1 parent 888d975 commit 7b94f23

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

compiler/codegen/src/compile.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,15 +2903,9 @@ impl Compiler {
29032903
for feature in features {
29042904
match feature.name.as_str() {
29052905
// Python 3 features; we've already implemented them by default
2906-
"nested_scopes"
2907-
| "generators"
2908-
| "division"
2909-
| "absolute_import"
2910-
| "with_statement"
2911-
| "print_function"
2912-
| "unicode_literals"
2913-
| "compile_future_features" => {}
2914-
"generator_stop" => {}
2906+
"nested_scopes" | "generators" | "division" | "absolute_import"
2907+
| "with_statement" | "print_function" | "unicode_literals"
2908+
| "compile_future_features" | "generator_stop" => {}
29152909
"annotations" => self.future_annotations = true,
29162910
other => {
29172911
return Err(self.error(CodegenErrorType::InvalidFutureFeature(other.to_owned())))

0 commit comments

Comments
 (0)