mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Stop abusing format! macro when construct a String
In these cases for `format!`, we're just constructing a String of the single argument with no special format.
This commit is contained in:
parent
445f1c891a
commit
5a780cb221
5 changed files with 7 additions and 7 deletions
|
@ -1298,5 +1298,5 @@ pub fn get_page(page: &Rc<Page>, pipeline_id: PipelineId) -> Rc<Page> {
|
|||
}
|
||||
|
||||
fn dom_last_modified(tm: &Tm) -> String {
|
||||
format!("{}", tm.to_local().strftime("%m/%d/%Y %H:%M:%S").unwrap())
|
||||
tm.to_local().strftime("%m/%d/%Y %H:%M:%S").unwrap().to_string()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue