From 6ca95e25413c5d33d057040b5220e7c6c7c3d164 Mon Sep 17 00:00:00 2001 From: stijndcl Date: Wed, 13 Dec 2023 22:29:27 +0100 Subject: [PATCH] Support tempdir cli arg --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index f9143c1..6611416 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,8 +12,7 @@ fn main() { let mut input_reader = BufReader::new(stdin.lock()); let mut output_writer = BufWriter::new(stdout.lock()); - let tmp_location = PathBuf::from("/tmp"); - let mut tmp_dir = TmpDirBuilder::new().with_location(&tmp_location).build(); + let mut tmp_dir = TmpDirBuilder::new().with_location(&args.tmp_dir).build(); let config = Configuration { buffer_size: args.buffer_size,