Skip to content

Commit

Permalink
chore: Fix the lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillbobyrev committed May 21, 2024
1 parent 5fdba74 commit e3603f7
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 90 deletions.
72 changes: 0 additions & 72 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ arrayvec = "0.7.2"
anyhow = "1.0.83"
bitflags = "2.2.1"
itertools = "0.13.0"
sysinfo = "0.30.12"

[dev-dependencies]
criterion = {version = "0.5.1", features = ["html_reports", "cargo_bench_support", "csv_output"]}
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Pabi

[![Codecov](https://codecov.io/gh/kirillbobyrev/pabi/branch/main/graph/badge.svg)](https://codecov.io/gh/kirillbobyrev/pabi)
[![Lines of Code](https://tokei.rs/b1/github/kirillbobyrev/pabi?type=Rust)](https://github.com/kirillbobyrev/pabi/tree/main/src)

[![Build](https://github.com/kirillbobyrev/pabi/actions/workflows/build.yml/badge.svg)](https://github.com/kirillbobyrev/pabi/actions/workflows/build.yml)
[![Test Suite](https://github.com/kirillbobyrev/pabi/actions/workflows/test.yml/badge.svg)](https://github.com/kirillbobyrev/pabi/actions/workflows/test.yml)
Expand Down
2 changes: 1 addition & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::{env, fs, process};
// TODO: This can fail at several levels: be more principled about it.
fn git_revision_hash() -> String {
let output = process::Command::new("git")
.args(["rev-parse", "HEAD"])
.args(["rev-parse", "short", "HEAD"])
.output()
.unwrap()
.stdout;
Expand Down
1 change: 1 addition & 0 deletions src/engine/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

16 changes: 1 addition & 15 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ pub mod evaluation;
pub mod search;

Check warning on line 54 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Build docs

missing documentation for a module

Check warning on line 54 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

missing documentation for a module

warning: missing documentation for a module --> src/lib.rs:54:1 | 54 | pub mod search; | ^^^^^^^^^^^^^^

mod interface;
pub use interface::uci as uci;


use sysinfo::System;
pub use interface::uci;

/// Full version of the engine, including commit hash. Produced by `build.rs`.
pub const VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/version"));
Expand All @@ -66,17 +63,6 @@ pub const BUILD_INFO: &str = include_str!(concat!(env!("OUT_DIR"), "/build_info"

/// Prints information about the host system.
pub fn print_system_info() {
println!(
"System: {}",
System::long_os_version().unwrap_or_else(|| "UNKNOWN".to_string())
);
let sys = System::new_all();
// Convert returned bytes to GB.
println!("RAM: {:.2} GB", sys.total_memory() as f64 / 1e9);
match sys.physical_core_count() {
Some(cores) => println!("Physical cores: {cores}"),
None => println!("Physical cores: UNKNOWN"),
}
if cfg!(target_feature = "bmi2") {
println!("BMI2 is supported, move generation will use PEXT and PDEP to speed up");
} else {
Expand Down
1 change: 1 addition & 0 deletions src/search/mcts.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit e3603f7

Please sign in to comment.