[INFO] fetching crate faktory 0.13.1... [INFO] linting faktory-0.13.1 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate faktory 0.13.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate faktory 0.13.1 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate faktory 0.13.1 [INFO] tweaked toml for crates.io crate faktory 0.13.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate faktory 0.13.1 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate faktory 0.13.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-rustls v0.25.0 [INFO] [stderr] Downloaded x509-parser v0.15.1 [INFO] [stderr] Downloaded schemars v1.0.3 [INFO] [stderr] Downloaded testcontainers v0.24.0 [INFO] [stderr] Downloaded rustls v0.22.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56f624358d21107771ecf1c7a6d364379bae9e62c3697db5ad6f6675262fcee4 [INFO] running `Command { std: "docker" "start" "-a" "56f624358d21107771ecf1c7a6d364379bae9e62c3697db5ad6f6675262fcee4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56f624358d21107771ecf1c7a6d364379bae9e62c3697db5ad6f6675262fcee4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56f624358d21107771ecf1c7a6d364379bae9e62c3697db5ad6f6675262fcee4", kill_on_drop: false }` [INFO] [stdout] 56f624358d21107771ecf1c7a6d364379bae9e62c3697db5ad6f6675262fcee4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eda5d8a7b1652a470e28aa05f0a052a5e469f161de26e6db4278450b2b2b10df [INFO] running `Command { std: "docker" "start" "-a" "eda5d8a7b1652a470e28aa05f0a052a5e469f161de26e6db4278450b2b2b10df", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling rustls v0.23.28 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking rusticata-macros v4.1.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling oid-registry v0.6.1 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking home v0.5.11 [INFO] [stderr] Checking rustls-native-certs v0.8.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking filetime v0.2.25 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking etcetera v0.10.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking xattr v1.5.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ulid v1.2.1 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling asn1-rs-derive v0.4.0 [INFO] [stderr] Compiling asn1-rs-impl v0.1.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling structmeta-derive v0.3.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking rustls-webpki v0.103.3 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking asn1-rs v0.5.2 [INFO] [stderr] Compiling structmeta v0.3.0 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling parse-display-derive v0.9.1 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Checking der-parser v8.2.0 [INFO] [stderr] Checking derive_builder v0.12.0 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking parse-display v0.9.1 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking x509-parser v0.15.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking tokio-tar v0.3.1 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking hyperlocal v0.9.1 [INFO] [stderr] Checking serde_with v3.14.0 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking docker_credential v1.3.2 [INFO] [stderr] Checking faktory v0.13.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking bollard-stubs v1.47.1-rc.27.3.1 [INFO] [stdout] warning: manual implementation of `ok` [INFO] [stdout] --> src/proto/single/resp.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | / if let Ok(s) = std::str::from_utf8(b) { [INFO] [stdout] 16 | | Some(s) [INFO] [stdout] 17 | | } else { [INFO] [stdout] 18 | | None [INFO] [stdout] 19 | | } [INFO] [stdout] | |_____________^ help: replace with: `std::str::from_utf8(b).ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_err [INFO] [stdout] = note: `#[warn(clippy::manual_ok_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/worker/runner.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a, E, F, Fut> JobRunner for &'a F [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 73 - impl<'a, E, F, Fut> JobRunner for &'a F [INFO] [stdout] 73 + impl JobRunner for &F [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/worker/runner.rs:85:6 [INFO] [stdout] | [INFO] [stdout] 85 | impl<'a, E, F, Fut> JobRunner for &'a mut F [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 85 - impl<'a, E, F, Fut> JobRunner for &'a mut F [INFO] [stdout] 85 + impl JobRunner for &mut F [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking bollard v0.18.1 [INFO] [stderr] Checking testcontainers v0.24.0 [INFO] [stdout] warning: associated function `new_unchecked` is never used [INFO] [stdout] --> tests/mock/mod.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Stream { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn new_unchecked(stream: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `get(local).is_none()` [INFO] [stdout] --> tests/real/community.rs:108:38 [INFO] [stdout] | [INFO] [stdout] 108 | assert!(server_state.data.queues.get(local).is_none()); [INFO] [stdout] | -------------------------^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace it with: `!server_state.data.queues.contains_key(local)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check [INFO] [stdout] = note: `#[warn(clippy::unnecessary_get_then_check)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `get(local) [INFO] [stdout] .is_none()` [INFO] [stdout] --> tests/real/community.rs:193:10 [INFO] [stdout] | [INFO] [stdout] 193 | .get(local) [INFO] [stdout] | __________^ [INFO] [stdout] 194 | | .is_none()); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check [INFO] [stdout] help: replace it with [INFO] [stdout] | [INFO] [stdout] 187 ~ assert!(!client [INFO] [stdout] 188 + .current_info() [INFO] [stdout] 189 + .await [INFO] [stdout] 190 + .unwrap() [INFO] [stdout] 191 + .data [INFO] [stdout] 192 ~ .queues.contains_key(local)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> tests/real/community.rs:255:21 [INFO] [stdout] | [INFO] [stdout] 255 | Err(io::Error::new(io::ErrorKind::Other, "nope")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 255 - Err(io::Error::new(io::ErrorKind::Other, "nope")) [INFO] [stdout] 255 + Err(io::Error::other("nope")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/real/community.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | assert!(!rx.try_recv().is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rx.try_recv().is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/real/community.rs:374:13 [INFO] [stdout] | [INFO] [stdout] 374 | assert!(!rx.try_recv().is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rx.try_recv().is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/real/community.rs:444:13 [INFO] [stdout] | [INFO] [stdout] 444 | assert!(!rx.try_recv().is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rx.try_recv().is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/real/community.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | assert!(!rx.try_recv().is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rx.try_recv().is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: passing a unit value to a function [INFO] [stdout] --> tests/real/community.rs:620:5 [INFO] [stdout] | [INFO] [stdout] 620 | Ok(eprintln!("{:?}", j)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stdout] = note: `#[warn(clippy::unit_arg)]` on by default [INFO] [stdout] help: move the expression in front of the call and replace it with the unit literal `()` [INFO] [stdout] | [INFO] [stdout] 620 ~ eprintln!("{:?}", j); [INFO] [stdout] 621 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/real/community.rs:624:13 [INFO] [stdout] | [INFO] [stdout] 624 | assert!(j.args().len() != 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!j.args().is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: passing a unit value to a function [INFO] [stdout] --> tests/real/community.rs:625:5 [INFO] [stdout] | [INFO] [stdout] 625 | Ok(eprintln!("{:?}", j)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stdout] help: move the expression in front of the call and replace it with the unit literal `()` [INFO] [stdout] | [INFO] [stdout] 625 ~ eprintln!("{:?}", j); [INFO] [stdout] 626 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> tests/real/community.rs:684:6 [INFO] [stdout] | [INFO] [stdout] 684 | ) -> Box< [INFO] [stdout] | ______^ [INFO] [stdout] 685 | | dyn Fn(Job) -> Pin> + Send>> [INFO] [stdout] 686 | | + Send [INFO] [stdout] 687 | | + Sync [INFO] [stdout] 688 | | + 'static, [INFO] [stdout] 689 | | > { [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> tests/real/community.rs:690:5 [INFO] [stdout] | [INFO] [stdout] 690 | / return Box::new(move |j: Job| { [INFO] [stdout] 691 | | let sender = sync::Arc::clone(&sender); [INFO] [stdout] 692 | | Box::pin(async move { [INFO] [stdout] 693 | | let complexity = j.args()[0].as_u64().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 697 | | }) [INFO] [stdout] 698 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 690 ~ Box::new(move |j: Job| { [INFO] [stdout] 691 + let sender = sync::Arc::clone(&sender); [INFO] [stdout] 692 + Box::pin(async move { [INFO] [stdout] 693 + let complexity = j.args()[0].as_u64().unwrap(); [INFO] [stdout] 694 + sender.send(true).await.unwrap(); // inform that we are now starting to process the job [INFO] [stdout] 695 + tokio::time::sleep(tokio::time::Duration::from_millis(complexity)).await; [INFO] [stdout] 696 + Ok::<(), io::Error>(()) [INFO] [stdout] 697 + }) [INFO] [stdout] 698 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> tests/real/community.rs:841:34 [INFO] [stdout] | [INFO] [stdout] 841 | Err::<(), io::Error>(io::Error::new( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 842 | | io::ErrorKind::Other, [INFO] [stdout] 843 | | "error_from_SYNC_handler", [INFO] [stdout] 844 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 841 ~ Err::<(), io::Error>(io::Error::other( [INFO] [stdout] 842 ~ "error_from_SYNC_handler", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> tests/real/community.rs:857:34 [INFO] [stdout] | [INFO] [stdout] 857 | Err::<(), io::Error>(io::Error::new( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 858 | | io::ErrorKind::Other, [INFO] [stdout] 859 | | "error_from_ASYNC_handler", [INFO] [stdout] 860 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 857 ~ Err::<(), io::Error>(io::Error::other( [INFO] [stdout] 858 ~ "error_from_ASYNC_handler", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for copying elements [INFO] [stdout] --> tests/real/community.rs:1098:17 [INFO] [stdout] | [INFO] [stdout] 1098 | let njobs = client [INFO] [stdout] | _________________^ [INFO] [stdout] 1099 | | .current_info() [INFO] [stdout] 1100 | | .await [INFO] [stdout] 1101 | | .unwrap() [INFO] [stdout] ... | [INFO] [stdout] 1104 | | .get(local) [INFO] [stdout] 1105 | | .map(|v| *v) [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] = note: `#[warn(clippy::map_clone)]` on by default [INFO] [stdout] help: consider calling the dedicated `copied` method [INFO] [stdout] | [INFO] [stdout] 1098 ~ let njobs = client [INFO] [stdout] 1099 + .current_info() [INFO] [stdout] 1100 + .await [INFO] [stdout] 1101 + .unwrap() [INFO] [stdout] 1102 + .data [INFO] [stdout] 1103 + .queues [INFO] [stdout] 1104 + .get(local).copied() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for copying elements [INFO] [stdout] --> tests/real/community.rs:1116:17 [INFO] [stdout] | [INFO] [stdout] 1116 | let njobs = client [INFO] [stdout] | _________________^ [INFO] [stdout] 1117 | | .current_info() [INFO] [stdout] 1118 | | .await [INFO] [stdout] 1119 | | .unwrap() [INFO] [stdout] ... | [INFO] [stdout] 1122 | | .get(local) [INFO] [stdout] 1123 | | .map(|v| *v) [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] help: consider calling the dedicated `copied` method [INFO] [stdout] | [INFO] [stdout] 1116 ~ let njobs = client [INFO] [stdout] 1117 + .current_info() [INFO] [stdout] 1118 + .await [INFO] [stdout] 1119 + .unwrap() [INFO] [stdout] 1120 + .data [INFO] [stdout] 1121 + .queues [INFO] [stdout] 1122 + .get(local).copied() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for copying elements [INFO] [stdout] --> tests/real/community.rs:1141:17 [INFO] [stdout] | [INFO] [stdout] 1141 | let njobs = client [INFO] [stdout] | _________________^ [INFO] [stdout] 1142 | | .current_info() [INFO] [stdout] 1143 | | .await [INFO] [stdout] 1144 | | .unwrap() [INFO] [stdout] ... | [INFO] [stdout] 1147 | | .get(local) [INFO] [stdout] 1148 | | .map(|v| *v) [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] help: consider calling the dedicated `copied` method [INFO] [stdout] | [INFO] [stdout] 1141 ~ let njobs = client [INFO] [stdout] 1142 + .current_info() [INFO] [stdout] 1143 + .await [INFO] [stdout] 1144 + .unwrap() [INFO] [stdout] 1145 + .data [INFO] [stdout] 1146 + .queues [INFO] [stdout] 1147 + .get(local).copied() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for copying elements [INFO] [stdout] --> tests/real/community.rs:1174:17 [INFO] [stdout] | [INFO] [stdout] 1174 | let njobs = client [INFO] [stdout] | _________________^ [INFO] [stdout] 1175 | | .current_info() [INFO] [stdout] 1176 | | .await [INFO] [stdout] 1177 | | .unwrap() [INFO] [stdout] ... | [INFO] [stdout] 1180 | | .get(local) [INFO] [stdout] 1181 | | .map(|v| *v) [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] help: consider calling the dedicated `copied` method [INFO] [stdout] | [INFO] [stdout] 1174 ~ let njobs = client [INFO] [stdout] 1175 + .current_info() [INFO] [stdout] 1176 + .await [INFO] [stdout] 1177 + .unwrap() [INFO] [stdout] 1178 + .data [INFO] [stdout] 1179 + .queues [INFO] [stdout] 1180 + .get(local).copied() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `ok` [INFO] [stdout] --> src/proto/single/resp.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | / if let Ok(s) = std::str::from_utf8(b) { [INFO] [stdout] 16 | | Some(s) [INFO] [stdout] 17 | | } else { [INFO] [stdout] 18 | | None [INFO] [stdout] 19 | | } [INFO] [stdout] | |_____________^ help: replace with: `std::str::from_utf8(b).ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_err [INFO] [stdout] = note: `#[warn(clippy::manual_ok_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: items after a test module [INFO] [stdout] --> src/proto/single/utils.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub(crate) trait Empty { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | impl Empty for &[T] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | / impl Empty for Option [INFO] [stdout] 167 | | where [INFO] [stdout] 168 | | T: Empty, [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_test_module [INFO] [stdout] = note: `#[warn(clippy::items_after_test_module)]` on by default [INFO] [stdout] = help: move the items to before the test module was defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/proto/single/mod.rs:329:30 [INFO] [stdout] | [INFO] [stdout] 329 | assert!(job.queue == JOB_DEFAULT_QUEUE.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `JOB_DEFAULT_QUEUE` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] = note: `#[warn(clippy::cmp_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/worker/runner.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a, E, F, Fut> JobRunner for &'a F [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 73 - impl<'a, E, F, Fut> JobRunner for &'a F [INFO] [stdout] 73 + impl JobRunner for &F [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/worker/runner.rs:85:6 [INFO] [stdout] | [INFO] [stdout] 85 | impl<'a, E, F, Fut> JobRunner for &'a mut F [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 85 - impl<'a, E, F, Fut> JobRunner for &'a mut F [INFO] [stdout] 85 + impl JobRunner for &mut F [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 50.90s [INFO] running `Command { std: "docker" "inspect" "eda5d8a7b1652a470e28aa05f0a052a5e469f161de26e6db4278450b2b2b10df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eda5d8a7b1652a470e28aa05f0a052a5e469f161de26e6db4278450b2b2b10df", kill_on_drop: false }` [INFO] [stdout] eda5d8a7b1652a470e28aa05f0a052a5e469f161de26e6db4278450b2b2b10df