From 584bb3e7df751d55aad189eacd85b1cd6c5aa5c5 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Wed, 5 Nov 2014 16:42:18 +0100 Subject: Use a proper error type for window creation --- src/x11/headless.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/x11/headless.rs') diff --git a/src/x11/headless.rs b/src/x11/headless.rs index 4f4eb16..71232e5 100644 --- a/src/x11/headless.rs +++ b/src/x11/headless.rs @@ -1,4 +1,5 @@ use HeadlessRendererBuilder; +use CreationError; use libc; use std::{mem, ptr}; use super::ffi; @@ -11,7 +12,7 @@ pub struct HeadlessContext { } impl HeadlessContext { - pub fn new(builder: HeadlessRendererBuilder) -> Result { + pub fn new(builder: HeadlessRendererBuilder) -> Result { Ok(HeadlessContext { width: builder.dimensions.0, height: builder.dimensions.1, -- cgit v1.2.3