diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-03-22 19:30:51 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-03-22 19:30:51 -0600 |
commit | dfb8929b001c8d0fb6d5e63f5a9d6dcc17cb388a (patch) | |
tree | 52127967aac7d9deec1b79b61b9b96d5604c9b77 /components/script/dom/document.rs | |
parent | 445f1c891a5536a26b4759ba4b2dab99c31505f4 (diff) | |
parent | 5a780cb2214744ee5f1e60c5b051ebcbcf51c9e9 (diff) | |
download | servo-dfb8929b001c8d0fb6d5e63f5a9d6dcc17cb388a.tar.gz servo-dfb8929b001c8d0fb6d5e63f5a9d6dcc17cb388a.zip |
auto merge of #5316 : frewsxcv/servo/no-format-abuse, r=jdm
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 243951600e5..d6e5f49b433 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1090,7 +1090,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> { fn LastModified(self) -> DOMString { match self.last_modified { Some(ref t) => t.clone(), - None => format!("{}", time::now().strftime("%m/%d/%Y %H:%M:%S").unwrap()), + None => time::now().strftime("%m/%d/%Y %H:%M:%S").unwrap().to_string(), } } |