diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-01 21:49:19 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-02 19:04:18 +0100 |
commit | b51e83819dfc2fded3a10744b353338f75ccae4d (patch) | |
tree | 1edb2c5d81a53ef4e8d5717a2440599d7a3e0f53 /components/script/dom/window.rs | |
parent | 141b5d038fad3c0c44a6f1b309b8ca9edea54580 (diff) | |
download | servo-b51e83819dfc2fded3a10744b353338f75ccae4d.tar.gz servo-b51e83819dfc2fded3a10744b353338f75ccae4d.zip |
Fix obsolete format traits.
They are to be removed from the language in the next rust upgrade.
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 7b7cc679461..5f4517aff3f 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -185,7 +185,7 @@ pub fn base64_atob(atob: DOMString) -> Fallible<DOMString> { impl<'a> WindowMethods for JSRef<'a, Window> { fn Alert(self, s: DOMString) { // Right now, just print to the console - println!("ALERT: {:s}", s); + println!("ALERT: {}", s); } fn Close(self) { @@ -273,7 +273,7 @@ impl<'a> WindowMethods for JSRef<'a, Window> { } fn Debug(self, message: DOMString) { - debug!("{:s}", message); + debug!("{}", message); } fn Gc(self) { |