aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/dependency_resolver/decisions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/dependency_resolver/decisions.rs')
-rw-r--r--crates/shirabe/src/dependency_resolver/decisions.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/shirabe/src/dependency_resolver/decisions.rs b/crates/shirabe/src/dependency_resolver/decisions.rs
index 8ef8b25..f3f8f5a 100644
--- a/crates/shirabe/src/dependency_resolver/decisions.rs
+++ b/crates/shirabe/src/dependency_resolver/decisions.rs
@@ -7,7 +7,6 @@ use indexmap::IndexMap;
use shirabe_php_shim::LogicException;
use std::fmt;
-#[derive(Debug)]
pub struct Decisions {
pub(crate) pool: Pool,
pub(crate) decision_map: IndexMap<i64, i64>,
@@ -15,6 +14,15 @@ pub struct Decisions {
iterator_cursor: Option<usize>,
}
+impl std::fmt::Debug for Decisions {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.debug_struct("Decisions")
+ .field("decision_map", &self.decision_map)
+ .field("decision_queue_len", &self.decision_queue.len())
+ .finish()
+ }
+}
+
impl Decisions {
pub const DECISION_LITERAL: usize = 0;
pub const DECISION_REASON: usize = 1;