aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model
diff options
context:
space:
mode:
Diffstat (limited to 'crates/project_model')
-rw-r--r--crates/project_model/src/workspace.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs
index bc5041e5a..559f4e7bf 100644
--- a/crates/project_model/src/workspace.rs
+++ b/crates/project_model/src/workspace.rs
@@ -51,6 +51,7 @@ pub enum ProjectWorkspace {
51 51
52impl fmt::Debug for ProjectWorkspace { 52impl fmt::Debug for ProjectWorkspace {
53 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 53 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
54 // Make sure this isn't too verbose.
54 match self { 55 match self {
55 ProjectWorkspace::Cargo { cargo, sysroot, rustc, rustc_cfg } => f 56 ProjectWorkspace::Cargo { cargo, sysroot, rustc, rustc_cfg } => f
56 .debug_struct("Cargo") 57 .debug_struct("Cargo")
@@ -60,7 +61,7 @@ impl fmt::Debug for ProjectWorkspace {
60 "n_rustc_compiler_crates", 61 "n_rustc_compiler_crates",
61 &rustc.as_ref().map_or(0, |rc| rc.packages().len()), 62 &rustc.as_ref().map_or(0, |rc| rc.packages().len()),
62 ) 63 )
63 .field("rustc_cfg", rustc_cfg) 64 .field("n_rustc_cfg", &rustc_cfg.len())
64 .finish(), 65 .finish(),
65 ProjectWorkspace::Json { project, sysroot, rustc_cfg } => { 66 ProjectWorkspace::Json { project, sysroot, rustc_cfg } => {
66 let mut debug_struct = f.debug_struct("Json"); 67 let mut debug_struct = f.debug_struct("Json");
@@ -68,7 +69,7 @@ impl fmt::Debug for ProjectWorkspace {
68 if let Some(sysroot) = sysroot { 69 if let Some(sysroot) = sysroot {
69 debug_struct.field("n_sysroot_crates", &sysroot.crates().len()); 70 debug_struct.field("n_sysroot_crates", &sysroot.crates().len());
70 } 71 }
71 debug_struct.field("rustc_cfg", rustc_cfg); 72 debug_struct.field("n_rustc_cfg", &rustc_cfg.len());
72 debug_struct.finish() 73 debug_struct.finish()
73 } 74 }
74 } 75 }