From ae5917741feb223822fc2c35eb8e5979b45abc5b Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sat, 2 Jan 2016 22:07:38 +0100 Subject: [PATCH] Fixed bad usage of incorrect Window --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2eb82b8..d38eaef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -205,8 +205,8 @@ impl Window { /// } ///}; /// ``` - pub fn new(name: &str, width: usize, height: usize, scale: Scale) -> Result { - imp::Window::new(name, width, height, scale) + pub fn new(name: &str, width: usize, height: usize, scale: Scale) -> Result { + imp::Window::new(name, width, height, scale).map(Window) } ///