From d2dc9e1cc408ff68b8e976076a975fef2f12273c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 5 Jun 2026 23:08:34 +0800 Subject: Make `exec_repl` take `mut self` to consume internal state --- mingling_core/src/program/repl_exec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingling_core/src/program/repl_exec.rs b/mingling_core/src/program/repl_exec.rs index d7ee8e8..033c5a3 100644 --- a/mingling_core/src/program/repl_exec.rs +++ b/mingling_core/src/program/repl_exec.rs @@ -71,7 +71,7 @@ where /// /// **Note:** When the `async` feature is enabled, panic unwinding is not supported. /// Any panics during command execution will result in an abort rather than being caught and handled gracefully. - pub async fn exec_repl(self) { + pub async fn exec_repl(mut self) { // Inject default REPL resource self.with_resource(REPL::default()); -- cgit