Skip to content

Commit 78a976d

Browse files
authored
style: fix a function name typo (#610)
1 parent 941613c commit 78a976d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ fn main() {
172172
.completer("oma")
173173
.complete();
174174

175-
ctrlc::set_handler(single_handler).expect("oma could not initialize SIGINT handler.");
175+
ctrlc::set_handler(signal_handler).expect("oma could not initialize SIGINT handler.");
176176

177177
// 要适配额外的插件子命令,所以这里要保留 matches
178178
let (matches, oma) = parse_args();
@@ -681,7 +681,7 @@ fn sysroot_default_value() -> &'static str {
681681
}
682682
}
683683

684-
fn single_handler() {
684+
fn signal_handler() {
685685
if NOT_ALLOW_CTRLC.load(Ordering::Relaxed) {
686686
return;
687687
}

0 commit comments

Comments
 (0)