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,7 +1,7 @@
use telnet::Telnet;
use telnet::Event::Data;
use crate::parameter::ParameterList;
use telnet::Telnet;
use crate::parameter::ParameterList;
use crate::response::Response;
fn to_single_response(resp: Response) -> Response {
@ -45,6 +45,7 @@ fn send_command(connection: &mut Telnet, command: &str, skip_ok: bool) -> Result
read_response(connection, skip_ok, String::new())
}
fn read_response(connection: &mut Telnet, skip_ok: bool, mut buffer: String) -> Result<Response, String> {
let (response_str, buffer) = read_response_buffer(connection, &mut buffer)?;