Skip to content

Commit 5756806

Browse files
committed
Upgrade to rustc 6ef8392b3 2014-10-20
1 parent d354aa3 commit 5756806

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

src/ast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub struct SyntaxError {
124124
pub reason: ErrorReason,
125125
}
126126

127-
#[deriving(PartialEq)]
127+
#[deriving(PartialEq, Show)]
128128
pub enum ErrorReason {
129129
ErrEmptyInput, // Parsing a single "thing", found only whitespace.
130130
ErrExtraInput, // Found more non-whitespace after parsing a single "thing".
@@ -136,7 +136,7 @@ pub enum ErrorReason {
136136

137137
impl fmt::Show for SyntaxError {
138138
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
139-
write!(f, "{:u}:{:u} {:?}", self.location.line, self.location.column, self.reason)
139+
write!(f, "{:u}:{:u} {}", self.location.line, self.location.column, self.reason)
140140
}
141141
}
142142

src/color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
use std::ascii::StrAsciiExt;
5+
use std::ascii::AsciiExt;
66
use std::fmt;
77

88
use ast::*;

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
extern crate encoding; // https://github.com/lifthrasiir/rust-encoding
1111

12-
extern crate debug;
13-
1412
#[cfg(test)]
1513
extern crate test;
1614

src/nth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
use std::ascii::StrAsciiExt;
5+
use std::ascii::AsciiExt;
66

77
use ast::*;
88

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616

1717
use std::iter::Iterator;
18-
use std::ascii::StrAsciiExt;
18+
use std::ascii::AsciiExt;
1919

2020
use ast::*;
2121

src/tokenizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// http://dev.w3.org/csswg/css3-syntax/#tokenization
66

77
use std::{char, num};
8-
use std::ascii::StrAsciiExt;
8+
use std::ascii::AsciiExt;
99

1010
use ast::*;
1111

0 commit comments

Comments
 (0)