mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Remove uses of format!
in components/style/error_reporting.rs
This commit is contained in:
parent
f6d20e6461
commit
17aa04b712
4 changed files with 75 additions and 72 deletions
|
@ -22,7 +22,7 @@ impl ParseErrorReporter for ErrorringErrorReporter {
|
|||
url: &ServoUrl,
|
||||
location: SourceLocation,
|
||||
error: ContextualParseError) {
|
||||
panic!("CSS error: {}\t\n{}:{} {}", url.as_str(), location.line, location.column, error.to_string());
|
||||
panic!("CSS error: {}\t\n{}:{} {}", url.as_str(), location.line, location.column, error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -280,7 +280,7 @@ impl ParseErrorReporter for CSSInvalidErrorReporterTest {
|
|||
url: url.clone(),
|
||||
line: location.line,
|
||||
column: location.column,
|
||||
message: error.to_string()
|
||||
message: error.to_string(),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue