Skip to content

Commit 7828c9b

Browse files
committed
feat: v0.2.1
1 parent bdcb8bd commit 7828c9b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hot-restart"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2024"
55
authors = ["root@ltpp.vip"]
66
license = "MIT"

src/hot_restart/fn.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use std::process::exit;
2+
13
use crate::*;
24

35
pub fn hot_restart(run_args: &[&str]) -> Result<(), HotRestartError> {
@@ -30,5 +32,5 @@ pub fn hot_restart(run_args: &[&str]) -> Result<(), HotRestartError> {
3032
.map_err(|e| HotRestartError::CommandSpawnFailed(e.to_string()))?
3133
.wait()
3234
.map_err(|e| HotRestartError::CommandWaitFailed(e.to_string()))?;
33-
Ok(())
35+
exit(0);
3436
}

0 commit comments

Comments
 (0)