Files
firezone/rust/bin-shared/src/network_changes.rs
Thomas Eizinger a9f515a453 chore(rust): use #[expect] instead of #[allow] (#6692)
The `expect` attribute is similar to `allow` in that it will silence a
particular lint. In addition to `allow` however, `expect` will fail as
soon as the lint is no longer emitted. This ensures we don't end up with
stale `allow` attributes in our codebase. Additionally, it provides a
way of adding a `reason` to document, why the lint is being suppressed.
2024-09-16 13:51:12 +00:00

15 lines
362 B
Rust

#[cfg(target_os = "linux")]
#[path = "network_changes/linux.rs"]
#[expect(
clippy::unnecessary_wraps,
reason = "Signatures must match other platforms"
)]
mod imp;
#[cfg(target_os = "windows")]
#[path = "network_changes/windows.rs"]
mod imp;
#[cfg(any(target_os = "windows", target_os = "linux"))]
pub use imp::{new_dns_notifier, new_network_notifier};