aboutsummaryrefslogtreecommitdiff
path: root/examples/example-pack-err/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-17 02:29:30 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-17 02:39:56 +0800
commit6980fbf2f9fb4c599d8dc6ff549a8b3288eb24e9 (patch)
treebc7049698955d7a40706ea691fd5bab526a6b5e5 /examples/example-pack-err/src
parent4c191b2b46a67a0dda6e9a867b40f45156af4f9c (diff)
refactor!: remove dynamic dispatcher registration API
Dispatchers are now always registered at compile time, removing the `with_dispatcher` / `with_dispatchers` methods and the `PathfinderConfig` API. The `dispatch_tree` feature now only controls the matching strategy (trie vs linear list).
Diffstat (limited to 'examples/example-pack-err/src')
-rw-r--r--examples/example-pack-err/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/example-pack-err/src/main.rs b/examples/example-pack-err/src/main.rs
index 5bf5066..901072d 100644
--- a/examples/example-pack-err/src/main.rs
+++ b/examples/example-pack-err/src/main.rs
@@ -143,9 +143,9 @@ gen_program!();
fn main() {
let mut program = ThisProgram::new();
+
// Add StructuralRendererSetup to support --json / --yaml flags
program.with_setup(StructuralRendererSetup);
- program.with_dispatcher(CMDFind);
- program.with_dispatcher(CMDFindStructural);
+
let _ = program.exec();
}