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/setups/exit_code.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mingling/src/setups/exit_code.rs') diff --git a/mingling/src/setups/exit_code.rs b/mingling/src/setups/exit_code.rs index 88742d5..ed8204c 100644 --- a/mingling/src/setups/exit_code.rs +++ b/mingling/src/setups/exit_code.rs @@ -2,7 +2,7 @@ use std::marker::PhantomData; use mingling_core::{ProgramCollect, hook::ProgramHook, setup::ProgramSetup, this}; -use crate::res::ExitCode; +use crate::res::ResExitCode; /// Provides the ability to control the program's exit code, which is returned when the program ends. /// @@ -29,11 +29,11 @@ where { fn setup(self, program: &mut crate::Program) { // Insert resource - program.with_resource(ExitCode { exit_code: 0 }); + program.with_resource(ResExitCode { exit_code: 0 }); // Insert hook to override exit code before program ends program.with_hook(ProgramHook::empty().on_finish(|| { - let this = this::().res_or_default::(); + let this = this::().res_or_default::(); this.exit_code })); } -- cgit