fix typo + clippy

This commit is contained in:
Thomas Schönauer
2023-01-27 22:40:35 +01:00
parent ae888d3515
commit 9c86996ff0
2 changed files with 4 additions and 4 deletions

View File

@@ -294,7 +294,7 @@ pub struct ConfigFile {
tmux_arguments: Option<String>,
set_title: Option<bool>,
display_time: Option<bool>,
display_preambe: Option<bool>,
display_preamble: Option<bool>,
assume_yes: Option<bool>,
yay_arguments: Option<String>,
aura_aur_arguments: Option<String>,
@@ -1052,7 +1052,7 @@ impl Config {
}
pub fn display_preamble(&self) -> bool {
self.config_file.display_preambe.unwrap_or(true)
self.config_file.display_preamble.unwrap_or(true)
}
pub fn should_run_custom_command(&self, name: &str) -> bool {

View File

@@ -87,10 +87,10 @@ fn run() -> Result<()> {
debug!("Self Update: {:?}", cfg!(feature = "self-update"));
if config.display_preamble() {
print_warning(format!("Due to a design issue with notify-send it could be that topgrade hangs when it's finished.
print_warning("Due to a design issue with notify-send it could be that topgrade hangs when it's finished.
If this is the case on your system add the --skip-notify flag to the topgrade command or set skip_notify = true in the config file.
If you don't want this message to appear any longer set display_preamble = false in the config file.
For more information about this issue see https://askubuntu.com/questions/110969/notify-send-ignores-timeout and https://github.com/topgrade-rs/topgrade/issues/288."));
For more information about this issue see https://askubuntu.com/questions/110969/notify-send-ignores-timeout and https://github.com/topgrade-rs/topgrade/issues/288.");
}
if config.run_in_tmux() && env::var("TOPGRADE_INSIDE_TMUX").is_err() {