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. --- mingling/src/example_docs.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mingling/src/example_docs.rs') diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs index c492a11..5208077 100644 --- a/mingling/src/example_docs.rs +++ b/mingling/src/example_docs.rs @@ -128,8 +128,7 @@ pub mod example_argument_parse {} /// /// 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