mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 10:18:51 +00:00
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.
15 lines
362 B
Rust
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};
|