From b59fd21cac5f84c02e2df161bad708e440834320 Mon Sep 17 00:00:00 2001 From: Th3Fanbus Date: Thu, 26 Jul 2018 17:47:14 +0200 Subject: Replace runtime debug assertions with static asserts on scrollback --- src/grid/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/grid/storage.rs b/src/grid/storage.rs index 6a453da6..ad94cf2b 100644 --- a/src/grid/storage.rs +++ b/src/grid/storage.rs @@ -223,7 +223,7 @@ impl Storage { /// instructions. This implementation achieves the swap in only 8 movups /// instructions. pub fn swap(&mut self, a: usize, b: usize) { - debug_assert!(::std::mem::size_of::>() == 32); + assert_eq_size!(Row, [u32; 8]); let a = self.compute_index(a); let b = self.compute_index(b); -- cgit