From 54f442ea06e26654438c4f3acdbacca1b2b1cefe Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Sun, 8 May 2016 09:28:42 +0200 Subject: Generalize WindowBuilder::with_title --- src/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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>(mut self, title: T) -> WindowBuilder<'a> { + self.window.title = title.into(); self } -- cgit v1.2.3