aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/style/errors.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-10-29 15:11:25 -0700
committerJack Moffitt <jack@metajack.im>2013-10-31 14:58:55 -0600
commite2b7885b732592c4c554a681c584543b4c6bb8b2 (patch)
tree531dca101ccef50e7e57f7f71296e302d2816cd6 /src/components/style/errors.rs
parente7e7eab905c4c574ccfb471094b15795a8ab32f2 (diff)
downloadservo-e2b7885b732592c4c554a681c584543b4c6bb8b2.tar.gz
servo-e2b7885b732592c4c554a681c584543b4c6bb8b2.zip
fmt! -> format!
Diffstat (limited to 'src/components/style/errors.rs')
-rw-r--r--src/components/style/errors.rs4
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)
}