diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-28 03:06:29 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-28 03:06:29 +0800 |
| commit | 2585264de785057c1ca21284b88e25e3a2addb94 (patch) | |
| tree | acaada6e690243613f84b674637b33150998ef7d /CHANGELOG.md | |
| parent | 1e7c6f5b64f8a04e2d699b4ba480bd09677aed94 (diff) | |
chore: fix markdown formatting in CHANGELOG
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3023701..9627967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -383,7 +383,7 @@ let value = route!(prev.pick_or_route((), Error::default()).unpack()); - **All hook callbacks now receive structured info types** (e.g., `&HookPreDispatchInfo`, `&HookPostChainInfo<C>`) instead of raw tuples or bare values. Each hook event has a dedicated info struct with named fields, making hook signatures self-documenting and easier to evolve. - - **Hook signatures changed from `fn(...)` to `Box<dyn Fn(&InfoType) -> R>**`, with `R: Into<ProgramControls<C>>`. Closures that return `()`are automatically converted to`ProgramControls::Empty`via the`From<()>` impl. + - Hook signatures changed from `fn(...)` to `Box<dyn Fn(&InfoType) -> R>`, with `R: Into<ProgramControls<C>>`. Closures that return `()`are automatically converted to`ProgramControls::Empty`via the`From<()>` impl. ```rust // Before |
