Skip to content

Commit

Permalink
style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Apr 1, 2024
1 parent 30d020d commit 7ec3b18
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,11 @@ impl Target {
}

fn stockfish_eval_file<W: Write>(name: &str, archive: &mut ar::Builder<W>) {
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<W: Write, P: AsRef<Path>>(archive: &mut ar::Builder<W>, path: P, mode: u32) {
Expand Down
12 changes: 6 additions & 6 deletions src/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) => {
Expand Down
1 change: 0 additions & 1 deletion src/queue.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::{
cmp::{max, min},
collections::{hash_map::Entry, HashMap, VecDeque},
convert::TryInto,
error::Error,
fmt,
iter::{once, zip},
Expand Down
1 change: 1 addition & 0 deletions src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ impl StatsRecorder {
.read(true)
.write(true)
.create(true)
.truncate(false)
.open(&path)
{
Ok(mut file) => (
Expand Down

0 comments on commit 7ec3b18

Please sign in to comment.