summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-05-01 16:57:52 +0000
committerChristian Duerr <contact@christianduerr.com>2021-05-01 17:30:49 +0000
commita616a4958aebca3dcb7499250e0f8d5927e05fd2 (patch)
tree86b40d8afb9167cd7e0b782ed2f411148a6d8247
parent31fa791dc37d3a5716f24339effa2f3af00dc586 (diff)
downloadalacritty-a616a4958aebca3dcb7499250e0f8d5927e05fd2.tar.gz
alacritty-a616a4958aebca3dcb7499250e0f8d5927e05fd2.zip
Fix release mode tests
Fixes #5041.
-rw-r--r--alacritty_terminal/src/grid/storage.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs
index ad6358f0..0b36fef6 100644
--- a/alacritty_terminal/src/grid/storage.rs
+++ b/alacritty_terminal/src/grid/storage.rs
@@ -317,6 +317,7 @@ mod tests {
#[test]
#[should_panic]
+ #[cfg(debug_assertions)]
fn indexing_above_inner_len() {
let storage = Storage::<char>::with_capacity(1, 1);
let _ = &storage[Line(-1)];