Skip to content

Commit

Permalink
Silence unused_mut warnings in generated style/properties/mod.rs
Browse files Browse the repository at this point in the history
I would have put the attribute on the binding itself, but that doesn't
appear to be possible yet.
  • Loading branch information
Cameron Zwarich committed Oct 6, 2014
1 parent ffa9928 commit 0ede734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/style/properties/mod.rs.mako
Expand Up @@ -1855,6 +1855,7 @@ impl<T: Send + Sync + Clone> ArcExperimental<T> for Arc<T> {
}

/// Fast path for the function below. Only computes new inherited styles.
#[allow(unused_mut)]
fn cascade_with_cached_declarations(applicable_declarations: &[DeclarationBlock],
shareable: bool,
parent_style: &ComputedValues,
Expand Down

5 comments on commit 0ede734

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging zwarich/servo/style-properties-mut = 0ede734 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zwarich/servo/style-properties-mut = 0ede734 merged ok, testing candidate = 1aa13bb

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 1aa13bb

Please sign in to comment.