Skip to content

Commit ca45b18

Browse files
committed
Fix clippy bool assertions
1 parent d143018 commit ca45b18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/server/src/command/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ mod tests {
19221922
.unwrap();
19231923
let scoped_a: WorkbenchBootstrap = serde_json::from_value(bootstrap_a).unwrap();
19241924
assert_eq!(scoped_a.ui_state.layout.left_width, 444.0);
1925-
assert_eq!(scoped_a.ui_state.layout.show_code_panel, true);
1925+
assert!(scoped_a.ui_state.layout.show_code_panel);
19261926

19271927
let bootstrap_b = dispatch_rpc(
19281928
&app,
@@ -1936,6 +1936,6 @@ mod tests {
19361936
.unwrap();
19371937
let scoped_b: WorkbenchBootstrap = serde_json::from_value(bootstrap_b).unwrap();
19381938
assert_eq!(scoped_b.ui_state.layout.left_width, 320.0);
1939-
assert_eq!(scoped_b.ui_state.layout.show_code_panel, false);
1939+
assert!(!scoped_b.ui_state.layout.show_code_panel);
19401940
}
19411941
}

0 commit comments

Comments
 (0)