diff --git a/src/bin/swayr.rs b/src/bin/swayr.rs index 0052e94..c9b3cfb 100644 --- a/src/bin/swayr.rs +++ b/src/bin/swayr.rs @@ -1,8 +1,6 @@ //! The `swayr` binary. -#[macro_use] -extern crate clap; -use clap::Clap; +use clap::{crate_version, Clap}; use swayr::client; use swayr::ipc; diff --git a/src/bin/swayrd.rs b/src/bin/swayrd.rs index 7341e33..f355768 100644 --- a/src/bin/swayrd.rs +++ b/src/bin/swayrd.rs @@ -1,8 +1,5 @@ //! The `swayrd` binary. -extern crate serde; -extern crate serde_json; - use swayr::demon; fn main() { diff --git a/src/client.rs b/src/client.rs index 8a7d5b8..e760899 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1,5 +1,3 @@ -extern crate serde_json; - use crate::ipc; use crate::util; use std::io::Write; diff --git a/src/ipc.rs b/src/ipc.rs index 3d3a74a..e025918 100644 --- a/src/ipc.rs +++ b/src/ipc.rs @@ -1,10 +1,5 @@ //! Extensions of swayipc types and IPC structs. -extern crate serde; -extern crate serde_json; -extern crate swayipc; -extern crate users; - use clap::Clap; use serde::{Deserialize, Serialize}; use swayipc::reply as r;