From ac8419963d9bc810bcc5452fa9a1500d51231621 Mon Sep 17 00:00:00 2001 From: correabuscar Date: Wed, 5 Jun 2024 18:07:25 +0200 Subject: [PATCH] show width size when not 1 or 2, on panic --- cursive-core/src/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cursive-core/src/buffer.rs b/cursive-core/src/buffer.rs index dd4c2d4b..258c7f24 100644 --- a/cursive-core/src/buffer.rs +++ b/cursive-core/src/buffer.rs @@ -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}."), } }