Skip to content

Commit 0862d44

Browse files
fmt: apply cargo fmt changes
1 parent 7e36aa5 commit 0862d44

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

crates/djls-project/src/lib.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,9 @@ mod tests {
487487

488488
// --- Manipulate PATH ---
489489
// Completely overwrite PATH to only include the mock bin directory
490-
let canonical_bin_dir =
491-
bin_dir.canonicalize().expect("Failed to canonicalize mock bin dir");
490+
let canonical_bin_dir = bin_dir
491+
.canonicalize()
492+
.expect("Failed to canonicalize mock bin dir");
492493
let new_path = canonical_bin_dir.to_str().unwrap().to_string();
493494
let _path_guard = PathGuard::set(&new_path);
494495

@@ -503,10 +504,12 @@ mod tests {
503504
);
504505

505506
if let Some(env) = system_env {
506-
assert_eq!(env.python_path, python_path, "Python path should match mock");
507507
assert_eq!(
508-
env.sys_prefix,
509-
mock_sys_python_prefix,
508+
env.python_path, python_path,
509+
"Python path should match mock"
510+
);
511+
assert_eq!(
512+
env.sys_prefix, mock_sys_python_prefix,
510513
"Sys prefix should match mock prefix"
511514
);
512515
assert!(
@@ -538,7 +541,10 @@ mod tests {
538541
let env = PythonEnvironment::new(project_dir.path(), None);
539542

540543
// Assert that no environment was found
541-
assert!(env.is_none(), "Expected no environment to be found when all discovery methods fail");
544+
assert!(
545+
env.is_none(),
546+
"Expected no environment to be found when all discovery methods fail"
547+
);
542548
}
543549

544550
#[test]

0 commit comments

Comments
 (0)