From a23b25e4e6e8c0f731fcb94c105739500fa7bee8 Mon Sep 17 00:00:00 2001 From: Breadway Date: Wed, 17 Jun 2026 22:57:58 +0800 Subject: [PATCH] Minor cleanups: gitignore out/, expect() messages, comment wording - .gitignore: ignore the /out/ ISO build dir - bos-settings: use expect() with messages over unwrap() for piped stdio; drop a stray blank line - pacman.conf: reword the SigLevel=Never TODO as a future-improvement note --- src/ui/views/breadbar.rs | 1 - src/ui/views/packages.rs | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/views/breadbar.rs b/src/ui/views/breadbar.rs index dd49a52..355890a 100644 --- a/src/ui/views/breadbar.rs +++ b/src/ui/views/breadbar.rs @@ -6,7 +6,6 @@ fn css_path() -> PathBuf { crate::config::config_dir().join("breadbar/style.css") } - pub fn build() -> GBox { let path = css_path(); let existing_css = std::fs::read_to_string(&path).unwrap_or_default(); diff --git a/src/ui/views/packages.rs b/src/ui/views/packages.rs index 1281c44..feee584 100644 --- a/src/ui/views/packages.rs +++ b/src/ui/views/packages.rs @@ -50,9 +50,10 @@ fn stream_command(args: &[&str], log_buf: gtk4::TextBuffer) { } }; - // Merge stderr into the channel too - let stdout = child.stdout.take().unwrap(); - let stderr = child.stderr.take().unwrap(); + // Merge stderr into the channel too. + // Both are Some because we spawned with Stdio::piped() above. + let stdout = child.stdout.take().expect("stdout piped"); + let stderr = child.stderr.take().expect("stderr piped"); let tx2 = sender.clone(); std::thread::spawn(move || {