summaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2017-10-02 19:04:55 -0300
committerMatias Linares <matiaslina@openmailbox.org>2017-10-02 19:04:55 -0300
commitc633ead724380cb7bdcdff9d9cda517eafd9a3f4 (patch)
tree208c5931d45bb2c1f853aa7558d52a806ea239d8 /src/event.rs
parented1b858cac9cf551d3fcf2e32b20bb8f65421bae (diff)
downloaddotwm-c633ead724380cb7bdcdff9d9cda517eafd9a3f4.tar.gz
Use std UnixListener/UnixStream
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"),
};