[INFO] fetching crate br-plugin 0.0.40... [INFO] checking br-plugin-0.0.40 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate br-plugin 0.0.40 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate br-plugin 0.0.40 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate br-plugin 0.0.40 [INFO] finished tweaking crates.io crate br-plugin 0.0.40 [INFO] tweaked toml for crates.io crate br-plugin 0.0.40 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 38ea7003c95bfbc46a859c3864cee00bf946007a10c23057d707d229a778f393 [INFO] running `Command { std: "docker" "start" "-a" "38ea7003c95bfbc46a859c3864cee00bf946007a10c23057d707d229a778f393", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38ea7003c95bfbc46a859c3864cee00bf946007a10c23057d707d229a778f393", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38ea7003c95bfbc46a859c3864cee00bf946007a10c23057d707d229a778f393", kill_on_drop: false }` [INFO] [stdout] 38ea7003c95bfbc46a859c3864cee00bf946007a10c23057d707d229a778f393 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a2e5a73744e4df7f0a3ac8c76b1561e32db85109529520bd921b79040553a0b [INFO] running `Command { std: "docker" "start" "-a" "3a2e5a73744e4df7f0a3ac8c76b1561e32db85109529520bd921b79040553a0b", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling log v0.4.18 [INFO] [stderr] Checking value-bag v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling libc v0.2.145 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking simd-adler32 v0.3.5 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling libz-sys v1.1.9 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking uuid v1.3.3 [INFO] [stderr] Checking lexical-util v0.8.5 [INFO] [stderr] Compiling prettyplease v0.2.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking flate2 v1.0.26 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Compiling frunk_core v0.4.1 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking openssl v0.10.54 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking concurrent-queue v2.2.0 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling bindgen v0.65.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking sha256 v1.1.3 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling darling_core v0.20.1 [INFO] [stderr] Checking ring v0.16.20 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling clang-sys v1.6.1 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking async-lock v2.7.0 [INFO] [stderr] Checking lexical-parse-integer v0.8.6 [INFO] [stderr] Checking lexical-write-integer v0.8.5 [INFO] [stderr] Checking thiserror v1.0.40 [INFO] [stderr] Compiling serde_derive v1.0.163 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling rayon v1.7.0 [INFO] [stderr] Compiling regex v1.8.3 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking lexical-write-float v0.8.5 [INFO] [stderr] Checking lexical-parse-float v0.8.5 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling sqlite3-src v0.4.0 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling frunk_proc_macro_helpers v0.1.1 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling rust_decimal v1.29.1 [INFO] [stderr] Checking async-task v4.4.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Checking lexical-core v0.8.5 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling frunk_proc_macros_impl v0.1.1 [INFO] [stderr] Compiling frunk_derives v0.4.1 [INFO] [stderr] Checking webpki v0.22.0 [INFO] [stderr] Checking native-tls v0.2.11 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Checking async-channel v1.8.0 [INFO] [stderr] Checking rustls-pemfile v1.0.2 [INFO] [stderr] Checking sha1 v0.10.5 [INFO] [stderr] Compiling libdeflate-sys v0.11.0 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Checking textcode v0.2.2 [INFO] [stderr] Compiling darling_macro v0.20.1 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling snap v1.1.0 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Compiling ouroboros_macro v0.15.6 [INFO] [stderr] Checking blocking v1.3.1 [INFO] [stderr] Checking rustls-native-certs v0.6.2 [INFO] [stderr] Checking rustls v0.20.8 [INFO] [stderr] Checking bigdecimal v0.3.1 [INFO] [stderr] Checking frunk_proc_macros v0.1.1 [INFO] [stderr] Checking frunk v0.4.1 [INFO] [stderr] Compiling toml_edit v0.19.10 [INFO] [stderr] Compiling darling v0.20.1 [INFO] [stderr] Checking lexical v6.1.1 [INFO] [stderr] Checking async-executor v1.5.1 [INFO] [stderr] Checking parking_lot_core v0.9.7 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking fdeflate v0.3.0 [INFO] [stderr] Compiling derive_utils v0.13.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking crc-catalog v1.1.1 [INFO] [stderr] Compiling mysql v24.0.0 [INFO] [stderr] Checking saturating v0.1.0 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Compiling kafka v0.9.0 [INFO] [stderr] Checking os_str_bytes v6.5.0 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking bitflags v2.3.1 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Checking png v0.17.8 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Compiling io-enum v1.1.0 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Checking crc v2.1.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking async-global-executor v2.3.1 [INFO] [stderr] Checking sqlite3-sys v0.14.0 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking lru v0.10.0 [INFO] [stderr] Checking async-native-tls v0.4.0 [INFO] [stderr] Checking asynchronous-codec v0.6.1 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Checking imap-proto v0.16.2 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking combine v4.6.6 [INFO] [stderr] Checking pem v2.0.1 [INFO] [stderr] Checking email-encoding v0.2.0 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking enumflags2 v0.7.7 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking ref_slice v1.2.1 [INFO] [stderr] Checking quoted_printable v0.4.8 [INFO] [stderr] Checking email_address v0.2.4 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking pretty-hex v0.3.0 [INFO] [stderr] Checking rustls-connector v0.16.1 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking connection-string v0.2.0 [INFO] [stderr] Checking zopfli v0.7.4 [INFO] [stderr] Checking lettre v0.10.4 [INFO] [stderr] Checking stderrlog v0.5.4 [INFO] [stderr] Checking image v0.24.6 [INFO] [stderr] Checking libdeflater v0.11.0 [INFO] [stderr] Checking tokio v1.28.2 [INFO] [stderr] Checking br-crypto v0.0.9 [INFO] [stderr] Checking ouroboros v0.15.6 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking async-std v1.12.0 [INFO] [stderr] Checking serde v1.0.163 [INFO] [stderr] Checking sqlite v0.30.4 [INFO] [stderr] Checking rgb v0.8.36 [INFO] [stderr] Checking imap v3.0.0-alpha.10 [INFO] [stderr] Checking br-crypto v0.0.5 [INFO] [stderr] Checking rs-pop3 v1.0.8 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking br-fields v0.0.17 [INFO] [stderr] Checking filetime v0.2.21 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking wild v2.1.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking br-crypto v0.0.3 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking br-web v0.0.2 [INFO] [stderr] Checking tiberius v0.12.2 [INFO] [stderr] Checking br-kafka v0.0.2 [INFO] [stderr] Compiling mysql-common-derive v0.30.2 [INFO] [stderr] Checking br-email v0.1.0 [INFO] [stderr] Compiling mysql_common v0.30.4 [INFO] [stderr] Checking oxipng v8.0.0 [INFO] [stderr] Checking serde_json v1.0.96 [INFO] [stderr] Checking br-file v0.0.1 [INFO] [stderr] Checking redis v0.23.0 [INFO] [stderr] Checking br-cache v0.0.4 [INFO] [stderr] Checking br-db v0.1.10 [INFO] [stderr] Checking br-plugin v0.0.40 (/opt/rustwide/workdir) [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | let conf = fs::read_to_string(config_path.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:54:47 [INFO] [stdout] | [INFO] [stdout] 54 | match json::parse(str.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:79:50 [INFO] [stdout] | [INFO] [stdout] 79 | let conf = fs::read_to_string(config_path.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:82:47 [INFO] [stdout] | [INFO] [stdout] 82 | match json::parse(str.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:104:50 [INFO] [stdout] | [INFO] [stdout] 104 | let conf = fs::read_to_string(config_path.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:105:40 [INFO] [stdout] | [INFO] [stdout] 105 | match json::parse(conf.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:118:50 [INFO] [stdout] | [INFO] [stdout] 118 | let conf = fs::read_to_string(config_path.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:121:45 [INFO] [stdout] | [INFO] [stdout] 121 | match json::parse(e.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/model.rs:116:51 [INFO] [stdout] | [INFO] [stdout] 116 | db.field(fields.join(",").as_str().clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/model.rs:172:86 [INFO] [stdout] | [INFO] [stdout] 172 | ... .field(format!("id,{}", field.join(",")).as_str().clone()) [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/model.rs:179:84 [INFO] [stdout] | [INFO] [stdout] 179 | ... row["value"] = format!("{}", find[field.clone()]).into(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/model.rs:181:103 [INFO] [stdout] | [INFO] [stdout] 181 | ... row["value"] = format!("{} | {}", row["value"], find[field.clone()]).into(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/model.rs:308:61 [INFO] [stdout] | [INFO] [stdout] 308 | db.field(format!("id,{}", fields.join(",")).as_str().clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/model.rs:331:60 [INFO] [stdout] | [INFO] [stdout] 331 | row["value"] = format!("{}", item[field.clone()]).into(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/model.rs:333:79 [INFO] [stdout] | [INFO] [stdout] 333 | row["value"] = format!("{} | {}", row["value"], item[field.clone()]).into(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | let conf = fs::read_to_string(config_path.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:54:47 [INFO] [stdout] | [INFO] [stdout] 54 | match json::parse(str.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:79:50 [INFO] [stdout] | [INFO] [stdout] 79 | let conf = fs::read_to_string(config_path.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:82:47 [INFO] [stdout] | [INFO] [stdout] 82 | match json::parse(str.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:104:50 [INFO] [stdout] | [INFO] [stdout] 104 | let conf = fs::read_to_string(config_path.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:105:40 [INFO] [stdout] | [INFO] [stdout] 105 | match json::parse(conf.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:118:50 [INFO] [stdout] | [INFO] [stdout] 118 | let conf = fs::read_to_string(config_path.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:121:45 [INFO] [stdout] | [INFO] [stdout] 121 | match json::parse(e.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/model.rs:116:51 [INFO] [stdout] | [INFO] [stdout] 116 | db.field(fields.join(",").as_str().clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/model.rs:172:86 [INFO] [stdout] | [INFO] [stdout] 172 | ... .field(format!("id,{}", field.join(",")).as_str().clone()) [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/model.rs:179:84 [INFO] [stdout] | [INFO] [stdout] 179 | ... row["value"] = format!("{}", find[field.clone()]).into(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/model.rs:181:103 [INFO] [stdout] | [INFO] [stdout] 181 | ... row["value"] = format!("{} | {}", row["value"], find[field.clone()]).into(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/model.rs:308:61 [INFO] [stdout] | [INFO] [stdout] 308 | db.field(format!("id,{}", fields.join(",")).as_str().clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/model.rs:331:60 [INFO] [stdout] | [INFO] [stdout] 331 | row["value"] = format!("{}", item[field.clone()]).into(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/model.rs:333:79 [INFO] [stdout] | [INFO] [stdout] 333 | row["value"] = format!("{} | {}", row["value"], item[field.clone()]).into(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `br-plugin` (lib) due to 12 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `br-plugin` (lib test) due to 12 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3a2e5a73744e4df7f0a3ac8c76b1561e32db85109529520bd921b79040553a0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a2e5a73744e4df7f0a3ac8c76b1561e32db85109529520bd921b79040553a0b", kill_on_drop: false }` [INFO] [stdout] 3a2e5a73744e4df7f0a3ac8c76b1561e32db85109529520bd921b79040553a0b