Skip to content

Commit f0178f4

Browse files
committed
style: fix rustfmt formatting for conditional timeout
https://claude.ai/code/session_01VzFJkUBQ9t6zTmH7ZJFXgt
1 parent a21e0ed commit f0178f4

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • crates/vite_task_bin/tests/e2e_snapshots

crates/vite_task_bin/tests/e2e_snapshots/main.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ use vite_workspace::find_workspace_root;
1919

2020
/// Timeout for each step in e2e tests.
2121
/// Windows CI needs a longer timeout due to Git Bash startup overhead and slower I/O.
22-
const STEP_TIMEOUT: Duration = if cfg!(windows) {
23-
Duration::from_secs(60)
24-
} else {
25-
Duration::from_secs(20)
26-
};
22+
const STEP_TIMEOUT: Duration =
23+
if cfg!(windows) { Duration::from_secs(60) } else { Duration::from_secs(20) };
2724

2825
/// Screen size for the PTY terminal. Large enough to avoid line wrapping.
2926
const SCREEN_SIZE: ScreenSize = ScreenSize { rows: 500, cols: 500 };

0 commit comments

Comments
 (0)