Skip to content

Commit

Permalink
Replace Size with size!
Browse files Browse the repository at this point in the history
Related to: Use ergonomic macros instead of equivalent structs #14
  • Loading branch information
nazmulidris committed Aug 21, 2022
1 parent f6e5cbe commit d169593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tui/crossterm_helpers/tw_input_event.rs
Expand Up @@ -83,7 +83,7 @@ mod converters {
/// Typecast / convert [(u16, u16)] to [TWInputEvent::Resize].
fn from(size: (u16, u16)) -> Self {
let (rows, cols) = size;
TWInputEvent::Resize(Size { cols, rows })
TWInputEvent::Resize(size! { col: cols, row: rows })
}
}

Expand Down

0 comments on commit d169593

Please sign in to comment.