diff --git a/build.rs b/build.rs index 9012838..db8cf43 100644 --- a/build.rs +++ b/build.rs @@ -393,7 +393,11 @@ impl Target { } fn stockfish_eval_file(name: &str, archive: &mut ar::Builder) { - append_file(archive, Path::new("Stockfish").join("src").join(name), 0o644); + append_file( + archive, + Path::new("Stockfish").join("src").join(name), + 0o644, + ); } fn append_file>(archive: &mut ar::Builder, path: P, mode: u32) { diff --git a/src/configure.rs b/src/configure.rs index 36b85b0..eab7d8a 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -586,14 +586,14 @@ pub async fn parse_and_configure(client: &Client) -> Opt { } Ok(Toggle::No) => { let contents = ini.writes(); - eprint!( - "Writing to {:?} is necessary to continue. Exiting.\n", + eprintln!( + "Writing to {:?} is necessary to continue. Exiting.", opt.conf() ); - eprint!("Here is the fishnet.ini contents if you need them:\n"); - eprint!("-----------------------------------------------------\n"); - eprint!("{}", contents); - eprint!("-----------------------------------------------------\n"); + eprintln!("Here is the fishnet.ini contents if you need them:"); + eprintln!("-----------------------------------------------------"); + eprintln!("{}", contents); + eprintln!("-----------------------------------------------------"); std::process::exit(0); } Err(_) => { diff --git a/src/queue.rs b/src/queue.rs index aad244f..a50a681 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -1,7 +1,6 @@ use std::{ cmp::{max, min}, collections::{hash_map::Entry, HashMap, VecDeque}, - convert::TryInto, error::Error, fmt, iter::{once, zip}, diff --git a/src/stats.rs b/src/stats.rs index 5574cd4..ec51af8 100644 --- a/src/stats.rs +++ b/src/stats.rs @@ -87,6 +87,7 @@ impl StatsRecorder { .read(true) .write(true) .create(true) + .truncate(false) .open(&path) { Ok(mut file) => (