Auto-reformat code

This commit is contained in:
Tobias Reisinger 2023-11-17 17:43:29 +01:00
parent 463bc99b9c
commit 1002782e8f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 41 additions and 33 deletions

View file

@ -1,15 +1,17 @@
use std::process::exit;
use telnet::Telnet;
use crate::cli::Commands;
use crate::response::channel::ResponseChannel;
use crate::response::client::ResponseClient;
mod response;
mod utils;
mod commands;
mod parameter;
mod cli;
use std::process::exit;
use telnet::Telnet;
use crate::cli::Commands;
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| {
println!("Failed to find channel: {}", err);
@ -33,7 +35,6 @@ fn client_or_exit(client_res: Result<Option<ResponseClient>, String>) -> Respons
}
fn main() {
let cli = cli::init();
let connection = Telnet::connect(("127.0.0.1", 25639), 512 * 1024);