From 443ffe86485519a218997955335cde142733f88f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 22 Jun 2026 23:59:31 +0800 Subject: 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()`. --- examples/example-custom-pickable/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/example-custom-pickable/src') 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() } -- cgit