mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 06:52:55 +00:00
## Problem
```
error: unused import: `anyhow::Context`
--> libs/utils/src/crashsafe.rs:8:5
|
8 | use anyhow::Context;
| ^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
error: unused variable: `fd`
--> libs/utils/src/crashsafe.rs:209:15
|
209 | pub fn syncfs(fd: impl AsRawFd) -> anyhow::Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_fd`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
```
## Summary of changes
- Fix rust warnings on macOS