Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(main): release 0.28.1 #530

Merged
merged 1 commit into from
Sep 3, 2024

chore(main): release 0.28.1

7548beb
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

chore(main): release 0.28.1 #530

chore(main): release 0.28.1
7548beb
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Sep 2, 2024 in 0s

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.80.1 (3f5fd8dd4 2024-08-06)
  • cargo 1.80.1 (376290515 2024-07-16)
  • clippy 0.1.80 (3f5fd8d 2024-08-06)

Annotations

Check warning on line 103 in src/server/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `match` can be collapsed into the outer `if let`

warning: this `match` can be collapsed into the outer `if let`
   --> src/server/mod.rs:97:9
    |
97  | /         match level {
98  | |             log::Level::Trace | log::Level::Debug => {
99  | |                 std::env::set_var("RUST_LOG", "debug");
100 | |                 env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
101 | |             }
102 | |             _ => (),
103 | |         }
    | |_________^
    |
help: the outer pattern can be modified to include the inner pattern
   --> src/server/mod.rs:96:17
    |
96  |     if let Some(level) = args_common.verbose.log_level() {
    |                 ^^^^^ replace this binding
97  |         match level {
98  |             log::Level::Trace | log::Level::Debug => {
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
    = note: `#[warn(clippy::collapsible_match)]` on by default