mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Tests: the dock-width test builds its UiState with the width, as clippy asks (#2953)
This commit is contained in:
@@ -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