From 772a349c26603c6306f380d0635a4f7b4587a2ef Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 8 Jul 2023 16:37:53 -0400 Subject: fix --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 9f20a01..230da83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,7 +41,7 @@ async fn main() -> Result<(), Box> { let img = e.screenshot().await?; let output_path = Path::new(&args.path); - let tmp_path = output_path.join(".tmp"); + let tmp_path = output_path.with_extension("png.tmp"); fs::write(&tmp_path, img)?; fs::rename(&tmp_path, output_path)?; time::sleep(Duration::from_secs(15)).await; -- cgit v1.2.3