summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlexandru Macovei <alexnmaco@gmail.com>2022-10-19 14:45:12 +0300
committerGitHub <noreply@github.com>2022-10-19 13:45:12 +0200
commit6b5745f6c24e11b2def9df13aa49c74fb6ba187a (patch)
treef1aac11b6f2cbc0909e883788997021addd0b3a3 /src/main.rs
parente2a0f3800fa57d53d462f99da575e5538ea85cdb (diff)
Fix Clippy Lints (#1390)
* apply latest nigtly clippy lints * temporarily disable const fn lints due to nigh false positive count on nightly
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index d36e7285..a6c24d50 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -19,6 +19,8 @@
clippy::bool_to_int_with_if,
clippy::module_name_repetitions
)]
+#![allow(clippy::missing_const_for_fn)] // high number of false positives on nightly
+
//TODO:
// #![deny(clippy::expect_used)]
@@ -121,10 +123,10 @@ fn main() -> Result<()> {
}
let key_config = KeyConfig::init()
- .map_err(|e| eprintln!("KeyConfig loading error: {}", e))
+ .map_err(|e| eprintln!("KeyConfig loading error: {e}"))
.unwrap_or_default();
let theme = Theme::init(&cliargs.theme)
- .map_err(|e| eprintln!("Theme loading error: {}", e))
+ .map_err(|e| eprintln!("Theme loading error: {e}"))
.unwrap_or_default();
setup_terminal()?;
@@ -256,13 +258,13 @@ fn shutdown_terminal() {
io::stdout().execute(LeaveAlternateScreen).map(|_f| ());
if let Err(e) = leave_screen {
- eprintln!("leave_screen failed:\n{}", e);
+ eprintln!("leave_screen failed:\n{e}");
}
let leave_raw_mode = disable_raw_mode();
if let Err(e) = leave_raw_mode {
- eprintln!("leave_raw_mode failed:\n{}", e);
+ eprintln!("leave_raw_mode failed:\n{e}");
}
}