summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-05-01 16:57:52 +0000
committerGitHub <noreply@github.com>2021-05-01 16:57:52 +0000
commite64e0f0df92c9c11ab2399b4bb977b888551e153 (patch)
treefd8517cc578c39c608469f90af0437179110f40e
parent68bb16274025984dceca95662cb748792fa1297f (diff)
downloadalacritty-e64e0f0df92c9c11ab2399b4bb977b888551e153.tar.gz
alacritty-e64e0f0df92c9c11ab2399b4bb977b888551e153.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)];