Skip to content

Commit

Permalink
Explicit use of tempfile::Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-PH committed Oct 28, 2024
1 parent 9361ab1 commit d0de17f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::{env, fs, process};
use anyhow::Context;
use relative_path::RelativePathBuf;
use serde::Deserialize;
use tempfile::Builder;

use crate::nix_file::CallPackageArgumentInfo;
use crate::problem::{
Expand Down Expand Up @@ -157,7 +156,7 @@ pub fn check_values(
nix_file_store: &mut NixFileStore,
package_names: &[String],
) -> validation::Result<ratchet::Nixpkgs> {
let work_dir = Builder::new()
let work_dir = tempfile::Builder::new()
.prefix("nixpkgs-vet")
.tempdir()
.with_context(|| "Failed to create a working directory")?;
Expand Down

0 comments on commit d0de17f

Please sign in to comment.