Auto-reformat code
This commit is contained in:
parent
463bc99b9c
commit
1002782e8f
8 changed files with 41 additions and 33 deletions
src
15
src/main.rs
15
src/main.rs
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue