Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
timsaucer committed Oct 17, 2024
1 parent e61058f commit d67513b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,8 @@ mod test {

async fn do_test(n: u8) -> TestResult<()> {
let tpch_path_env_var = "TPCH_DATA_PATH";
let data_path = env::var(tpch_path_env_var).expect(&format!(
"Environment variable {} not found",
tpch_path_env_var
));
let data_path = env::var(tpch_path_env_var)
.unwrap_or_else(|_| panic!("Environment variable {} not found", tpch_path_env_var));

let file = format!("testdata/queries/q{n}.sql");
let sql = fs::read_to_string(&file)?;
Expand Down

0 comments on commit d67513b

Please sign in to comment.