Skip to content

Commit

Permalink
show width size when not 1 or 2, on panic
Browse files Browse the repository at this point in the history
  • Loading branch information
correabuscar committed Jun 6, 2024
1 parent 4530052 commit ac84199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cursive-core/src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl CellWidth {
match width {
1 => CellWidth::Single,
2 => CellWidth::Double,
_ => panic!("expected width of 1 or 2 only."),
n => panic!("expected width of 1 or 2 only. Got {n}."),
}
}

Expand Down

0 comments on commit ac84199

Please sign in to comment.