Skip to content

Commit a5ba44b

Browse files
committed
RustAnalyzerProject is not deserialized
1 parent f5135ae commit a5ba44b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/project.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::{bail, Context, Result};
2-
use serde::{Deserialize, Serialize};
2+
use serde::Serialize;
33
use std::env;
44
use std::error::Error;
55
use std::path::PathBuf;
@@ -9,13 +9,13 @@ use crate::exercise::Exercise;
99

1010
/// Contains the structure of resulting rust-project.json file
1111
/// and functions to build the data required to create the file
12-
#[derive(Serialize, Deserialize)]
12+
#[derive(Serialize)]
1313
pub struct RustAnalyzerProject {
1414
sysroot_src: String,
1515
crates: Vec<Crate>,
1616
}
1717

18-
#[derive(Serialize, Deserialize)]
18+
#[derive(Serialize)]
1919
pub struct Crate {
2020
root_module: String,
2121
edition: String,

0 commit comments

Comments
 (0)