Skip to content

Commit 8bbdb07

Browse files
committed
no need for Serialize on ra_project types
Signed-off-by: onur-ozkan <[email protected]>
1 parent c78ef01 commit 8bbdb07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bootstrap/src/utils/ra_project.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
//!
1010
//! [zulip thread]: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/r-a.20support.20for.20rust-lang.2Frust.20via.20project-rust.2Ejson/near/412505824
1111
12-
use serde_derive::{Deserialize, Serialize};
12+
use serde_derive::Serialize;
1313
use std::collections::{BTreeMap, BTreeSet};
1414
use std::io;
1515
use std::path::Path;
1616

1717
use crate::core::metadata::{project_metadata, workspace_members, Dependency};
1818
use crate::Config;
1919

20-
#[derive(Debug, Deserialize, Serialize)]
20+
#[derive(Debug, Serialize)]
2121
/// FIXME(before-merge): doc-comment
2222
pub(crate) struct RustAnalyzerProject {
2323
crates: Vec<Crate>,
2424
sysroot: String,
2525
sysroot_src: String,
2626
}
2727

28-
#[derive(Debug, Default, Deserialize, Serialize, PartialEq)]
28+
#[derive(Debug, Default, Serialize, PartialEq)]
2929
struct Crate {
3030
cfg: Vec<String>,
3131
deps: BTreeSet<Dep>,
@@ -39,7 +39,7 @@ struct Crate {
3939
root_module: String,
4040
}
4141

42-
#[derive(Debug, Default, Deserialize, Serialize, PartialEq, PartialOrd, Ord, Eq)]
42+
#[derive(Debug, Default, Serialize, PartialEq, PartialOrd, Ord, Eq)]
4343
struct Dep {
4444
#[serde(rename = "crate")]
4545
crate_index: usize,

0 commit comments

Comments
 (0)