Skip to content

core: Make clippy happy#234

Merged
vnepogodin merged 1 commit intomasterfrom
clippy
Mar 29, 2026
Merged

core: Make clippy happy#234
vnepogodin merged 1 commit intomasterfrom
clippy

Conversation

@ventureoo
Copy link
Copy Markdown
Member

Fixes warning:

warning: called `unwrap` on `working_profile` after checking its variant with `is_none`
   --> src/main.rs:136:17
    |
127 |             if working_profile.is_none() {
    |             ---------------------------- help: try: `if let Some(<item>) = &working_profile`
...
136 |                 working_profile.as_ref().unwrap(),
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#unnecessary_unwrap
    = note: `#[warn(clippy::unnecessary_unwrap)]` on by default

warning: `chwd` (bin "chwd") generated 1 warning

Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>
Copy link
Copy Markdown
Member

@vnepogodin vnepogodin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair

we've created that IFs tree stickl

@vnepogodin vnepogodin merged commit 7b6e774 into master Mar 29, 2026
1 of 2 checks passed
@vnepogodin vnepogodin deleted the clippy branch March 29, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants