From da6c27c421b6f7bd6e805070e9b1b6a5f9e67621 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Tue, 29 Oct 2013 15:32:25 -0700 Subject: [PATCH] Remove unnecessary format!s --- src/components/main/platform/common/glfw_windowing.rs | 8 ++++---- src/components/main/platform/common/glut_windowing.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/main/platform/common/glfw_windowing.rs b/src/components/main/platform/common/glfw_windowing.rs index 0fe7b0447be..023b816f892 100644 --- a/src/components/main/platform/common/glfw_windowing.rs +++ b/src/components/main/platform/common/glfw_windowing.rs @@ -190,18 +190,18 @@ impl Window { match self.ready_state { Blank => { - self.glfw_window.set_title(format!("blank — Servo")) + self.glfw_window.set_title("blank — Servo") } Loading => { - self.glfw_window.set_title(format!("Loading — Servo")) + self.glfw_window.set_title("Loading — Servo") } PerformingLayout => { - self.glfw_window.set_title(format!("Performing Layout — Servo")) + self.glfw_window.set_title("Performing Layout — Servo") } FinishedLoading => { match self.render_state { RenderingRenderState => { - self.glfw_window.set_title(format!("Rendering — Servo")) + self.glfw_window.set_title("Rendering — Servo") } IdleRenderState => { self.glfw_window.set_title("Servo") diff --git a/src/components/main/platform/common/glut_windowing.rs b/src/components/main/platform/common/glut_windowing.rs index 1316a69af5a..3fb0f055813 100644 --- a/src/components/main/platform/common/glut_windowing.rs +++ b/src/components/main/platform/common/glut_windowing.rs @@ -162,7 +162,7 @@ impl Window { let throbber = THROBBER[self.throbber_frame]; match self.ready_state { Blank => { - glut::set_window_title(self.glut_window, format!("Blank")) + glut::set_window_title(self.glut_window, "Blank") } Loading => { glut::set_window_title(self.glut_window, format!("{:c} Loading . Servo", throbber))