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) } ///