mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 16:59:12 -04:00
RustAnalyzerProject is not deserialized
This commit is contained in:
parent
f5135ae4df
commit
a5ba44bd6a
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
use anyhow::{bail, Context, Result};
|
use anyhow::{bail, Context, Result};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::Serialize;
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
@ -9,13 +9,13 @@ use crate::exercise::Exercise;
|
||||||
|
|
||||||
/// Contains the structure of resulting rust-project.json file
|
/// Contains the structure of resulting rust-project.json file
|
||||||
/// and functions to build the data required to create the file
|
/// and functions to build the data required to create the file
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize)]
|
||||||
pub struct RustAnalyzerProject {
|
pub struct RustAnalyzerProject {
|
||||||
sysroot_src: String,
|
sysroot_src: String,
|
||||||
crates: Vec<Crate>,
|
crates: Vec<Crate>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize)]
|
||||||
pub struct Crate {
|
pub struct Crate {
|
||||||
root_module: String,
|
root_module: String,
|
||||||
edition: String,
|
edition: String,
|
||||||
|
|
Loading…
Reference in a new issue