Skip to content

Commit 5755020

Browse files
committed
feat(gcc): remove gcc toml filter.
Signed-off-by: Bryan Cardillo <[email protected]>
1 parent 7ee2e92 commit 5755020

2 files changed

Lines changed: 5 additions & 53 deletions

File tree

src/filters/gcc.toml

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/toml_filter.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ const RUST_HANDLED_COMMANDS: &[&str] = &[
303303
"proxy",
304304
"verify",
305305
"learn",
306+
"gcc",
306307
];
307308

308309
fn compile_filter(name: String, def: TomlFilterDef) -> Result<CompiledFilter, String> {
@@ -1610,8 +1611,8 @@ match_command = "^make\\b"
16101611
let filters = make_filters(BUILTIN_TOML);
16111612
assert_eq!(
16121613
filters.len(),
1613-
58,
1614-
"Expected exactly 58 built-in filters, got {}. \
1614+
57,
1615+
"Expected exactly 57 built-in filters, got {}. \
16151616
Update this count when adding/removing filters in src/filters/.",
16161617
filters.len()
16171618
);
@@ -1671,8 +1672,8 @@ expected = "output line 1\noutput line 2"
16711672
// All 58 existing filters still present + 1 new = 59
16721673
assert_eq!(
16731674
filters.len(),
1674-
59,
1675-
"Expected 59 filters after concat (58 built-in + 1 new)"
1675+
58,
1676+
"Expected 58 filters after concat (58 built-in + 1 new)"
16761677
);
16771678

16781679
// New filter is discoverable

0 commit comments

Comments
 (0)