diff --git a/cspell.yaml b/cspell.yaml index 29c857d86..2031fe91a 100644 --- a/cspell.yaml +++ b/cspell.yaml @@ -28,6 +28,7 @@ words: - BCHARGE - bluez - bokmaal + - btrfs - bugz - busctl - caldav diff --git a/src/blocks/disk_space.rs b/src/blocks/disk_space.rs index da0d3f518..ac711f1c9 100644 --- a/src/blocks/disk_space.rs +++ b/src/blocks/disk_space.rs @@ -234,7 +234,8 @@ async fn get_btrfs(path: &str) -> Result<(u64, u64, u64, u64)> { const OUTPUT_CHANGED: &str = "Btrfs filesystem usage output format changed"; fn remove_estimate_min(estimate_str: &str) -> Result<&str> { - estimate_str.trim_matches('\t') + estimate_str + .trim_matches('\t') .split_once("\t") .ok_or(Error::new(OUTPUT_CHANGED)) .map(|v| v.0) diff --git a/src/main.rs b/src/main.rs index ba21bf417..07a4d7d1a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,6 +65,7 @@ fn main() { } /// Restart in-place +#[allow(unreachable_code)] fn restart() -> ! { use std::env; use std::ffi::CString;