mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-22 19:08:39 +00:00
Tests: the dock-width test builds its UiState with the width, as clippy asks (#2953)
This commit is contained in:
1 parent
57ddb71d97
commit
b529f356cc
1 file changed
+1
-2
@@ -500,8 +500,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn saved_workspaces_restore_dock_width() {
|
||||
let mut ui = UiState::default();
|
||||
ui.dock_width = Some(420.0);
|
||||
let mut ui = UiState { dock_width: Some(420.0), ..Default::default() };
|
||||
save_as(&mut ui, "Wide").unwrap();
|
||||
ui.dock_width = Some(260.0);
|
||||
save_as(&mut ui, "Narrow").unwrap();
|
||||
|
||||
Reference in new issue
Block a user