aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/headless.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11/headless.rs')
-rw-r--r--src/x11/headless.rs3
1 files changed, 2 insertions, 1 deletions
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<HeadlessContext, String> {
+ pub fn new(builder: HeadlessRendererBuilder) -> Result<HeadlessContext, CreationError> {
Ok(HeadlessContext {
width: builder.dimensions.0,
height: builder.dimensions.1,