GitHub Actions / clippy macos-latest
succeeded
Nov 20, 2025 in 0s
clippy macos-latest
1 warning
Details
Results
| Message level | Amount |
|---|---|
| Internal compiler error | 0 |
| Error | 0 |
| Warning | 1 |
| Note | 0 |
| Help | 0 |
Versions
- rustc 1.91.1 (ed61e7d7e 2025-11-07)
- cargo 1.91.1 (ea2d97820 2025-10-10)
- clippy 0.1.91 (ed61e7d7e2 2025-11-07)
Annotations
Check warning on line 220 in src/logging/tracing.rs
github-actions / clippy macos-latest
returning the result of a `let` binding from a block
warning: returning the result of a `let` binding from a block
--> src/logging/tracing.rs:220:5
|
215 | / let syslogger = match Syslog::new(identity, options, facility) {
216 | | Some(l) => l,
217 | | None => panic!("syslog is already initialized"),
218 | | };
| |______- unnecessary `let` binding
219 |
220 | syslogger
| ^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
215 ~
216 |
217 ~ match Syslog::new(identity, options, facility) {
218 + Some(l) => l,
219 + None => panic!("syslog is already initialized"),
220 + }
|
Loading