mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-22 10:41:48 +00:00
Using the clippy lint `unwrap_used`, we can automatically lint against all uses of `.unwrap()` on `Result` and `Option`. This turns up quite a few results actually. In most cases, they are invariants that can't actually be hit. For these, we change them to `Option`. In other cases, they can actually be hit. For example, if the user supplies an invalid log-filter. Activating this lint ensures the compiler will yell at us every time we use `.unwrap` to double-check whether we do indeed want to panic here. Resolves: #7292.
14 lines
239 B
Rust
14 lines
239 B
Rust
#![cfg_attr(test, allow(clippy::unwrap_used))]
|
|
|
|
pub mod auth;
|
|
pub mod compositor;
|
|
pub mod controller;
|
|
pub mod deep_link;
|
|
pub mod errors;
|
|
pub mod ipc;
|
|
pub mod logging;
|
|
pub mod settings;
|
|
pub mod system_tray;
|
|
pub mod updates;
|
|
pub mod uptime;
|