summaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2024-01-02 03:05:12 -0500
committerChristian Duerr <contact@christianduerr.com>2024-01-06 08:59:54 +0100
commit6e7895b2afec21454c2352bd872d39ef93759308 (patch)
tree281fad482170be78ec65b312e9e5872257a58fd7 /alacritty_terminal
parent3a2b959f8d003dba3d737a981d645c8f51b36472 (diff)
Fix serde tests without default features
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/term/mod.rs1
-rw-r--r--alacritty_terminal/tests/ref.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs
index 2553270c..ec79886c 100644
--- a/alacritty_terminal/src/term/mod.rs
+++ b/alacritty_terminal/src/term/mod.rs
@@ -2710,6 +2710,7 @@ mod tests {
/// This test is in the term module as opposed to the grid since we want to
/// test this property with a T=Cell.
#[test]
+ #[cfg(feature = "serde")]
fn grid_serde() {
let grid: Grid<Cell> = Grid::new(24, 80, 0);
let serialized = serde_json::to_string(&grid).expect("ser");
diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs
index 7f864ae8..587d2d3e 100644
--- a/alacritty_terminal/tests/ref.rs
+++ b/alacritty_terminal/tests/ref.rs
@@ -1,3 +1,4 @@
+#![cfg(feature = "serde")]
use serde::Deserialize;
use serde_json as json;