aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2016-05-08 11:13:58 +0200
committertomaka <pierre.krieger1708@gmail.com>2016-05-08 11:13:58 +0200
commit547161af276349405fac1437a47ad6eb213338d2 (patch)
tree0901b9ef9253037d539b5dac2e41c961b7c1368b /src
parent93c88ee54d365ce6804c1cab56ecc600e792263f (diff)
parent54f442ea06e26654438c4f3acdbacca1b2b1cefe (diff)
downloadglutin-547161af276349405fac1437a47ad6eb213338d2.tar.gz
glutin-547161af276349405fac1437a47ad6eb213338d2.zip
Merge pull request #773 from IvanUkhov/title
Generalize WindowBuilder::with_title
Diffstat (limited to 'src')
-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
}