This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Initial migration #4
Annotations
1 warning
|
Create binary for x86_64-unknown-linux-gnu:
otel-worker-cli/src/main.rs#L47
[clippy] reported by reviewdog 🐶
warning: unnecessary closure used to substitute value for `Result::Err`
--> otel-worker-cli/src/main.rs:47:26
|
47 | let directives = rust_log.as_deref().unwrap_or_else(|_| {
| __________________________^
48 | | if args.debug {
49 | | DEBUG_LOG_DIRECTIVES
50 | | } else {
51 | | DEFAULT_LOG_DIRECTIVES
52 | | }
53 | | });
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
= note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
help: use `unwrap_or` instead
|
47 ~ let directives = rust_log.as_deref().unwrap_or({
48 + if args.debug {
49 + DEBUG_LOG_DIRECTIVES
50 + } else {
51 + DEFAULT_LOG_DIRECTIVES
52 + }
53 ~ });
|
Raw Output:
otel-worker-cli/src/main.rs:47:26:w:warning: unnecessary closure used to substitute value for `Result::Err`
--> otel-worker-cli/src/main.rs:47:26
|
47 | let directives = rust_log.as_deref().unwrap_or_else(|_| {
| __________________________^
48 | | if args.debug {
49 | | DEBUG_LOG_DIRECTIVES
50 | | } else {
51 | | DEFAULT_LOG_DIRECTIVES
52 | | }
53 | | });
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
= note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
help: use `unwrap_or` instead
|
47 ~ let directives = rust_log.as_deref().unwrap_or({
48 + if args.debug {
49 + DEBUG_LOG_DIRECTIVES
50 + } else {
51 + DEFAULT_LOG_DIRECTIVES
52 + }
53 ~ });
|
__END__
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
otel-worker-cli_x86_64-unknown-linux-gnu
Expired
|
7.33 MB |
sha256:becb362abd59b5fa71abf898d0fa1b836af29aa8c55a718bc5e553f290a7c112
|
|