From 52fdedc53440a57cba71d127eb90a62f4e5bf4b2 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Tue, 25 May 2021 19:15:22 +0200 Subject: [PATCH] Remove unneeded "extern crate" statements --- src/bin/swayr.rs | 4 +--- src/bin/swayrd.rs | 3 --- src/client.rs | 2 -- src/ipc.rs | 5 ----- 4 files changed, 1 insertion(+), 13 deletions(-) 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;