Skip to content

Commit

Permalink
revert: unwanted translations in src/terminal.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Sep 22, 2024
1 parent e540663 commit 35f2561
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl Terminal {
}

fn notify_desktop<P: AsRef<str>>(&self, message: P, timeout: Option<Duration>) {
debug!("{}", t!("Desktop notification: {message}", message = message.as_ref()));
debug!("Desktop notification: {}", message.as_ref());
let mut notification = Notification::new();
notification
.summary("Topgrade")
Expand Down Expand Up @@ -237,11 +237,11 @@ impl Terminal {
}
Ok(Key::Char('n')) | Ok(Key::Char('N')) | Ok(Key::Enter) => break Ok(false),
Err(e) => {
error!("{}", t!("Error reading from terminal: {error}", error = e));
error!("Error reading from terminal: {}", e);
break Ok(false);
}
Ok(Key::Char('q')) | Ok(Key::Char('Q')) => {
return Err(io::Error::from(io::ErrorKind::Interrupted)).context(t!("Quit from user input"))
return Err(io::Error::from(io::ErrorKind::Interrupted)).context("Quit from user input")
}
_ => (),
}
Expand Down

0 comments on commit 35f2561

Please sign in to comment.