diff options
author | bors-servo <release+servo@mozilla.com> | 2013-10-31 16:34:14 -0700 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2013-10-31 16:34:14 -0700 |
commit | 352acbb8335fcf78f2d62dc781fa9d86b9368f9c (patch) | |
tree | c27c2d41cbffc19415b4d183367568ff1682b688 /src/components/style/errors.rs | |
parent | 041f3a8b06e3f29e99464af752cad8f1a7e93540 (diff) | |
parent | aaf96b600363ec6d2a4d23cf318b47d9bbb743b5 (diff) | |
download | servo-352acbb8335fcf78f2d62dc781fa9d86b9368f9c.tar.gz servo-352acbb8335fcf78f2d62dc781fa9d86b9368f9c.zip |
auto merge of #1163 : metajack/servo/kmc-rust-upgrade, r=kmcallister
Most work courtesy of @kmcallister.
I already reviewed Keegan's work, so just the last two commits need attention.
Diffstat (limited to 'src/components/style/errors.rs')
-rw-r--r-- | src/components/style/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/style/errors.rs b/src/components/style/errors.rs index 2a60f66dca8..fdbf1c5167b 100644 --- a/src/components/style/errors.rs +++ b/src/components/style/errors.rs @@ -12,7 +12,7 @@ impl<T, I: Iterator<Result<T, SyntaxError>>> Iterator<T> for ErrorLoggerIterator for result in **self { match result { Ok(v) => return Some(v), - Err(error) => log_css_error(error.location, fmt!("%?", error.reason)) + Err(error) => log_css_error(error.location, format!("{:?}", error.reason)) } } None @@ -22,5 +22,5 @@ impl<T, I: Iterator<Result<T, SyntaxError>>> Iterator<T> for ErrorLoggerIterator pub fn log_css_error(location: SourceLocation, message: &str) { // TODO eventually this will got into a "web console" or something. - info!("%u:%u %s", location.line, location.column, message) + info!("{:u}:{:u} {:s}", location.line, location.column, message) } |