Merge pull request #11 from p-l-/test-fmt

CI: check Rust format
This commit is contained in:
_Frky 2021-12-16 20:24:20 +01:00 committed by GitHub
commit af659e272b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -31,6 +31,12 @@ jobs:
with:
toolchain: stable
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Run cargo build
uses: actions-rs/cargo@v1
with:

View file

@ -31,6 +31,9 @@ pub fn repl<'a>(
debug!("receiving SSH data");
let repl_data = b"SSH-2.0-1\r\n".to_vec();
debug!("sending SSH answer");
warn!("SSH server banner to {}", str::from_utf8(&data).unwrap().trim_end());
warn!(
"SSH server banner to {}",
str::from_utf8(&data).unwrap().trim_end()
);
return Some(repl_data);
}