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:
parent
295ac412de
commit
b54d763154
3 changed files with 4 additions and 0 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![cfg(feature = "serde")]
|
||||
use serde::Deserialize;
|
||||
use serde_json as json;
|
||||
|
||||
|
|
Loading…
Reference in a new issue