From cb8b207f341cab58d750c2d96f215c78314c1270 Mon Sep 17 00:00:00 2001 From: Revertron Date: Mon, 29 Mar 2021 14:58:35 +0200 Subject: [PATCH] Fixed a warning. --- Cargo.toml | 1 - src/main.rs | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9939d83..b043427 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,6 @@ digest = "0.9.0" sha2 = "0.9.3" ed25519-dalek = "1.0.1" signature = "1.3.0" -#rust-crypto = "^0.2" blakeout = "0.3.0" num_cpus = "1.13.0" byteorder = "1.4.3" diff --git a/src/main.rs b/src/main.rs index 8a6ea79..8da97fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use std::time::Duration; use getopts::Options; #[allow(unused_imports)] -use log::{debug, error, info, LevelFilter, trace, warn}; +use log::{debug, error, info, trace, warn, LevelFilter}; use simple_logger::SimpleLogger; #[cfg(windows)] use winapi::um::wincon::{ATTACH_PARENT_PROCESS, AttachConsole, FreeConsole}; @@ -30,6 +30,7 @@ fn main() { #[cfg(windows)] unsafe { AttachConsole(ATTACH_PARENT_PROCESS); + #[cfg(feature = "webgui")] winapi::um::shellscalingapi::SetProcessDpiAwareness(2); } @@ -46,7 +47,7 @@ fn main() { let opt_matches = match opts.parse(&args[1..]) { Ok(m) => m, - Err(f) => panic!(f.to_string()), + Err(f) => panic!("{}", f.to_string()), }; if opt_matches.opt_present("h") {