Add documentation for recent functions
CI / cargo fmt (push) Successful in 28s
CI / cargo test (push) Successful in 14m23s
CI / cargo test (GPU) (push) Successful in 13m26s

This commit is contained in:
2026-06-28 15:03:52 -04:00
parent c3224fadd8
commit 3c5563c940
6 changed files with 61 additions and 12 deletions
+5 -4
View File
@@ -77,10 +77,11 @@ pub fn main() -> Result<()> {
let temp = NamedTempFile::with_suffix(".png").context("Unable to create file for image")?;
image.save(temp.path()).context("Unable to save image")?;
let open_program = cfg_select! {
unix => "xdg-open",
_ => panic!("Unknown system"),
};
let open_program: &str = cfg_select! {
unix => Some("xdg-open"),
_ => None,
}
.expect("No available program to open images");
Command::new(open_program)
.arg(temp.path())