summaryrefslogtreecommitdiff
path: root/src/project.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-03-25 22:30:16 +0100
committermo8it <mo8it@proton.me>2024-03-25 22:30:16 +0100
commita5ba44bd6a939a720cc600e06785bea98baabc37 (patch)
treef5283467fd583b77677414b5f96fb74dee0a32b9 /src/project.rs
parentf5135ae4df96ee018896d667f3dffa187c959193 (diff)
RustAnalyzerProject is not deserialized
Diffstat (limited to 'src/project.rs')
-rw-r--r--src/project.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/project.rs b/src/project.rs
index 835a951..347ca46 100644
--- a/src/project.rs
+++ b/src/project.rs
@@ -1,5 +1,5 @@
use anyhow::{bail, Context, Result};
-use serde::{Deserialize, Serialize};
+use serde::Serialize;
use std::env;
use std::error::Error;
use std::path::PathBuf;
@@ -9,13 +9,13 @@ use crate::exercise::Exercise;
/// Contains the structure of resulting rust-project.json file
/// and functions to build the data required to create the file
-#[derive(Serialize, Deserialize)]
+#[derive(Serialize)]
pub struct RustAnalyzerProject {
sysroot_src: String,
crates: Vec<Crate>,
}
-#[derive(Serialize, Deserialize)]
+#[derive(Serialize)]
pub struct Crate {
root_module: String,
edition: String,