1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Fix serde tests without default features

Authored-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
Christian Duerr 2024-01-06 07:05:55 +01:00 committed by GitHub
parent 295ac412de
commit b54d763154
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View file

@ -17,6 +17,8 @@ jobs:
- uses: actions/checkout@v3
- name: Stable
run: cargo test
- name: Stable (no default features)
run: cargo test -p alacritty_terminal --no-default-features
- name: Oldstable
run: |
rustup default 1.70.0

View file

@ -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");

View file

@ -1,3 +1,4 @@
#![cfg(feature = "serde")]
use serde::Deserialize;
use serde_json as json;