From d36bebcf33e5063568b385c93615a47be182f4bc Mon Sep 17 00:00:00 2001 From: fritzrehde Date: Mon, 30 Oct 2023 16:59:45 +0100 Subject: [PATCH 1/2] fixed typos --- CHANGELOG.md | 6 +++--- src/lib.rs | 2 +- src/unix/linux/component.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae5e69efb..c7d0472a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -149,7 +149,7 @@ # 0.26.6 * Add `Process::wait`. - * Add "Good pratice" entry into the crate level documentation and in the README. + * Add "Good practice" entry into the crate level documentation and in the README. * Linux: More precise used memory computation. # 0.26.5 @@ -224,7 +224,7 @@ # 0.24.4 - * Windows: Fix `System::refresh_process` when required higher priviledges. + * Windows: Fix `System::refresh_process` when required higher privileges. # 0.24.3 @@ -521,7 +521,7 @@ # 0.16.0 - * Windows: show removeable drives on Windows. + * Windows: show removable drives on Windows. * Switched to Rust 2018 edition. * Split `SystemExt::get_version` into `SystemExt::get_kernel_version` and `SystemExt::get_os_version`. * Windows: added support for `get_kernel_version` and `get_os_version`. diff --git a/src/lib.rs b/src/lib.rs index 9a87eee57..4a49be217 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -455,7 +455,7 @@ mod test { if IS_SUPPORTED { assert!( !SUPPORTED_SIGNALS.is_empty(), - "SUPPORTED_SIGNALS shoudn't be empty on supported systems!" + "SUPPORTED_SIGNALS shouldn't be empty on supported systems!" ); } else { assert!( diff --git a/src/unix/linux/component.rs b/src/unix/linux/component.rs index 938ea59df..2539101c7 100644 --- a/src/unix/linux/component.rs +++ b/src/unix/linux/component.rs @@ -224,7 +224,7 @@ impl ComponentInner { /// see below for special cases /// - Optional: `label` /// - Optional: `/device/model` - /// - Optional: hightest historic value in `tempN_hightest`. + /// - Optional: highest historic value in `tempN_highest`. /// - Optional: max threshold value defined in `tempN_max` /// - Optional: critical threshold value defined in `tempN_crit` /// From db9ab5a6cf2f9aa16566e0392f82ad6aa1d583a1 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 30 Oct 2023 21:13:04 +0100 Subject: [PATCH 2/2] Fix rustc "unused import" warning --- src/unix/apple/ffi.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/apple/ffi.rs b/src/unix/apple/ffi.rs index 72822202f..a1b341de2 100644 --- a/src/unix/apple/ffi.rs +++ b/src/unix/apple/ffi.rs @@ -6,6 +6,7 @@ use core_foundation_sys::{ }; // Reexport items defined in either macos or ios ffi module. +#[cfg(not(target_os = "ios"))] pub use crate::sys::inner::ffi::*; #[link(name = "CoreFoundation", kind = "framework")]