Skip to content

Commit

Permalink
fix(lib): dont assume TMPDIR is set
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed Nov 22, 2024
1 parent 18a9920 commit 270fee1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
interval: weekly
- package-ecosystem: cargo
directory: /
schedule:
interval: daily
interval: weekly
3 changes: 2 additions & 1 deletion liblrge/src/ava/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ pub struct Builder {

impl Default for Builder {
fn default() -> Self {
let tmpdir = std::env::temp_dir();
Self {
num_reads: DEFAULT_AVA_NUM_READS,
tmpdir: env!("TMPDIR").into(),
tmpdir,
threads: 1,
seed: None,
platform: Platform::default(),
Expand Down
3 changes: 2 additions & 1 deletion liblrge/src/twoset/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ pub struct Builder {

impl Default for Builder {
fn default() -> Self {
let tmpdir = std::env::temp_dir();
Self {
target_num_reads: DEFAULT_TARGET_NUM_READS,
query_num_reads: DEFAULT_QUERY_NUM_READS,
tmpdir: env!("TMPDIR").into(),
tmpdir,
threads: 1,
seed: None,
platform: Platform::default(),
Expand Down

0 comments on commit 270fee1

Please sign in to comment.