Compare commits
3 Commits
c056016d43
...
0a1bb3bd7e
Author | SHA1 | Date | |
---|---|---|---|
0a1bb3bd7e | |||
10d9e3e71e | |||
3583d89697 |
8
.github/workflows/rust.yml
vendored
8
.github/workflows/rust.yml
vendored
@ -31,10 +31,10 @@ jobs:
|
||||
with:
|
||||
command: check
|
||||
- name: Annotate commit with clippy warnings
|
||||
uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-features -W clippy::all -W clippy::pedantic -W clippy::nursery -W clippy::cargo -A clippy::non_ascii_literal -A clippy::missing_errors_doc -A clippy::clippy::multiple_crate_versions
|
||||
uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-features -- -Wclippy::all -Wclippy::pedantic -Wclippy::nursery -Wclippy::cargo -Aclippy::non_ascii_literal -Aclippy::missing_errors_doc -Aclippy::multiple_crate_versions
|
||||
- name: Run cargo Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
@ -120,7 +120,7 @@ impl LockedFileGuard {
|
||||
|_| Ok(()),
|
||||
)?;
|
||||
// Read the last character
|
||||
let mut b = [0 as u8; 1];
|
||||
let mut b = [0_u8; 1];
|
||||
self.file.read_exact(&mut b)?;
|
||||
// Verify it is '\n' else append '\n' so in any case the file ends with with a newline now
|
||||
if &b != b"\n" {
|
||||
|
Loading…
Reference in New Issue
Block a user