aboutsummaryrefslogtreecommitdiff
path: root/docs/pages/other/features.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-18 01:53:59 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-18 01:53:59 +0800
commitf5a4cebde2f12eb980de73ea41eb8d9e133ae49a (patch)
treef0b5c550acf5a47cab03df8d3ff7292e7145e6b5 /docs/pages/other/features.md
parent7b4c511cbd2429ca482a24b7256de785d9430445 (diff)
ix(macros)!: require explicit `.into()` on chain function return values
Diffstat (limited to 'docs/pages/other/features.md')
-rw-r--r--docs/pages/other/features.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/pages/other/features.md b/docs/pages/other/features.md
index 813ccdd..325bb75 100644
--- a/docs/pages/other/features.md
+++ b/docs/pages/other/features.md
@@ -24,7 +24,7 @@ pack!(StateFoo = ());
#[chain]
async fn handle_state_foo(foo: StateFoo) -> Next {
- StateFoo::new(())
+ StateFoo::new(()).into()
}
```
@@ -160,7 +160,7 @@ use mingling::macros::entry;
pack!(EntryHello = Vec<String>);
fn main() {
- let result = handle_hello(entry!("--name", "Bob")).into();
+ let result: Next = handle_hello(entry!("--name", "Bob")).into();
// ... assertion logic here
}