style: Derive debug for CascadeInputs.

It no longer has anything than rules.
This commit is contained in:
Emilio Cobos Álvarez 2018-01-22 23:50:40 +01:00
parent 5ac12b5df4
commit 104f5c2553
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 24 additions and 24 deletions

View file

@ -203,7 +203,7 @@ impl<'a> SharedStyleContext<'a> {
/// within the `CurrentElementInfo`. At the end of the cascade, they are folded
/// down into the main `ComputedValues` to reduce memory usage per element while
/// still remaining accessible.
#[derive(Clone, Default)]
#[derive(Clone, Debug, Default)]
pub struct CascadeInputs {
/// The rule node representing the ordered list of rules matched for this
/// node.
@ -226,15 +226,6 @@ impl CascadeInputs {
}
}
// We manually implement Debug for CascadeInputs so that we can avoid the
// verbose stringification of ComputedValues for normal logging.
impl fmt::Debug for CascadeInputs {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "CascadeInputs {{ rules: {:?}, visited_rules: {:?}, .. }}",
self.rules, self.visited_rules)
}
}
/// A list of cascade inputs for eagerly-cascaded pseudo-elements.
/// The list is stored inline.
#[derive(Debug)]