From 9426d8bfee44477a7feec02dc02e9d5881288f70 Mon Sep 17 00:00:00 2001 From: graelo Date: Sat, 20 Mar 2021 22:54:14 +0100 Subject: [PATCH] refactor: tmux -> comm/tmux.rs --- src/bin/tmux_copyrat.rs | 2 +- src/comm/mod.rs | 1 + src/{ => comm}/tmux.rs | 0 src/lib.rs | 2 +- 4 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 src/comm/mod.rs rename src/{ => comm}/tmux.rs (100%) diff --git a/src/bin/tmux_copyrat.rs b/src/bin/tmux_copyrat.rs index b523baa..702ad41 100644 --- a/src/bin/tmux_copyrat.rs +++ b/src/bin/tmux_copyrat.rs @@ -2,7 +2,7 @@ use clap::Clap; use std::collections::HashMap; use std::str::FromStr; -use copyrat::{error, output_destination::OutputDestination, tmux, ui::Selection, CliOpt}; +use copyrat::{comm::tmux, error, output_destination::OutputDestination, ui::Selection, CliOpt}; /// Main configuration, parsed from command line. #[derive(Clap, Debug)] diff --git a/src/comm/mod.rs b/src/comm/mod.rs new file mode 100644 index 0000000..ee3d575 --- /dev/null +++ b/src/comm/mod.rs @@ -0,0 +1 @@ +pub mod tmux; diff --git a/src/tmux.rs b/src/comm/tmux.rs similarity index 100% rename from src/tmux.rs rename to src/comm/tmux.rs diff --git a/src/lib.rs b/src/lib.rs index a8ae97c..d8825b9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ +pub mod comm; pub mod error; pub mod output_destination; pub mod textbuf; -pub mod tmux; pub mod ui; use clap::Clap;