Skip to content

Commit

Permalink
rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
ReagentX committed Mar 7, 2024
1 parent f512421 commit b4d2ff5
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/communication/handlers/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use super::handler::Handler;
use crate::{
communication::{
handlers::user_input::UserInputHandler,
input::{input_type::InputType, stream_type::StreamType},
input::{InputType, StreamType},
reader::MainWindow,
},
ui::scroll::ScrollState,
Expand Down
2 changes: 1 addition & 1 deletion src/communication/handlers/normal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crossterm::{cursor, event::KeyCode, queue, Result};
use super::handler::Handler;
use crate::{
communication::{
input::{input_type::InputType, stream_type::StreamType},
input::{InputType, StreamType},
reader::MainWindow,
},
ui::scroll,
Expand Down
10 changes: 5 additions & 5 deletions src/communication/handlers/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
handlers::{
handler::Handler, multiple_choice::MultipleChoiceHandler, processor::ProcessorMethods,
},
input::{input_type::InputType::Normal, stream_type::StreamType},
input::{InputType::Normal, StreamType},
reader::MainWindow,
},
extensions::{
Expand Down Expand Up @@ -427,7 +427,7 @@ mod parse_tests {
use crate::{
communication::{
handlers::{handler::Handler, parser::ParserState, processor::ProcessorMethods},
input::{input_type::InputType, stream_type::StreamType},
input::{InputType, StreamType},
reader::MainWindow,
},
extensions::parser::{Parser, PatternType},
Expand Down Expand Up @@ -671,7 +671,7 @@ mod regex_tests {
handler::Handler, parser::ParserHandler, parser::ParserState,
processor::ProcessorMethods,
},
input::{input_type::InputType, stream_type::StreamType},
input::{InputType, StreamType},
reader::MainWindow,
},
extensions::parser::{Parser, PatternType},
Expand Down Expand Up @@ -840,7 +840,7 @@ mod split_tests {
use crate::{
communication::{
handlers::{handler::Handler, parser::ParserState, processor::ProcessorMethods},
input::{input_type::InputType, stream_type::StreamType},
input::{InputType, StreamType},
reader::MainWindow,
},
extensions::parser::{Parser, PatternType},
Expand Down Expand Up @@ -980,7 +980,7 @@ mod failure_tests {
use crate::{
communication::{
handlers::{handler::Handler, parser::ParserState, processor::ProcessorMethods},
input::{input_type::InputType, stream_type::StreamType},
input::{InputType, StreamType},
reader::MainWindow,
},
extensions::parser::{Parser, PatternType},
Expand Down
5 changes: 2 additions & 3 deletions src/communication/handlers/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use regex::bytes::Regex;
use super::{handler::Handler, processor::ProcessorMethods};
use crate::{
communication::{
handlers::user_input::UserInputHandler, input::input_type::InputType::Normal,
reader::MainWindow,
handlers::user_input::UserInputHandler, input::InputType::Normal, reader::MainWindow,
},
constants::cli::{cli_chars::NORMAL_CHAR, patterns::ANSI_COLOR_PATTERN},
ui::scroll,
Expand Down Expand Up @@ -169,7 +168,7 @@ mod tests {

use crate::communication::{
handlers::{handler::Handler, processor::ProcessorMethods},
input::input_type::InputType,
input::InputType,
reader::MainWindow,
};

Expand Down
5 changes: 2 additions & 3 deletions src/communication/handlers/startup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use super::{handler::Handler, user_input::UserInputHandler};
use crate::{
communication::{
input::{
build_streams_from_input, build_streams_from_session, input_type::InputType,
stream_type::StreamType::StdErr,
build_streams_from_input, build_streams_from_session, InputType, StreamType::StdErr,
},
reader::MainWindow,
},
Expand Down Expand Up @@ -149,7 +148,7 @@ mod startup_tests {
use crate::{
communication::{
handlers::handler::Handler,
input::{input_type::InputType, stream_type::StreamType},
input::{InputType, StreamType},
reader::MainWindow,
},
constants::cli::messages::START_MESSAGE,
Expand Down
7 changes: 2 additions & 5 deletions src/communication/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ use crate::{
regex::RegexHandler,
startup::StartupHandler,
},
input::{
build_streams_from_input, input_type::InputType, stream_type::StreamType,
streams::InputStream,
},
input::{build_streams_from_input, InputStream, InputType, StreamType},
},
constants::cli::{
cli_chars, colors,
Expand Down Expand Up @@ -1016,7 +1013,7 @@ mod render_tests {

#[cfg(test)]
mod poll_rate_tests {
use crate::communication::{input::input_type::InputType, reader::MainWindow};
use crate::communication::{input::InputType, reader::MainWindow};
use std::time::Duration;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/ui/scroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn top(window: &mut MainWindow) {
#[cfg(test)]
mod tests {
use crate::{
communication::{input::input_type::InputType::Regex, reader::MainWindow},
communication::{input::InputType::Regex, reader::MainWindow},
ui::scroll,
};

Expand Down

0 comments on commit b4d2ff5

Please sign in to comment.