diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-05 23:08:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-05 23:08:34 +0800 |
| commit | d2dc9e1cc408ff68b8e976076a975fef2f12273c (patch) | |
| tree | 5683b8e63763b48ded0e25c389709fce80f6de8a | |
| parent | bdf9eb3ffce9076f76ec29079c9977eb6dcda8e5 (diff) | |
Make `exec_repl` take `mut self` to consume internal state
| -rw-r--r-- | mingling_core/src/program/repl_exec.rs | 2 |
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()); |
