Skip to content

Commit 6e0894a

Browse files
stephentoubCopilot
andcommitted
Fix Rust E2E test for new ignore_whitespace field on WorkspacesDiffRequest
The 1.0.63 type regeneration added an optional ignore_whitespace field to the generated WorkspacesDiffRequest struct. The explicit struct literal in rpc_workspace_checkpoints.rs failed to compile (E0063: missing field), which broke clippy on ubuntu and cargo test on macos/windows. Add ..Default::default() to the literal, matching the existing pattern in rpc_session_state.rs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9d6fb21 commit 6e0894a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rust/tests/e2e/rpc_workspace_checkpoints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ async fn should_return_typed_workspace_diff_result() {
9090
.workspaces()
9191
.diff(WorkspacesDiffRequest {
9292
mode: WorkspaceDiffMode::Unstaged,
93+
..Default::default()
9394
})
9495
.await
9596
.expect("workspace diff");

0 commit comments

Comments
 (0)