ref:main

clippy failed

Command: rustup component add clippy cargo clippy --all-targets -- -D warnings 2>&1
Runner: carl online linux/arm64
Started: Mar 18, 2026 at 19:11 UTC Completed: Mar 18, 2026 at 19:11 UTC Duration: 19s
Exit code: 101

Build Output

Pulling image: rust:1.86-bookworm
info: downloading component 'clippy'
info: installing component 'clippy'
Updating crates.io index
Downloading crates ...
Downloaded anstream v0.6.21
Downloaded anstyle v1.0.13
Downloaded anstyle-query v1.1.5
Downloaded anstyle-parse v0.2.7
Downloaded atomic-waker v1.1.2
Downloaded scopeguard v1.2.0
Downloaded colorchoice v1.0.4
Downloaded cfg_aliases v0.2.1
Downloaded bitflags v2.11.0
Downloaded serde_urlencoded v0.7.1
Downloaded dirs v6.0.0
Downloaded cfg-if v1.0.4
Downloaded clap_lex v1.0.0
Downloaded ryu v1.0.23
Downloaded rustc-hash v2.1.1
Downloaded http-body v1.0.1
Downloaded heck v0.5.0
Downloaded hostname v0.4.2
Downloaded fastrand v2.3.0
Downloaded futures-macro v0.3.32
Downloaded form_urlencoded v1.2.2
Downloaded tabled_derive v0.9.0
Downloaded strsim v0.11.1
Downloaded subtle v2.6.1
Downloaded pin-utils v0.1.0
Downloaded mime v0.3.17
Downloaded errno v0.3.14
Downloaded option-ext v0.2.0
Downloaded sync_wrapper v1.0.2
Downloaded idna_adapter v1.2.1
Downloaded proc-macro-error-attr2 v2.0.0
Downloaded shell-words v1.1.1
Downloaded fnv v1.0.7
Downloaded zerofrom v0.1.6
Downloaded futures-io v0.3.32
Downloaded heck v0.4.1
Downloaded tower-service v0.3.3
Downloaded yoke-derive v0.8.1
Downloaded tinyvec_macros v0.1.1
Downloaded futures-task v0.3.32
Downloaded utf8_iter v1.0.4
Downloaded itoa v1.0.17
Downloaded potential_utf v0.1.4
Downloaded utf8parse v0.2.2
Downloaded percent-encoding v2.3.2
Downloaded untrusted v0.9.0
Downloaded lru-slab v0.1.2
Downloaded try-lock v0.2.5
Downloaded is_terminal_polyfill v1.70.2
Downloaded zerofrom-derive v0.1.6
Downloaded want v0.3.1
Downloaded bytecount v0.6.9
Downloaded autocfg v1.5.0
Downloaded tower-layer v0.3.3
Downloaded slab v0.4.12
Downloaded futures-sink v0.3.32
Downloaded shlex v1.3.0
Downloaded dirs-sys v0.5.0
Downloaded synstructure v0.13.2
Downloaded stable_deref_trait v1.2.1
Downloaded signal-hook-registry v1.4.8
Downloaded dialoguer v0.11.0
Downloaded tinystr v0.8.2
Downloaded thiserror v1.0.69
Downloaded zerovec-derive v0.11.2
Downloaded tokio-macros v2.6.1
Downloaded find-msvc-tools v0.1.9
Downloaded zeroize v1.8.2
Downloaded thiserror-impl v2.0.18
Downloaded http-body-util v0.1.3
Downloaded glob v0.3.3
Downloaded displaydoc v0.2.5
Downloaded zmij v1.0.21
Downloaded futures-core v0.3.32
Downloaded yoke v0.8.1
Downloaded thiserror-impl v1.0.69
Downloaded ipnet v2.12.0
Downloaded thiserror v2.0.18
Downloaded futures-executor v0.3.32
Downloaded tempfile v3.27.0
Downloaded smallvec v1.15.1
Downloaded ppv-lite86 v0.2.21
Downloaded pin-project-lite v0.2.17
Downloaded rand_chacha v0.9.0
Downloaded mime_guess v2.0.5
Downloaded lock_api v0.4.14
Downloaded proc-macro-error2 v2.0.1
Downloaded writeable v0.6.2
Downloaded tokio-rustls v0.26.4
Downloaded quote v1.0.45
Downloaded rustls-pki-types v1.14.0
Downloaded unicase v2.9.0
Downloaded clap_derive v4.5.55
Downloaded colored v3.1.1
Downloaded serde_derive v1.0.228
Downloaded iana-time-zone v0.1.65
Downloaded socket2 v0.6.3
Downloaded serde_core v1.0.228
Downloaded tinyvec v1.10.0
Downloaded quinn-udp v0.5.14
Downloaded parking_lot_core v0.9.12
Downloaded console v0.15.11
Downloaded getrandom v0.2.17
Downloaded rand_core v0.9.5
Downloaded futures-channel v0.3.32
Downloaded tracing-core v0.1.36
Downloaded unicode-ident v1.0.24
Downloaded hyper-rustls v0.27.7
Downloaded once_cell v1.21.3
Downloaded parking_lot v0.12.5
Downloaded base64 v0.22.1
Downloaded serde v1.0.228
Downloaded getrandom v0.4.2
Downloaded futures v0.3.32
Downloaded url v2.5.8
Downloaded rustls-webpki v0.103.9
Downloaded icu_provider v2.1.1
Downloaded zerotrie v0.2.3
Downloaded tower v0.5.3
Downloaded papergrid v0.13.0
Downloaded log v0.4.29
Downloaded litemap v0.8.1
Downloaded icu_properties v2.1.2
Downloaded serde_json v1.0.149
Downloaded proc-macro2 v1.0.106
Downloaded icu_locale_core v2.1.1
Downloaded zerovec v0.11.5
Downloaded icu_normalizer v2.1.1
Downloaded num-traits v0.2.19
Downloaded httparse v1.10.1
Downloaded getrandom v0.3.4
Downloaded clap v4.5.60
Downloaded icu_collections v2.1.1
Downloaded bytes v1.11.1
Downloaded icu_normalizer_data v2.1.1
Downloaded tower-http v0.6.8
Downloaded rand v0.9.2
Downloaded quinn v0.11.9
Downloaded memchr v2.8.0
Downloaded cc v1.2.56
Downloaded hyper-util v0.1.20
Downloaded mio v1.1.1
Downloaded tabled v0.17.0
Downloaded http v1.4.0
Downloaded webpki-roots v1.0.6
Downloaded idna v1.1.0
Downloaded iri-string v0.7.10
Downloaded reqwest v0.12.28
Downloaded zerocopy v0.8.42
Downloaded syn v2.0.117
Downloaded icu_properties_data v2.1.2
Downloaded futures-util v0.3.32
Downloaded clap_builder v4.5.60
Downloaded chrono v0.4.44
Downloaded rustls v0.23.37
Downloaded quinn-proto v0.11.14
Downloaded unicode-width v0.2.2
Downloaded syn v1.0.109
Downloaded hyper v1.8.1
Downloaded tracing v0.1.44
Downloaded rustix v1.1.4
Downloaded tokio v1.50.0
Downloaded libc v0.2.183
Downloaded ring v0.17.14
Downloaded linux-raw-sys v0.12.1
Checking anvil-cli v0.1.0 (/workspace)
error: redundant closure
--> src/commands/ci.rs:306:62
|
306 | s.get("updated_at").and_then(|v| v.as_str()).map(|t| output::format_time(t)).unwrap_or_default(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `output::format_time`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `-D clippy::redundant-closure` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`
error: redundant closure
--> src/commands/commit.rs:99:22
|
99 | .map(|t| output::format_time(t))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `output::format_time`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
error: redundant closure
--> src/commands/issue.rs:423:76
|
423 | let time = comment.get("inserted_at").and_then(|v| v.as_str()).map(|t| output::format_time(t)).unwrap_or_default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `output::format_time`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
error: redundant closure
--> src/commands/issue.rs:440:57
|
440 | m.get("state").and_then(|v| v.as_str()).map(|s| output::colorize_status(s)).unwrap_or_default(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `output::colorize_status`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
error: redundant closure
--> src/commands/pr.rs:402:57
|
402 | r.get("state").and_then(|v| v.as_str()).map(|s| output::colorize_status(s)).unwrap_or_default(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `output::colorize_status`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
error: redundant closure
--> src/commands/pr.rs:405:63
|
405 | r.get("inserted_at").and_then(|v| v.as_str()).map(|t| output::format_time(t)).unwrap_or_default(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `output::format_time`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
error: this function has too many arguments (8/7)
--> src/commands/requirement.rs:277:1
|
277 | / async fn create(
278 | | repo: Option<&str>,
279 | | requirement_id: &str,
280 | | title: &str,
... |
285 | | parent_id: Option<&str>,
286 | | ) -> Result<(), Box<dyn std::error::Error>> {
| |___________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `-D clippy::too-many-arguments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::too_many_arguments)]`
error: redundant closure
--> src/commands/ssh_key.rs:66:26
|
66 | .map(|t| output::format_time(t))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `output::format_time`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
error: redundant closure
--> src/commands/ssh_key.rs:70:26
|
70 | .map(|t| output::format_time(t))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `output::format_time`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
error: could not compile `anvil-cli` (bin "anvil" test) due to 9 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `anvil-cli` (bin "anvil") due to 9 previous errors