summaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/event.rs b/src/event.rs
index 055a94b..9e96146 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -18,9 +18,7 @@ use x11::xlib::{
use x11::xlib;
use x11::xlib::Display;
-use unix_socket::UnixStream;
-use unix_socket::UnixListener;
-
+use std::os::unix::net::{UnixStream,UnixListener};
use libc::c_int;
use libc::{
FD_SET,
@@ -69,7 +67,7 @@ impl fmt::Debug for Event {
Event::Map(ev) => format!("Map({})", XEvent::from(ev).get_type()),
Event::Configure(ev) => format!("Configure({})", XEvent::from(ev).get_type()),
Event::Expose(ev) => format!("Expose({})", XEvent::from(ev).get_type()),
- Event::Socket(_) => String::from("Socket()"),
+ Event::Socket(ref ev) => format!("Socket({:?})", ev),
Event::NoEvent => String::from("NoEvent"),
};