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