diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 0000000..bed717f --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,19 @@ +name: Spelling + +permissions: + contents: read + +on: [pull_request] + +env: + CLICOLOR: 1 + +jobs: + spelling: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v5 + - name: Spell Check Repo + uses: crate-ci/typos@v1.48.0 diff --git a/Cargo.lock b/Cargo.lock index 78b3ef0..301c2ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -773,19 +773,19 @@ dependencies = [ [[package]] name = "ipmi-rs" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f027c37b60209bab91b78dc48af3a534255993efc6f3bedacf32f8d7480229c1" +checksum = "ff183b5b6e52153a6750a378a920f808b108ddf830c6411491c2b2e76ef6847e" dependencies = [ "aes", "bitflags 1.3.2", "cbc", - "getrandom 0.2.17", + "getrandom 0.4.2", "hmac", "ipmi-rs-core", "log", "md5", - "nix 0.26.4", + "nix 0.30.1", "nonmax", "rand", "sha1", @@ -793,9 +793,9 @@ dependencies = [ [[package]] name = "ipmi-rs-core" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a730b9e629a2bdd4f278afc8672d20dcfaccc4a1cb3545c6126639ec80b4022" +checksum = "a2dd1b1e749c89affd95b9667995e19a8f16c6a72c668a484d47ce964770bc2d" dependencies = [ "bitflags 1.3.2", "log", @@ -960,9 +960,9 @@ dependencies = [ [[package]] name = "md5" -version = "0.7.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" +checksum = "7ebb8d8732c6a6df3d8f032a82911cfc747e00efb95cc46e8d0acd5b5b88570c" [[package]] name = "memchr" @@ -1005,26 +1005,27 @@ dependencies = [ [[package]] name = "nix" -version = "0.26.4" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.11.0", "cfg-if", + "cfg_aliases", "libc", + "memoffset", ] [[package]] name = "nix" -version = "0.29.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6" dependencies = [ "bitflags 2.11.0", "cfg-if", "cfg_aliases", "libc", - "memoffset", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index cf7fe3b..0e316e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,7 +78,7 @@ env_logger = "0.11" glob = "0.3" # IPMI BMC sensor access via /dev/ipmi0 ioctl -ipmi-rs = { version = "0.5", default-features = true } +ipmi-rs = { version = "0.6", default-features = true } [profile.release] opt-level = "z" diff --git a/src/db/boards/diagnostics.rs b/src/db/boards/diagnostics.rs index b357ce8..8aa2803 100644 --- a/src/db/boards/diagnostics.rs +++ b/src/db/boards/diagnostics.rs @@ -129,7 +129,7 @@ mod tests { } #[test] - fn min_bios_version_unparseable() { + fn min_bios_version_unparsable() { let reqs = [Requirement::MinBiosVersion { version: 1317, hint: "Update BIOS.", diff --git a/src/parsers/edid.rs b/src/parsers/edid.rs index 14670ae..6fa0b87 100644 --- a/src/parsers/edid.rs +++ b/src/parsers/edid.rs @@ -14,7 +14,7 @@ pub struct EdidInfo { } /// Parse an EDID blob from a DRM connector sysfs path. -/// Returns None if the file is missing, empty, or unparseable. +/// Returns None if the file is missing, empty, or unparsable. pub fn parse_from_drm(connector_path: &std::path::Path) -> Option { let edid_path = connector_path.join("edid"); let data = std::fs::read(&edid_path).ok()?; diff --git a/src/sensors/ipmi.rs b/src/sensors/ipmi.rs index 1089c2b..0003dfd 100644 --- a/src/sensors/ipmi.rs +++ b/src/sensors/ipmi.rs @@ -285,7 +285,7 @@ fn map_sensor_type(ty: &SensorType) -> Option<(SensorCategory, SensorUnit)> { #[allow(dead_code)] fn refine_unit(ipmi_unit: &Unit) -> Option { match ipmi_unit { - Unit::DegreesCelcius => Some(SensorUnit::Celsius), + Unit::DegreesCelsius => Some(SensorUnit::Celsius), Unit::Volt => Some(SensorUnit::Volts), Unit::Amp => Some(SensorUnit::Amps), Unit::Watt => Some(SensorUnit::Watts), diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000..62339f8 --- /dev/null +++ b/typos.toml @@ -0,0 +1,16 @@ +[default] + +[default.extend-words] +AER = "AER" +pn = "pn" +IIN = "IIN" +synopsys = "synopsys" +Ded = "Ded" +MCH = "MCH" +HDA = "HDA" +ue = "ue" +BYT = "BYT" +BLOK = "BLOK" +BA = "BA" +ratatui = "ratatui" +temprature = "temprature"