aboutsummaryrefslogtreecommitdiffstats
path: root/components/style
diff options
context:
space:
mode:
Diffstat (limited to 'components/style')
-rw-r--r--components/style/errors.rs2
-rw-r--r--components/style/font_face.rs4
-rw-r--r--components/style/properties/mod.rs.mako2
-rw-r--r--components/style/stylesheets.rs2
4 files changed, 5 insertions, 5 deletions
diff --git a/components/style/errors.rs b/components/style/errors.rs
index ae0df3797e9..1f238aeca4e 100644
--- a/components/style/errors.rs
+++ b/components/style/errors.rs
@@ -28,5 +28,5 @@ impl<T, I: Iterator<Result<T, SyntaxError>>> Iterator<T> for ErrorLoggerIterator
/// to log CSS parse errors to stderr.
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!("{}:{} {}", location.line, location.column, message)
}
diff --git a/components/style/font_face.rs b/components/style/font_face.rs
index 2519b30c32b..d724a190880 100644
--- a/components/style/font_face.rs
+++ b/components/style/font_face.rs
@@ -68,7 +68,7 @@ pub fn parse_font_face_rule(rule: AtRule, parent_rules: &mut Vec<CSSRule>, base_
for item in ErrorLoggerIterator(parse_declaration_list(block.into_iter())) {
match item {
DeclarationListItem::AtRule(rule) => log_css_error(
- rule.location, format!("Unsupported at-rule in declaration list: @{:s}", rule.name).as_slice()),
+ rule.location, format!("Unsupported at-rule in declaration list: @{}", rule.name).as_slice()),
DeclarationListItem::Declaration(Declaration{ location, name, value, important }) => {
if important {
log_css_error(location, "!important is not allowed on @font-face descriptors");
@@ -94,7 +94,7 @@ pub fn parse_font_face_rule(rule: AtRule, parent_rules: &mut Vec<CSSRule>, base_
};
},
_ => {
- log_css_error(location, format!("Unsupported declaration {:s}", name).as_slice());
+ log_css_error(location, format!("Unsupported declaration {}", name).as_slice());
}
}
}
diff --git a/components/style/properties/mod.rs.mako b/components/style/properties/mod.rs.mako
index 68d4fabd46c..6ae7c658d3a 100644
--- a/components/style/properties/mod.rs.mako
+++ b/components/style/properties/mod.rs.mako
@@ -2420,7 +2420,7 @@ pub fn parse_property_declaration_list<I: Iterator<Node>>(input: I, base_url: &U
for item in items.into_iter().rev() {
match item {
DeclarationListItem::AtRule(rule) => log_css_error(
- rule.location, format!("Unsupported at-rule in declaration list: @{:s}", rule.name).as_slice()),
+ rule.location, format!("Unsupported at-rule in declaration list: @{}", rule.name).as_slice()),
DeclarationListItem::Declaration(Declaration{ location: l, name: n, value: v, important: i}) => {
// TODO: only keep the last valid declaration for a given name.
let (list, seen) = if i {
diff --git a/components/style/stylesheets.rs b/components/style/stylesheets.rs
index 454f4cb5052..71eb15cc1e2 100644
--- a/components/style/stylesheets.rs
+++ b/components/style/stylesheets.rs
@@ -153,7 +153,7 @@ pub fn parse_nested_at_rule(context: &ParserContext,
}
"font-face" => parse_font_face_rule(rule, parent_rules, base_url),
_ => log_css_error(rule.location,
- format!("Unsupported at-rule: @{:s}", lower_name).as_slice())
+ format!("Unsupported at-rule: @{}", lower_name).as_slice())
}
}