Auto merge of #6994 - servo:warnings, r=Manishearth

Fix unused mutability warnings.

They were introduced in 35ba731123.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6994)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-05 22:02:45 -06:00
commit be8798b73a

View file

@ -530,7 +530,7 @@ pub fn static_representation(list_style_type: list_style_type::T) -> char {
/// Pushes the string that represents the value rendered using the given *alphabetic system* onto /// Pushes the string that represents the value rendered using the given *alphabetic system* onto
/// the accumulator per CSS-COUNTER-STYLES § 3.1.4. /// the accumulator per CSS-COUNTER-STYLES § 3.1.4.
fn push_alphabetic_representation(mut value: i32, system: &[char], accumulator: &mut String) { fn push_alphabetic_representation(value: i32, system: &[char], accumulator: &mut String) {
let mut abs_value = handle_negative_value(value, accumulator); let mut abs_value = handle_negative_value(value, accumulator);
let mut string: SmallVec<[char; 8]> = SmallVec::new(); let mut string: SmallVec<[char; 8]> = SmallVec::new();
@ -548,7 +548,7 @@ fn push_alphabetic_representation(mut value: i32, system: &[char], accumulator:
/// Pushes the string that represents the value rendered using the given *numeric system* onto the /// Pushes the string that represents the value rendered using the given *numeric system* onto the
/// accumulator per CSS-COUNTER-STYLES § 3.1.5. /// accumulator per CSS-COUNTER-STYLES § 3.1.5.
fn push_numeric_representation(mut value: i32, system: &[char], accumulator: &mut String) { fn push_numeric_representation(value: i32, system: &[char], accumulator: &mut String) {
let mut abs_value = handle_negative_value(value, accumulator); let mut abs_value = handle_negative_value(value, accumulator);
// Step 1. // Step 1.