From 4f7bd4f6fa5d27cfe703c54aa029a321f40d19fb Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 27 Jun 2026 17:46:29 +0800 Subject: feat(macros): add async mutable resource injection for `#[chain]` Support `&mut T` resource parameters in async chain functions by using an extract-store pattern that avoids holding mutable borrows across await points. Remove the previous compile-time rejection of this combination. --- examples/example-async-support/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/example-async-support/src/main.rs') diff --git a/examples/example-async-support/src/main.rs b/examples/example-async-support/src/main.rs index 920b3dd..847bfea 100644 --- a/examples/example-async-support/src/main.rs +++ b/examples/example-async-support/src/main.rs @@ -9,8 +9,7 @@ //! //! However, you will lose some capabilities: //! -//! 1. `&mut` resource injection is not available in async chain functions -//! 2. The program will not be able to use panic unwind functionality +//! 1. The program will not be able to use panic unwind functionality //! //! Run: //! ```bash -- cgit