fix: skip REF-only records #1224
conventional-prs.yml
on: pull_request_target
title-format
4s
Annotations
1 warning
this `match` can be collapsed into the outer `if let`:
src/server/mod.rs#L97
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
|