diff options
author | Mathias Lafeldt <mathias.lafeldt@gmail.com> | 2022-08-19 14:17:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 08:17:18 -0400 |
commit | 1848c7e361f1a3a33487b60ab6fcb61ed1f62273 (patch) | |
tree | 224d68a9ed594badcf4785b77941405e9b8eba6a /ext/flash/sendfile.rs | |
parent | 25a109d9ea27ad3a76fdce14bba283e953af9bce (diff) |
Fix: Honor linter rules in CI and locally (#15492)
RUSTFLAGS take precedence over `target.<triple>.rustflags`. Therefore,
setting the env var globally in CI would always override whatever linter
rules are allowed or denied in .cargo/config.toml.
With this change, we ensure that problems are detected both in CI and
locally, using either cargo clippy or lint.js.
Diffstat (limited to 'ext/flash/sendfile.rs')
-rw-r--r-- | ext/flash/sendfile.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/flash/sendfile.rs b/ext/flash/sendfile.rs index 4efa7bc35..4caea712d 100644 --- a/ext/flash/sendfile.rs +++ b/ext/flash/sendfile.rs @@ -21,8 +21,8 @@ impl SendFile { let count = 0x7ffff000; let mut offset = self.written as libc::off_t; - // SAFETY: call to libc::sendfile() let res = + // SAFETY: call to libc::sendfile() unsafe { libc::sendfile(self.io.1, self.io.0, &mut offset, count) }; if res == -1 { Err(io::Error::last_os_error()) |