aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.rs b/src/window.rs
index 8e82c1d..4cac1ce 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -63,8 +63,8 @@ impl<'a> WindowBuilder<'a> {
/// Requests a specific title for the window.
#[inline]
- pub fn with_title(mut self, title: String) -> WindowBuilder<'a> {
- self.window.title = title;
+ pub fn with_title<T: Into<String>>(mut self, title: T) -> WindowBuilder<'a> {
+ self.window.title = title.into();
self
}