aboutsummaryrefslogtreecommitdiff
path: root/examples/example-custom-pickable/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-22 23:59:31 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-22 23:59:31 +0800
commit443ffe86485519a218997955335cde142733f88f (patch)
treeef331749338c8653ac8a241bfd1cf83cd0683468 /examples/example-custom-pickable/src
parent31b5abfc96013309530025b751293c7de916dcf3 (diff)
Make route! macro auto-convert error types
`route!()` now calls `Groupped::to_chain()` on the error branch, removing the need for callers to pre-convert with `.to_chain()` or `.to_render()`.
Diffstat (limited to 'examples/example-custom-pickable/src')
-rw-r--r--examples/example-custom-pickable/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-custom-pickable/src/main.rs b/examples/example-custom-pickable/src/main.rs
index a2aa662..015cc62 100644
--- a/examples/example-custom-pickable/src/main.rs
+++ b/examples/example-custom-pickable/src/main.rs
@@ -46,7 +46,7 @@ pack!(ErrorParseAddressFailed = ());
#[chain]
fn handle_connect(prev: EntryConnect) -> Next {
let connect: Address =
- route! { prev.pick_or_route((), ErrorParseAddressFailed::default().to_chain()).unpack() };
+ route! { prev.pick_or_route((), ErrorParseAddressFailed::default()).unpack() };
connect.to_chain()
}