Skip to content

Commit ca80544

Browse files
committed
Put important things on top
1 parent ac4782e commit ca80544

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/ra_project_model/src/json_project.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ use std::path::PathBuf;
55
use rustc_hash::{FxHashMap, FxHashSet};
66
use serde::Deserialize;
77

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+
815
/// A root points to the directory which contains Rust crates. rust-analyzer watches all files in
916
/// all roots. Roots might be nested.
1017
#[derive(Clone, Debug, Deserialize)]
@@ -57,13 +64,6 @@ pub struct Dep {
5764
pub(crate) name: String,
5865
}
5966

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-
6767
#[cfg(test)]
6868
mod tests {
6969
use super::*;

0 commit comments

Comments
 (0)