File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
crates/ra_project_model/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ use std::path::PathBuf;
5
5
use rustc_hash:: { FxHashMap , FxHashSet } ;
6
6
use serde:: Deserialize ;
7
7
8
+ /// Roots and crates that compose this Rust project.
9
+ #[ derive( Clone , Debug , Deserialize ) ]
10
+ pub struct JsonProject {
11
+ pub ( crate ) roots : Vec < Root > ,
12
+ pub ( crate ) crates : Vec < Crate > ,
13
+ }
14
+
8
15
/// A root points to the directory which contains Rust crates. rust-analyzer watches all files in
9
16
/// all roots. Roots might be nested.
10
17
#[ derive( Clone , Debug , Deserialize ) ]
@@ -57,13 +64,6 @@ pub struct Dep {
57
64
pub ( crate ) name : String ,
58
65
}
59
66
60
- /// Roots and crates that compose this Rust project.
61
- #[ derive( Clone , Debug , Deserialize ) ]
62
- pub struct JsonProject {
63
- pub ( crate ) roots : Vec < Root > ,
64
- pub ( crate ) crates : Vec < Crate > ,
65
- }
66
-
67
67
#[ cfg( test) ]
68
68
mod tests {
69
69
use super :: * ;
You can’t perform that action at this time.
0 commit comments