Compare commits
3 Commits
c056016d43
...
0a1bb3bd7e
Author | SHA1 | Date | |
---|---|---|---|
0a1bb3bd7e | |||
10d9e3e71e | |||
3583d89697 |
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
uses: actions-rs/clippy-check@v1
|
uses: actions-rs/clippy-check@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
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
|
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
|
- name: Run cargo Build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
@ -120,7 +120,7 @@ impl LockedFileGuard {
|
|||||||
|_| Ok(()),
|
|_| Ok(()),
|
||||||
)?;
|
)?;
|
||||||
// Read the last character
|
// Read the last character
|
||||||
let mut b = [0 as u8; 1];
|
let mut b = [0_u8; 1];
|
||||||
self.file.read_exact(&mut b)?;
|
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
|
// Verify it is '\n' else append '\n' so in any case the file ends with with a newline now
|
||||||
if &b != b"\n" {
|
if &b != b"\n" {
|
||||||
|
Loading…
Reference in New Issue
Block a user