[INFO] fetching crate kuma-client 2.0.0... [INFO] linting kuma-client-2.0.0 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate kuma-client 2.0.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate kuma-client 2.0.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate kuma-client 2.0.0 [INFO] tweaked toml for crates.io crate kuma-client 2.0.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate kuma-client 2.0.0 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 kuma-client 2.0.0 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded is_debug v1.1.0 [INFO] [stderr] Downloaded serde_with_macros v3.15.1 [INFO] [stderr] Downloaded tzdb v0.7.2 [INFO] [stderr] Downloaded tz-rs v0.7.1 [INFO] [stderr] Downloaded serde_alias v0.0.2 [INFO] [stderr] Downloaded const-str-proc-macro v0.7.0 [INFO] [stderr] Downloaded shadow-rs v1.4.0 [INFO] [stderr] Downloaded totp-rs v5.7.0 [INFO] [stderr] Downloaded const-str v0.7.0 [INFO] [stderr] Downloaded rust_socketio v0.6.0 [INFO] [stderr] Downloaded dateparser v0.2.1 [INFO] [stderr] Downloaded serde_with v3.15.1 [INFO] [stderr] Downloaded rust_engineio v0.6.0 [INFO] [stderr] Downloaded serde-inline-default v1.0.0 [INFO] [stderr] Downloaded serde_merge v0.1.3 [INFO] [stderr] Downloaded tzdb_data v0.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 465e6d7c17854ccdf3551c1550638b98d73d23daad620d0f495781a01cb1bb4a [INFO] running `Command { std: "docker" "start" "-a" "465e6d7c17854ccdf3551c1550638b98d73d23daad620d0f495781a01cb1bb4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "465e6d7c17854ccdf3551c1550638b98d73d23daad620d0f495781a01cb1bb4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "465e6d7c17854ccdf3551c1550638b98d73d23daad620d0f495781a01cb1bb4a", kill_on_drop: false }` [INFO] [stdout] 465e6d7c17854ccdf3551c1550638b98d73d23daad620d0f495781a01cb1bb4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] f6034a88e8cbe18280f9b22b409786dd693340ceac925d094a431b294f85ccd4 [INFO] running `Command { std: "docker" "start" "-a" "f6034a88e8cbe18280f9b22b409786dd693340ceac925d094a431b294f85ccd4", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling openssl v0.10.74 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling pest v2.8.3 [INFO] [stderr] Compiling tz-rs v0.7.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling erased-serde v0.4.8 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Checking rustls-pki-types v1.13.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling is_debug v1.1.0 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling tzdb_data v0.2.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling const_format v0.2.35 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking serde_spanned v1.0.3 [INFO] [stderr] Checking toml_datetime v0.7.3 [INFO] [stderr] Compiling cc v1.2.43 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking toml v0.9.8 [INFO] [stderr] Checking backoff v0.4.0 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking serde-untagged v0.1.9 [INFO] [stderr] Checking yaml-rust2 v0.10.4 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Compiling pest_meta v2.8.3 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking base32 v0.5.1 [INFO] [stderr] Checking rust-ini v0.21.3 [INFO] [stderr] Compiling openssl-sys v0.9.110 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Compiling libgit2-sys v0.18.2+1.9.1 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking dateparser v0.2.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tzdb v0.7.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling pest_generator v2.8.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling serde_alias v0.0.2 [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 displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Compiling pest_derive v2.8.3 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling const-str-proc-macro v0.7.0 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling serde-inline-default v1.0.0 [INFO] [stderr] Checking const-str v0.7.0 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling serde_with_macros v3.15.1 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking serde_merge v0.1.3 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking config v0.15.18 [INFO] [stderr] Checking serde_with v3.15.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking git2 v0.20.2 [INFO] [stderr] Checking totp-rs v5.7.0 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking shadow-rs v1.4.0 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Compiling kuma-client v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> build.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | let props: &[(&str, Box String>)] = &[ [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] [stderr] Checking rust_engineio v0.6.0 [INFO] [stderr] Checking rust_socketio v0.6.0 [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/client.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | custom_cert: custom_cert, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `custom_cert` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/models/maintenance.rs:241:24 [INFO] [stdout] | [INFO] [stdout] 241 | const FIELDS: &'static [&'static str] = &["timezone", "timezoneOption", "timezoneOffset"]; [INFO] [stdout] | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/models/maintenance.rs:241:34 [INFO] [stdout] | [INFO] [stdout] 241 | const FIELDS: &'static [&'static str] = &["timezone", "timezoneOption", "timezoneOffset"]; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 590 | / monitor_type! { [INFO] [stdout] 591 | | MonitorGroup Group { [INFO] [stdout] ... | [INFO] [stdout] 594 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 596 | / monitor_type! { [INFO] [stdout] 597 | | MonitorSqlServer SqlServer { [INFO] [stdout] 598 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 599 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 606 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 608 | / monitor_type! { [INFO] [stdout] 609 | | MonitorPostgres Postgres { [INFO] [stdout] 610 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 611 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 618 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 620 | / monitor_type! { [INFO] [stdout] 621 | | MonitorMongoDB Mongodb { [INFO] [stdout] 622 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 623 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 641 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 643 | / monitor_type! { [INFO] [stdout] 644 | | MonitorMysql Mysql { [INFO] [stdout] 645 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 646 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 657 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 659 | / monitor_type! { [INFO] [stdout] 660 | | MonitorRedis Redis { [INFO] [stdout] 661 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 662 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 671 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 673 | / monitor_type! { [INFO] [stdout] 674 | | MonitorDns Dns { [INFO] [stdout] 675 | | #[serde(rename = "hostname")] [INFO] [stdout] 676 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 690 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/client.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | custom_cert: custom_cert, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `custom_cert` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 692 | / monitor_type! { [INFO] [stdout] 693 | | MonitorDocker Docker { [INFO] [stdout] 694 | | #[serde(rename = "docker_container")] [INFO] [stdout] 695 | | pub docker_container: Option, [INFO] [stdout] ... | [INFO] [stdout] 707 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 709 | / monitor_type! { [INFO] [stdout] 710 | | MonitorGameDig GameDig { [INFO] [stdout] 711 | | #[serde(rename = "game")] [INFO] [stdout] 712 | | pub game: Option, [INFO] [stdout] ... | [INFO] [stdout] 726 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 728 | / monitor_type! { [INFO] [stdout] 729 | | MonitorGrpcKeyword GrpcKeyword { [INFO] [stdout] 730 | | #[serde(rename = "keyword")] [INFO] [stdout] 731 | | pub keyword: Option, [INFO] [stdout] ... | [INFO] [stdout] 777 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 779 | / monitor_type! { [INFO] [stdout] 780 | | MonitorHttp Http { [INFO] [stdout] 781 | | #[serde(rename = "url")] [INFO] [stdout] 782 | | pub url: Option, [INFO] [stdout] ... | [INFO] [stdout] 837 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/models/maintenance.rs:241:24 [INFO] [stdout] | [INFO] [stdout] 241 | const FIELDS: &'static [&'static str] = &["timezone", "timezoneOption", "timezoneOffset"]; [INFO] [stdout] | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/models/maintenance.rs:241:34 [INFO] [stdout] | [INFO] [stdout] 241 | const FIELDS: &'static [&'static str] = &["timezone", "timezoneOption", "timezoneOffset"]; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 839 | / monitor_type! { [INFO] [stdout] 840 | | MonitorJsonQuery JsonQuery { [INFO] [stdout] 841 | | #[serde(rename = "jsonPath")] [INFO] [stdout] 842 | | #[serde(alias = "json_path")] [INFO] [stdout] ... | [INFO] [stdout] 909 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 911 | / monitor_type! { [INFO] [stdout] 912 | | MonitorKafkaProducer KafkaProducer { [INFO] [stdout] 913 | | #[serde(rename = "kafkaProducerBrokers")] [INFO] [stdout] 914 | | #[serde(alias = "kafka_producer_brokers")] [INFO] [stdout] ... | [INFO] [stdout] 940 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 942 | / monitor_type! { [INFO] [stdout] 943 | | MonitorKeyword Keyword { [INFO] [stdout] 944 | | #[serde(rename = "keyword")] [INFO] [stdout] 945 | | pub keyword: Option, [INFO] [stdout] ... | [INFO] [stdout] 1001 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1003 | / monitor_type! { [INFO] [stdout] 1004 | | MonitorMqtt Mqtt { [INFO] [stdout] 1005 | | #[serde(rename = "hostname")] [INFO] [stdout] 1006 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1046 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1048 | / monitor_type! { [INFO] [stdout] 1049 | | MonitorPing Ping { [INFO] [stdout] 1050 | | #[serde(rename = "hostname")] [INFO] [stdout] 1051 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1059 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1061 | / monitor_type! { [INFO] [stdout] 1062 | | MonitorPort Port { [INFO] [stdout] 1063 | | #[serde(rename = "hostname")] [INFO] [stdout] 1064 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1070 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1072 | / monitor_type! { [INFO] [stdout] 1073 | | MonitorPush Push { [INFO] [stdout] 1074 | | #[serde(rename = "pushToken")] [INFO] [stdout] 1075 | | #[serde(alias = "push_token")] [INFO] [stdout] ... | [INFO] [stdout] 1078 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 590 | / monitor_type! { [INFO] [stdout] 591 | | MonitorGroup Group { [INFO] [stdout] ... | [INFO] [stdout] 594 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 596 | / monitor_type! { [INFO] [stdout] 597 | | MonitorSqlServer SqlServer { [INFO] [stdout] 598 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 599 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 606 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1080 | / monitor_type! { [INFO] [stdout] 1081 | | MonitorRadius Radius { [INFO] [stdout] 1082 | | #[serde(rename = "hostname")] [INFO] [stdout] 1083 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1111 | / monitor_type! { [INFO] [stdout] 1112 | | MonitorRealBrowser RealBrowser { [INFO] [stdout] 1113 | | #[serde(rename = "url")] [INFO] [stdout] 1114 | | pub url: Option, [INFO] [stdout] ... | [INFO] [stdout] 1124 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 608 | / monitor_type! { [INFO] [stdout] 609 | | MonitorPostgres Postgres { [INFO] [stdout] 610 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 611 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 618 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1126 | / monitor_type! { [INFO] [stdout] 1127 | | MonitorSteam Steam { [INFO] [stdout] 1128 | | #[serde(rename = "hostname")] [INFO] [stdout] 1129 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1135 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 620 | / monitor_type! { [INFO] [stdout] 621 | | MonitorMongoDB Mongodb { [INFO] [stdout] 622 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 623 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 641 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1137 | / monitor_type! { [INFO] [stdout] 1138 | | MonitorTailscalePing TailscalePing { [INFO] [stdout] 1139 | | #[serde(rename = "hostname")] [INFO] [stdout] 1140 | | hostname: Option, [INFO] [stdout] 1141 | | } [INFO] [stdout] 1142 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 643 | / monitor_type! { [INFO] [stdout] 644 | | MonitorMysql Mysql { [INFO] [stdout] 645 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 646 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 657 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1145 | / monitor_type! { [INFO] [stdout] 1146 | | MonitorSNMP SNMP { [INFO] [stdout] 1147 | | #[serde(rename = "hostname")] [INFO] [stdout] 1148 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1179 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 659 | / monitor_type! { [INFO] [stdout] 660 | | MonitorRedis Redis { [INFO] [stdout] 661 | | #[serde(rename = "databaseConnectionString")] [INFO] [stdout] 662 | | #[serde(alias = "database_connection_string")] [INFO] [stdout] ... | [INFO] [stdout] 671 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1182 | / monitor_type! { [INFO] [stdout] 1183 | | MonitorRabbitMQ RabbitMQ { [INFO] [stdout] 1184 | | #[serde(rename = "rabbitmqNodes")] [INFO] [stdout] 1185 | | #[serde_as(as = "DeserializeVecLenient")] [INFO] [stdout] ... | [INFO] [stdout] 1197 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 673 | / monitor_type! { [INFO] [stdout] 674 | | MonitorDns Dns { [INFO] [stdout] 675 | | #[serde(rename = "hostname")] [INFO] [stdout] 676 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 690 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 692 | / monitor_type! { [INFO] [stdout] 693 | | MonitorDocker Docker { [INFO] [stdout] 694 | | #[serde(rename = "docker_container")] [INFO] [stdout] 695 | | pub docker_container: Option, [INFO] [stdout] ... | [INFO] [stdout] 707 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 709 | / monitor_type! { [INFO] [stdout] 710 | | MonitorGameDig GameDig { [INFO] [stdout] 711 | | #[serde(rename = "game")] [INFO] [stdout] 712 | | pub game: Option, [INFO] [stdout] ... | [INFO] [stdout] 726 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 728 | / monitor_type! { [INFO] [stdout] 729 | | MonitorGrpcKeyword GrpcKeyword { [INFO] [stdout] 730 | | #[serde(rename = "keyword")] [INFO] [stdout] 731 | | pub keyword: Option, [INFO] [stdout] ... | [INFO] [stdout] 777 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 779 | / monitor_type! { [INFO] [stdout] 780 | | MonitorHttp Http { [INFO] [stdout] 781 | | #[serde(rename = "url")] [INFO] [stdout] 782 | | pub url: Option, [INFO] [stdout] ... | [INFO] [stdout] 837 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 839 | / monitor_type! { [INFO] [stdout] 840 | | MonitorJsonQuery JsonQuery { [INFO] [stdout] 841 | | #[serde(rename = "jsonPath")] [INFO] [stdout] 842 | | #[serde(alias = "json_path")] [INFO] [stdout] ... | [INFO] [stdout] 909 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 911 | / monitor_type! { [INFO] [stdout] 912 | | MonitorKafkaProducer KafkaProducer { [INFO] [stdout] 913 | | #[serde(rename = "kafkaProducerBrokers")] [INFO] [stdout] 914 | | #[serde(alias = "kafka_producer_brokers")] [INFO] [stdout] ... | [INFO] [stdout] 940 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 942 | / monitor_type! { [INFO] [stdout] 943 | | MonitorKeyword Keyword { [INFO] [stdout] 944 | | #[serde(rename = "keyword")] [INFO] [stdout] 945 | | pub keyword: Option, [INFO] [stdout] ... | [INFO] [stdout] 1001 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1003 | / monitor_type! { [INFO] [stdout] 1004 | | MonitorMqtt Mqtt { [INFO] [stdout] 1005 | | #[serde(rename = "hostname")] [INFO] [stdout] 1006 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1046 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1048 | / monitor_type! { [INFO] [stdout] 1049 | | MonitorPing Ping { [INFO] [stdout] 1050 | | #[serde(rename = "hostname")] [INFO] [stdout] 1051 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1059 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1061 | / monitor_type! { [INFO] [stdout] 1062 | | MonitorPort Port { [INFO] [stdout] 1063 | | #[serde(rename = "hostname")] [INFO] [stdout] 1064 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1070 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1072 | / monitor_type! { [INFO] [stdout] 1073 | | MonitorPush Push { [INFO] [stdout] 1074 | | #[serde(rename = "pushToken")] [INFO] [stdout] 1075 | | #[serde(alias = "push_token")] [INFO] [stdout] ... | [INFO] [stdout] 1078 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1080 | / monitor_type! { [INFO] [stdout] 1081 | | MonitorRadius Radius { [INFO] [stdout] 1082 | | #[serde(rename = "hostname")] [INFO] [stdout] 1083 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1111 | / monitor_type! { [INFO] [stdout] 1112 | | MonitorRealBrowser RealBrowser { [INFO] [stdout] 1113 | | #[serde(rename = "url")] [INFO] [stdout] 1114 | | pub url: Option, [INFO] [stdout] ... | [INFO] [stdout] 1124 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1126 | / monitor_type! { [INFO] [stdout] 1127 | | MonitorSteam Steam { [INFO] [stdout] 1128 | | #[serde(rename = "hostname")] [INFO] [stdout] 1129 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1135 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1137 | / monitor_type! { [INFO] [stdout] 1138 | | MonitorTailscalePing TailscalePing { [INFO] [stdout] 1139 | | #[serde(rename = "hostname")] [INFO] [stdout] 1140 | | hostname: Option, [INFO] [stdout] 1141 | | } [INFO] [stdout] 1142 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1145 | / monitor_type! { [INFO] [stdout] 1146 | | MonitorSNMP SNMP { [INFO] [stdout] 1147 | | #[serde(rename = "hostname")] [INFO] [stdout] 1148 | | pub hostname: Option, [INFO] [stdout] ... | [INFO] [stdout] 1179 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/models/monitor.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | Monitor::$type { value: value } [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] ... [INFO] [stdout] 1182 | / monitor_type! { [INFO] [stdout] 1183 | | MonitorRabbitMQ RabbitMQ { [INFO] [stdout] 1184 | | #[serde(rename = "rabbitmqNodes")] [INFO] [stdout] 1185 | | #[serde_as(as = "DeserializeVecLenient")] [INFO] [stdout] ... | [INFO] [stdout] 1197 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: this warning originates in the macro `monitor_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/deserialize.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | / return match value { [INFO] [stdout] 118 | | Value::Array(_) => { [INFO] [stdout] 119 | | Vec::::deserialize(value.into_deserializer()).map_err(serde::de::Error::custom) [INFO] [stdout] ... | [INFO] [stdout] 124 | | )), [INFO] [stdout] 125 | | }; [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] 117 ~ match value { [INFO] [stdout] 118 + Value::Array(_) => { [INFO] [stdout] 119 + Vec::::deserialize(value.into_deserializer()).map_err(serde::de::Error::custom) [INFO] [stdout] 120 + } [INFO] [stdout] 121 + Value::String(s) => serde_json::from_str(&s).map_err(serde::de::Error::custom), [INFO] [stdout] 122 + _ => Err(serde::de::Error::custom( [INFO] [stdout] 123 + "Unexpected type for deserialization", [INFO] [stdout] 124 + )), [INFO] [stdout] 125 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/deserialize.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | / return match value { [INFO] [stdout] 157 | | Value::Object(_) => HashMap::::deserialize(value.into_deserializer()) [INFO] [stdout] 158 | | .map_err(serde::de::Error::custom), [INFO] [stdout] 159 | | Value::String(s) => serde_json::from_str(&s).map_err(serde::de::Error::custom), [INFO] [stdout] ... | [INFO] [stdout] 162 | | )), [INFO] [stdout] 163 | | }; [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 156 ~ match value { [INFO] [stdout] 157 + Value::Object(_) => HashMap::::deserialize(value.into_deserializer()) [INFO] [stdout] 158 + .map_err(serde::de::Error::custom), [INFO] [stdout] 159 + Value::String(s) => serde_json::from_str(&s).map_err(serde::de::Error::custom), [INFO] [stdout] 160 + _ => Err(serde::de::Error::custom( [INFO] [stdout] 161 + "Unexpected type for deserialization", [INFO] [stdout] 162 + )), [INFO] [stdout] 163 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> src/client.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | let error_msg = json [INFO] [stdout] | _____________________________^ [INFO] [stdout] 330 | | .pointer("/0/0/msg") [INFO] [stdout] 331 | | .unwrap_or_else(|| &json!(null)) [INFO] [stdout] 332 | | .as_str() [INFO] [stdout] 333 | | .unwrap_or_else(|| "Unknown error"); [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default [INFO] [stdout] help: use `unwrap_or` instead [INFO] [stdout] | [INFO] [stdout] 333 - .unwrap_or_else(|| "Unknown error"); [INFO] [stdout] 333 + .unwrap_or("Unknown error"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> src/client.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | let error_msg = json [INFO] [stdout] | _____________________________^ [INFO] [stdout] 330 | | .pointer("/0/0/msg") [INFO] [stdout] 331 | | .unwrap_or_else(|| &json!(null)) [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] help: use `unwrap_or` instead [INFO] [stdout] | [INFO] [stdout] 331 - .unwrap_or_else(|| &json!(null)) [INFO] [stdout] 331 + .unwrap_or(&json!(null)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/client.rs:634:31 [INFO] [stdout] | [INFO] [stdout] 634 | .filter_map(|tag| tag.tag_id.and_then(|id| Some((id, tag)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `tag.tag_id.map(|id| (id, tag))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] = note: `#[warn(clippy::bind_instead_of_map)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/client.rs:642:35 [INFO] [stdout] | [INFO] [stdout] 642 | .filter_map(|tag| tag.tag_id.and_then(|id| Some((id, tag)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `tag.tag_id.map(|id| (id, tag))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's keys [INFO] [stdout] --> src/client.rs:728:41 [INFO] [stdout] | [INFO] [stdout] 728 | for (notification_id, _) in referenced_notifications { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `#[warn(clippy::for_kv_map)]` on by default [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 728 - for (notification_id, _) in referenced_notifications { [INFO] [stdout] 728 + for notification_id in referenced_notifications.keys() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: matching on `Some` with `ok()` is redundant [INFO] [stdout] --> src/client.rs:729:17 [INFO] [stdout] | [INFO] [stdout] 729 | if let Some(id) = notification_id.parse::().ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok [INFO] [stdout] = note: `#[warn(clippy::match_result_ok)]` on by default [INFO] [stdout] help: consider matching on `Ok(id)` and removing the call to `ok` instead [INFO] [stdout] | [INFO] [stdout] 729 - if let Some(id) = notification_id.parse::().ok() { [INFO] [stdout] 729 + if let Ok(id) = notification_id.parse::() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `i32` which implements the `Copy` trait [INFO] [stdout] --> src/client.rs:837:39 [INFO] [stdout] | [INFO] [stdout] 837 | vec![serde_json::to_value(monitor_id.clone()).unwrap()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `monitor_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `i32` which implements the `Copy` trait [INFO] [stdout] --> src/client.rs:1015:43 [INFO] [stdout] | [INFO] [stdout] 1015 | vec![serde_json::to_value(maintenance_id.clone()).unwrap()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `maintenance_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/client.rs:1106:9 [INFO] [stdout] | [INFO] [stdout] 1106 | / Ok(serde_json::from_value(monitor_list) [INFO] [stdout] 1107 | | .log_warn(std::module_path!(), |e| e.to_string()) [INFO] [stdout] 1108 | | .map_err(|_| Error::UnsupportedResponse)?) [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `#[warn(clippy::needless_question_mark)]` on by default [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 1106 ~ serde_json::from_value(monitor_list) [INFO] [stdout] 1107 | .log_warn(std::module_path!(), |e| e.to_string()) [INFO] [stdout] 1108 ~ .map_err(|_| Error::UnsupportedResponse) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/client.rs:1199:42 [INFO] [stdout] | [INFO] [stdout] 1199 | serde_json::to_value(docker_host.id.clone()).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `docker_host.id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/client.rs:1296:37 [INFO] [stdout] | [INFO] [stdout] 1296 | / ... ¶ms[0] [INFO] [stdout] 1297 | | ... .as_str() [INFO] [stdout] 1298 | | ... .log_warn(std::module_path!(), || { [INFO] [stdout] 1299 | | ... "Error while deserializing Event..." [INFO] [stdout] 1300 | | ... }) [INFO] [stdout] 1301 | | ... .unwrap_or(""), [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1296 ~ params[0] [INFO] [stdout] 1297 + .as_str() [INFO] [stdout] 1298 + .log_warn(std::module_path!(), || { [INFO] [stdout] 1299 + "Error while deserializing Event..." [INFO] [stdout] 1300 + }) [INFO] [stdout] 1301 ~ .unwrap_or(""), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/client.rs:1309:54 [INFO] [stdout] | [INFO] [stdout] 1309 | ... e.to_string() [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/client.rs:1326:56 [INFO] [stdout] | [INFO] [stdout] 1326 | ... err.to_string() [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/client.rs:1378:13 [INFO] [stdout] | [INFO] [stdout] 1378 | / return match result { [INFO] [stdout] 1379 | | Ok(_) => Ok(()), [INFO] [stdout] 1380 | | Err(e) if e.is_cancelled() => Ok(()), [INFO] [stdout] 1381 | | Err(e) => Err(Error::CommunicationError(format!( [INFO] [stdout] ... | [INFO] [stdout] 1384 | | ))), [INFO] [stdout] 1385 | | }; [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 1378 ~ match result { [INFO] [stdout] 1379 + Ok(_) => Ok(()), [INFO] [stdout] 1380 + Err(e) if e.is_cancelled() => Ok(()), [INFO] [stdout] 1381 + Err(e) => Err(Error::CommunicationError(format!( [INFO] [stdout] 1382 + "Error while disconnecting: {}", [INFO] [stdout] 1383 + e.to_string() [INFO] [stdout] 1384 + ))), [INFO] [stdout] 1385 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/client.rs:1383:22 [INFO] [stdout] | [INFO] [stdout] 1383 | e.to_string() [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> /opt/rustwide/target/debug/build/kuma-client-4016f6e70af60102/out/timezones.rs:2142:3 [INFO] [stdout] | [INFO] [stdout] 2142 | / pub fn from_str(identifier: impl AsRef) -> Option { [INFO] [stdout] 2143 | | match identifier.as_ref() { [INFO] [stdout] 2144 | | r#"Pacific/Midway"# => Some(TimeZone::Pacific_Midway), [INFO] [stdout] 2145 | | r#"Pacific/Niue"# => Some(TimeZone::Pacific_Niue), [INFO] [stdout] ... | [INFO] [stdout] 2570 | | } [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] = note: `#[warn(clippy::should_implement_trait)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/deserialize.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | / return match value { [INFO] [stdout] 118 | | Value::Array(_) => { [INFO] [stdout] 119 | | Vec::::deserialize(value.into_deserializer()).map_err(serde::de::Error::custom) [INFO] [stdout] ... | [INFO] [stdout] 124 | | )), [INFO] [stdout] 125 | | }; [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] 117 ~ match value { [INFO] [stdout] 118 + Value::Array(_) => { [INFO] [stdout] 119 + Vec::::deserialize(value.into_deserializer()).map_err(serde::de::Error::custom) [INFO] [stdout] 120 + } [INFO] [stdout] 121 + Value::String(s) => serde_json::from_str(&s).map_err(serde::de::Error::custom), [INFO] [stdout] 122 + _ => Err(serde::de::Error::custom( [INFO] [stdout] 123 + "Unexpected type for deserialization", [INFO] [stdout] 124 + )), [INFO] [stdout] 125 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/deserialize.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | / return match value { [INFO] [stdout] 157 | | Value::Object(_) => HashMap::::deserialize(value.into_deserializer()) [INFO] [stdout] 158 | | .map_err(serde::de::Error::custom), [INFO] [stdout] 159 | | Value::String(s) => serde_json::from_str(&s).map_err(serde::de::Error::custom), [INFO] [stdout] ... | [INFO] [stdout] 162 | | )), [INFO] [stdout] 163 | | }; [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 156 ~ match value { [INFO] [stdout] 157 + Value::Object(_) => HashMap::::deserialize(value.into_deserializer()) [INFO] [stdout] 158 + .map_err(serde::de::Error::custom), [INFO] [stdout] 159 + Value::String(s) => serde_json::from_str(&s).map_err(serde::de::Error::custom), [INFO] [stdout] 160 + _ => Err(serde::de::Error::custom( [INFO] [stdout] 161 + "Unexpected type for deserialization", [INFO] [stdout] 162 + )), [INFO] [stdout] 163 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same prefix: `TimeZone` [INFO] [stdout] --> src/models/maintenance.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | / enum Field { [INFO] [stdout] 145 | | TimeZone, [INFO] [stdout] 146 | | TimeZoneOption, [INFO] [stdout] 147 | | TimeZoneOffset, [INFO] [stdout] 148 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: remove the prefixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> src/client.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | let error_msg = json [INFO] [stdout] | _____________________________^ [INFO] [stdout] 330 | | .pointer("/0/0/msg") [INFO] [stdout] 331 | | .unwrap_or_else(|| &json!(null)) [INFO] [stdout] 332 | | .as_str() [INFO] [stdout] 333 | | .unwrap_or_else(|| "Unknown error"); [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default [INFO] [stdout] help: use `unwrap_or` instead [INFO] [stdout] | [INFO] [stdout] 333 - .unwrap_or_else(|| "Unknown error"); [INFO] [stdout] 333 + .unwrap_or("Unknown error"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> src/client.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | let error_msg = json [INFO] [stdout] | _____________________________^ [INFO] [stdout] 330 | | .pointer("/0/0/msg") [INFO] [stdout] 331 | | .unwrap_or_else(|| &json!(null)) [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] help: use `unwrap_or` instead [INFO] [stdout] | [INFO] [stdout] 331 - .unwrap_or_else(|| &json!(null)) [INFO] [stdout] 331 + .unwrap_or(&json!(null)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/client.rs:634:31 [INFO] [stdout] | [INFO] [stdout] 634 | .filter_map(|tag| tag.tag_id.and_then(|id| Some((id, tag)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `tag.tag_id.map(|id| (id, tag))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] = note: `#[warn(clippy::bind_instead_of_map)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/client.rs:642:35 [INFO] [stdout] | [INFO] [stdout] 642 | .filter_map(|tag| tag.tag_id.and_then(|id| Some((id, tag)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `tag.tag_id.map(|id| (id, tag))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's keys [INFO] [stdout] --> src/client.rs:728:41 [INFO] [stdout] | [INFO] [stdout] 728 | for (notification_id, _) in referenced_notifications { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `#[warn(clippy::for_kv_map)]` on by default [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 728 - for (notification_id, _) in referenced_notifications { [INFO] [stdout] 728 + for notification_id in referenced_notifications.keys() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: matching on `Some` with `ok()` is redundant [INFO] [stdout] --> src/client.rs:729:17 [INFO] [stdout] | [INFO] [stdout] 729 | if let Some(id) = notification_id.parse::().ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok [INFO] [stdout] = note: `#[warn(clippy::match_result_ok)]` on by default [INFO] [stdout] help: consider matching on `Ok(id)` and removing the call to `ok` instead [INFO] [stdout] | [INFO] [stdout] 729 - if let Some(id) = notification_id.parse::().ok() { [INFO] [stdout] 729 + if let Ok(id) = notification_id.parse::() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `i32` which implements the `Copy` trait [INFO] [stdout] --> src/client.rs:837:39 [INFO] [stdout] | [INFO] [stdout] 837 | vec![serde_json::to_value(monitor_id.clone()).unwrap()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `monitor_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `i32` which implements the `Copy` trait [INFO] [stdout] --> src/client.rs:1015:43 [INFO] [stdout] | [INFO] [stdout] 1015 | vec![serde_json::to_value(maintenance_id.clone()).unwrap()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `maintenance_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/client.rs:1106:9 [INFO] [stdout] | [INFO] [stdout] 1106 | / Ok(serde_json::from_value(monitor_list) [INFO] [stdout] 1107 | | .log_warn(std::module_path!(), |e| e.to_string()) [INFO] [stdout] 1108 | | .map_err(|_| Error::UnsupportedResponse)?) [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `#[warn(clippy::needless_question_mark)]` on by default [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 1106 ~ serde_json::from_value(monitor_list) [INFO] [stdout] 1107 | .log_warn(std::module_path!(), |e| e.to_string()) [INFO] [stdout] 1108 ~ .map_err(|_| Error::UnsupportedResponse) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/client.rs:1199:42 [INFO] [stdout] | [INFO] [stdout] 1199 | serde_json::to_value(docker_host.id.clone()).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `docker_host.id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/client.rs:1296:37 [INFO] [stdout] | [INFO] [stdout] 1296 | / ... ¶ms[0] [INFO] [stdout] 1297 | | ... .as_str() [INFO] [stdout] 1298 | | ... .log_warn(std::module_path!(), || { [INFO] [stdout] 1299 | | ... "Error while deserializing Event..." [INFO] [stdout] 1300 | | ... }) [INFO] [stdout] 1301 | | ... .unwrap_or(""), [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 1296 ~ params[0] [INFO] [stdout] 1297 + .as_str() [INFO] [stdout] 1298 + .log_warn(std::module_path!(), || { [INFO] [stdout] 1299 + "Error while deserializing Event..." [INFO] [stdout] 1300 + }) [INFO] [stdout] 1301 ~ .unwrap_or(""), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/client.rs:1309:54 [INFO] [stdout] | [INFO] [stdout] 1309 | ... e.to_string() [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/client.rs:1326:56 [INFO] [stdout] | [INFO] [stdout] 1326 | ... err.to_string() [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/client.rs:1378:13 [INFO] [stdout] | [INFO] [stdout] 1378 | / return match result { [INFO] [stdout] 1379 | | Ok(_) => Ok(()), [INFO] [stdout] 1380 | | Err(e) if e.is_cancelled() => Ok(()), [INFO] [stdout] 1381 | | Err(e) => Err(Error::CommunicationError(format!( [INFO] [stdout] ... | [INFO] [stdout] 1384 | | ))), [INFO] [stdout] 1385 | | }; [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 1378 ~ match result { [INFO] [stdout] 1379 + Ok(_) => Ok(()), [INFO] [stdout] 1380 + Err(e) if e.is_cancelled() => Ok(()), [INFO] [stdout] 1381 + Err(e) => Err(Error::CommunicationError(format!( [INFO] [stdout] 1382 + "Error while disconnecting: {}", [INFO] [stdout] 1383 + e.to_string() [INFO] [stdout] 1384 + ))), [INFO] [stdout] 1385 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/client.rs:1383:22 [INFO] [stdout] | [INFO] [stdout] 1383 | e.to_string() [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/models/monitor.rs:379:20 [INFO] [stdout] | [INFO] [stdout] 379 | fn compare_tags(a: &Vec, b: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 379 - fn compare_tags(a: &Vec, b: &Vec) -> bool { [INFO] [stdout] 379 + fn compare_tags(a: &[Tag], b: &Vec) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/models/monitor.rs:379:34 [INFO] [stdout] | [INFO] [stdout] 379 | fn compare_tags(a: &Vec, b: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 379 - fn compare_tags(a: &Vec, b: &Vec) -> bool { [INFO] [stdout] 379 + fn compare_tags(a: &Vec, b: &[Tag]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> /opt/rustwide/target/debug/build/kuma-client-4016f6e70af60102/out/timezones.rs:2142:3 [INFO] [stdout] | [INFO] [stdout] 2142 | / pub fn from_str(identifier: impl AsRef) -> Option { [INFO] [stdout] 2143 | | match identifier.as_ref() { [INFO] [stdout] 2144 | | r#"Pacific/Midway"# => Some(TimeZone::Pacific_Midway), [INFO] [stdout] 2145 | | r#"Pacific/Niue"# => Some(TimeZone::Pacific_Niue), [INFO] [stdout] ... | [INFO] [stdout] 2570 | | } [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] = note: `#[warn(clippy::should_implement_trait)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same prefix: `TimeZone` [INFO] [stdout] --> src/models/maintenance.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | / enum Field { [INFO] [stdout] 145 | | TimeZone, [INFO] [stdout] 146 | | TimeZoneOption, [INFO] [stdout] 147 | | TimeZoneOffset, [INFO] [stdout] 148 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: remove the prefixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/models/monitor.rs:379:20 [INFO] [stdout] | [INFO] [stdout] 379 | fn compare_tags(a: &Vec, b: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 379 - fn compare_tags(a: &Vec, b: &Vec) -> bool { [INFO] [stdout] 379 + fn compare_tags(a: &[Tag], b: &Vec) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/models/monitor.rs:379:34 [INFO] [stdout] | [INFO] [stdout] 379 | fn compare_tags(a: &Vec, b: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 379 - fn compare_tags(a: &Vec, b: &Vec) -> bool { [INFO] [stdout] 379 + fn compare_tags(a: &Vec, b: &[Tag]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/models/monitor.rs:1451:36 [INFO] [stdout] | [INFO] [stdout] 1451 | if !regex.is_match(&push_token) { [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `push_token` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/models/notification.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | .all(|(k, v)| map_b.get(k).map_or(false, |v_b| v == v_b)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use a standard comparison instead [INFO] [stdout] | [INFO] [stdout] 71 - .all(|(k, v)| map_b.get(k).map_or(false, |v_b| v == v_b)) [INFO] [stdout] 71 + .all(|(k, v)| map_b.get(k) == Some(v)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | / return self.map_err(|e| { [INFO] [stdout] 19 | | trace!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 20 | | e [INFO] [stdout] 21 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 18 ~ self.map_err(|e| { [INFO] [stdout] 19 + trace!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 20 + e [INFO] [stdout] 21 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] = note: `#[warn(clippy::manual_inspect)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 18 ~ return self.inspect_err(|e| { [INFO] [stdout] 19 ~ trace!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / return self.map_err(|e| { [INFO] [stdout] 26 | | debug!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 27 | | e [INFO] [stdout] 28 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 25 ~ self.map_err(|e| { [INFO] [stdout] 26 + debug!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 27 + e [INFO] [stdout] 28 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 25 ~ return self.inspect_err(|e| { [INFO] [stdout] 26 ~ debug!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | / return self.map_err(|e| { [INFO] [stdout] 33 | | info!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 34 | | e [INFO] [stdout] 35 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 32 ~ self.map_err(|e| { [INFO] [stdout] 33 + info!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 34 + e [INFO] [stdout] 35 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 32 ~ return self.inspect_err(|e| { [INFO] [stdout] 33 ~ info!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | / return self.map_err(|e| { [INFO] [stdout] 40 | | warn!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 41 | | e [INFO] [stdout] 42 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 39 ~ self.map_err(|e| { [INFO] [stdout] 40 + warn!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 41 + e [INFO] [stdout] 42 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 39 ~ return self.inspect_err(|e| { [INFO] [stdout] 40 ~ warn!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | / return self.map_err(|e| { [INFO] [stdout] 47 | | error!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 48 | | e [INFO] [stdout] 49 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 46 ~ self.map_err(|e| { [INFO] [stdout] 47 + error!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 48 + e [INFO] [stdout] 49 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 46 ~ return self.inspect_err(|e| { [INFO] [stdout] 47 ~ error!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | / return self.map_err(|e| { [INFO] [stdout] 54 | | println!("{}", cb(&e).as_ref()); [INFO] [stdout] 55 | | e [INFO] [stdout] 56 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 53 ~ self.map_err(|e| { [INFO] [stdout] 54 + println!("{}", cb(&e).as_ref()); [INFO] [stdout] 55 + e [INFO] [stdout] 56 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 53 ~ return self.inspect_err(|e| { [INFO] [stdout] 54 ~ println!("{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/models/monitor.rs:1451:36 [INFO] [stdout] | [INFO] [stdout] 1451 | if !regex.is_match(&push_token) { [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `push_token` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/models/notification.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | .all(|(k, v)| map_b.get(k).map_or(false, |v_b| v == v_b)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use a standard comparison instead [INFO] [stdout] | [INFO] [stdout] 71 - .all(|(k, v)| map_b.get(k).map_or(false, |v_b| v == v_b)) [INFO] [stdout] 71 + .all(|(k, v)| map_b.get(k) == Some(v)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | / return self.map_err(|e| { [INFO] [stdout] 19 | | trace!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 20 | | e [INFO] [stdout] 21 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 18 ~ self.map_err(|e| { [INFO] [stdout] 19 + trace!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 20 + e [INFO] [stdout] 21 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] = note: `#[warn(clippy::manual_inspect)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 18 ~ return self.inspect_err(|e| { [INFO] [stdout] 19 ~ trace!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / return self.map_err(|e| { [INFO] [stdout] 26 | | debug!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 27 | | e [INFO] [stdout] 28 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 25 ~ self.map_err(|e| { [INFO] [stdout] 26 + debug!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 27 + e [INFO] [stdout] 28 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 25 ~ return self.inspect_err(|e| { [INFO] [stdout] 26 ~ debug!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | / return self.map_err(|e| { [INFO] [stdout] 33 | | info!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 34 | | e [INFO] [stdout] 35 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 32 ~ self.map_err(|e| { [INFO] [stdout] 33 + info!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 34 + e [INFO] [stdout] 35 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 32 ~ return self.inspect_err(|e| { [INFO] [stdout] 33 ~ info!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | / return self.map_err(|e| { [INFO] [stdout] 40 | | warn!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 41 | | e [INFO] [stdout] 42 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 39 ~ self.map_err(|e| { [INFO] [stdout] 40 + warn!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 41 + e [INFO] [stdout] 42 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 39 ~ return self.inspect_err(|e| { [INFO] [stdout] 40 ~ warn!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | / return self.map_err(|e| { [INFO] [stdout] 47 | | error!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 48 | | e [INFO] [stdout] 49 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 46 ~ self.map_err(|e| { [INFO] [stdout] 47 + error!(target: target, "{}", cb(&e).as_ref()); [INFO] [stdout] 48 + e [INFO] [stdout] 49 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 46 ~ return self.inspect_err(|e| { [INFO] [stdout] 47 ~ error!(target: target, "{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | / return self.map_err(|e| { [INFO] [stdout] 54 | | println!("{}", cb(&e).as_ref()); [INFO] [stdout] 55 | | e [INFO] [stdout] 56 | | }); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 53 ~ self.map_err(|e| { [INFO] [stdout] 54 + println!("{}", cb(&e).as_ref()); [INFO] [stdout] 55 + e [INFO] [stdout] 56 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `map_err` over `inspect_err` [INFO] [stdout] --> src/util.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | return self.map_err(|e| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 53 ~ return self.inspect_err(|e| { [INFO] [stdout] 54 ~ println!("{}", cb(e).as_ref()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> examples/create_monitor.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | parent: group.common().id().clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*group.common().id()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "f6034a88e8cbe18280f9b22b409786dd693340ceac925d094a431b294f85ccd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6034a88e8cbe18280f9b22b409786dd693340ceac925d094a431b294f85ccd4", kill_on_drop: false }` [INFO] [stdout] f6034a88e8cbe18280f9b22b409786dd693340ceac925d094a431b294f85ccd4