diff options
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<dyn Error>> { 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; |
