From 81635b93c597b10282cb14e0873f5e3d22395186 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 6 Jun 2026 23:16:51 +0800 Subject: Rename `ExitCode` to `ResExitCode` and `REPL` to `ResREPL` --- mingling/src/res/exit_code.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mingling/src/res/exit_code.rs') diff --git a/mingling/src/res/exit_code.rs b/mingling/src/res/exit_code.rs index e90d067..93ce98b 100644 --- a/mingling/src/res/exit_code.rs +++ b/mingling/src/res/exit_code.rs @@ -9,7 +9,7 @@ use mingling_core::{ProgramCollect, this}; /// The exit code is stored globally per `ProgramCollect` type and can be /// retrieved via [`exit_code()`] or updated via [`update_exit_code()`]. #[derive(Debug, Default, Clone, Copy)] -pub struct ExitCode { +pub struct ResExitCode { /// The numeric exit code value. pub exit_code: i32, } @@ -19,7 +19,7 @@ pub fn update_exit_code(exit_code: i32) where C: ProgramCollect + 'static, { - this::().modify_res(|e: &mut ExitCode| e.exit_code = exit_code); + this::().modify_res(|e: &mut ResExitCode| e.exit_code = exit_code); } /// Retrieves the globally stored exit code for the given `ProgramCollect` type. @@ -29,7 +29,7 @@ pub fn exit_code() -> i32 where C: ProgramCollect + 'static, { - match this::().res::() { + match this::().res::() { Some(e) => e.exit_code, None => 0, } -- cgit