aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-05 23:08:34 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-05 23:08:34 +0800
commitd2dc9e1cc408ff68b8e976076a975fef2f12273c (patch)
tree5683b8e63763b48ded0e25c389709fce80f6de8a
parentbdf9eb3ffce9076f76ec29079c9977eb6dcda8e5 (diff)
Make `exec_repl` take `mut self` to consume internal state
-rw-r--r--mingling_core/src/program/repl_exec.rs2
1 files changed, 1 insertions, 1 deletions
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());