From c3a7cd3e547b741a3579a2aff9b6b16dbdbc8f67 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Sun, 19 Feb 2023 17:09:25 -0800 Subject: cargo clippy --- adenosine-cli/src/bin/adenosine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'adenosine-cli/src/bin') diff --git a/adenosine-cli/src/bin/adenosine.rs b/adenosine-cli/src/bin/adenosine.rs index e35d634..86b43eb 100644 --- a/adenosine-cli/src/bin/adenosine.rs +++ b/adenosine-cli/src/bin/adenosine.rs @@ -235,7 +235,7 @@ fn main() -> Result<()> { 4..=std::i8::MAX => "trace", }; // hyper logging is very verbose, so crank that down even if everything else is more verbose - let log_filter = format!("{},hyper=error", log_level); + let log_filter = format!("{log_level},hyper=error"); env_logger::Builder::from_env(env_logger::Env::default().default_filter_or(log_filter)) .format_timestamp(None) .init(); @@ -266,7 +266,7 @@ fn main() -> Result<()> { ColorChoice::Never }); color_stderr.set_color(ColorSpec::new().set_fg(Some(Color::Red)).set_bold(true))?; - eprintln!("Error: {:?}", err); + eprintln!("Error: {err:?}"); color_stderr.set_color(&ColorSpec::new())?; std::process::exit(1); } -- cgit v1.2.3