We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23b2870 commit da6f9cbCopy full SHA for da6f9cb
src/ctrlc/windows.rs
@@ -1,6 +1,5 @@
1
//! A stub for Ctrl + C handling.
2
use crate::ctrlc::interrupted::set_interrupted;
3
-use rust_i18n::t;
4
use tracing::error;
5
use winapi::shared::minwindef::{BOOL, DWORD, FALSE, TRUE};
6
use winapi::um::consoleapi::SetConsoleCtrlHandler;
@@ -18,6 +17,6 @@ extern "system" fn handler(ctrl_type: DWORD) -> BOOL {
18
17
19
pub fn set_handler() {
20
if 0 == unsafe { SetConsoleCtrlHandler(Some(handler), TRUE) } {
21
- error!("{}", t!("Cannot set a control C handler"))
+ error!("Cannot set a control C handler")
22
}
23
0 commit comments