Refactor response_classes and fix clippy issues
This commit is contained in:
parent
244a7073fe
commit
463bc99b9c
8 changed files with 139 additions and 133 deletions
src
|
@ -2,13 +2,13 @@ mod response;
|
|||
mod utils;
|
||||
mod commands;
|
||||
mod parameter;
|
||||
mod response_classes;
|
||||
mod cli;
|
||||
|
||||
use std::process::exit;
|
||||
use telnet::Telnet;
|
||||
use crate::cli::Commands;
|
||||
use crate::response_classes::{ResponseChannel, ResponseClient};
|
||||
use crate::response::channel::ResponseChannel;
|
||||
use crate::response::client::ResponseClient;
|
||||
|
||||
fn channel_or_exit(channel_res: Result<Option<ResponseChannel>, String>) -> ResponseChannel {
|
||||
channel_res.unwrap_or_else(|err| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue