Fixed a warning.

This commit is contained in:
Revertron
2021-03-29 14:58:35 +02:00
parent 4e0b0b3d1c
commit cb8b207f34
2 changed files with 3 additions and 3 deletions
-1
View File
@@ -18,7 +18,6 @@ digest = "0.9.0"
sha2 = "0.9.3" sha2 = "0.9.3"
ed25519-dalek = "1.0.1" ed25519-dalek = "1.0.1"
signature = "1.3.0" signature = "1.3.0"
#rust-crypto = "^0.2"
blakeout = "0.3.0" blakeout = "0.3.0"
num_cpus = "1.13.0" num_cpus = "1.13.0"
byteorder = "1.4.3" byteorder = "1.4.3"
+3 -2
View File
@@ -10,7 +10,7 @@ use std::time::Duration;
use getopts::Options; use getopts::Options;
#[allow(unused_imports)] #[allow(unused_imports)]
use log::{debug, error, info, LevelFilter, trace, warn}; use log::{debug, error, info, trace, warn, LevelFilter};
use simple_logger::SimpleLogger; use simple_logger::SimpleLogger;
#[cfg(windows)] #[cfg(windows)]
use winapi::um::wincon::{ATTACH_PARENT_PROCESS, AttachConsole, FreeConsole}; use winapi::um::wincon::{ATTACH_PARENT_PROCESS, AttachConsole, FreeConsole};
@@ -30,6 +30,7 @@ fn main() {
#[cfg(windows)] #[cfg(windows)]
unsafe { unsafe {
AttachConsole(ATTACH_PARENT_PROCESS); AttachConsole(ATTACH_PARENT_PROCESS);
#[cfg(feature = "webgui")]
winapi::um::shellscalingapi::SetProcessDpiAwareness(2); winapi::um::shellscalingapi::SetProcessDpiAwareness(2);
} }
@@ -46,7 +47,7 @@ fn main() {
let opt_matches = match opts.parse(&args[1..]) { let opt_matches = match opts.parse(&args[1..]) {
Ok(m) => m, Ok(m) => m,
Err(f) => panic!(f.to_string()), Err(f) => panic!("{}", f.to_string()),
}; };
if opt_matches.opt_present("h") { if opt_matches.opt_present("h") {