From a03cfa49268d3938b55ceff046d04a75de8972b9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 1 Jul 2020 16:42:14 +0200 Subject: Automatically reload project on config change --- crates/ra_project_model/src/project_json.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_project_model') diff --git a/crates/ra_project_model/src/project_json.rs b/crates/ra_project_model/src/project_json.rs index 9fe1e2dcb..b0fe09333 100644 --- a/crates/ra_project_model/src/project_json.rs +++ b/crates/ra_project_model/src/project_json.rs @@ -10,7 +10,7 @@ use serde::{de, Deserialize}; use stdx::split_delim; /// Roots and crates that compose this Rust project. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct ProjectJson { pub(crate) roots: Vec, pub(crate) crates: Vec, @@ -18,14 +18,14 @@ pub struct ProjectJson { /// A root points to the directory which contains Rust crates. rust-analyzer watches all files in /// all roots. Roots might be nested. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Root { pub(crate) path: AbsPathBuf, } /// A crate points to the root module of a crate and lists the dependencies of the crate. This is /// useful in creating the crate graph. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Crate { pub(crate) root_module: AbsPathBuf, pub(crate) edition: Edition, -- cgit v1.2.3