Skip to content

Commit c053d0a

Browse files
committed
Fixed: gentypeconfig is a supported field
1 parent 58c5d86 commit c053d0a

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

rewatch/CompilerConfigurationSpec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This document contains a list of all bsconfig parameters with remarks, and wheth
1818
| generators | array of Rule-Generator | | [_] |
1919
| cut-generators | boolean | | [_] |
2020
| jsx | JSX | | [x] |
21-
| gentypeconfig | Gentype | | [_] |
21+
| gentypeconfig | Gentype | | [x] |
2222
| compiler-flags | array of string | | [x] |
2323
| warnings | Warnings | | [x] |
2424
| ppx-flags | array of string | | [x] |

rewatch/src/config.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -680,18 +680,11 @@ impl Config {
680680
}
681681

682682
pub fn get_unsupported_fields(&self) -> Vec<String> {
683-
let mut fields = self
684-
.unknown_fields
683+
self.unknown_fields
685684
.iter()
686685
.filter(|field| self.is_unsupported_field(field))
687686
.cloned()
688-
.collect::<Vec<_>>();
689-
690-
if self.gentype_config.is_some() {
691-
fields.push("gentypeconfig".to_string());
692-
}
693-
694-
fields
687+
.collect::<Vec<_>>()
695688
}
696689

697690
fn is_unsupported_field(&self, field: &str) -> bool {

0 commit comments

Comments
 (0)