[GH-ISSUE #139] Add and resolve clippy lints to prevent unwrap and expect functions #73

Closed
opened 2026-02-17 17:12:01 -05:00 by yindo · 1 comment
Owner

Originally created by @quexeky on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/Drop-OSS/drop-app/issues/139

Could also potentially include preventing panic!(), although there may be some use for panic!() still:

#![deny(
    clippy::unwrap_used,
    clippy::expect_used,
    clippy::panic
)]
Originally created by @quexeky on GitHub (Sep 3, 2025). Original GitHub issue: https://github.com/Drop-OSS/drop-app/issues/139 Could also potentially include preventing panic!(), although there may be some use for panic!() still: ```rust #![deny( clippy::unwrap_used, clippy::expect_used, clippy::panic )] ```
yindo closed this issue 2026-02-17 17:12:01 -05:00
Author
Owner

@DecDuck commented on GitHub (Sep 4, 2025):

I think we should just use .expect() when we want to crash. For a non-library application like this, panicking when we want to hard crash is the way to go.

@DecDuck commented on GitHub (Sep 4, 2025): I think we should just use `.expect()` when we want to crash. For a non-library application like this, panicking when we want to hard crash is the way to go.
yindo changed title from Add and resolve clippy lints to prevent unwrap and expect functions to [GH-ISSUE #139] Add and resolve clippy lints to prevent unwrap and expect functions 2026-06-05 14:24:39 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drop-OSS/drop-app#73