[INFO] cloning repository https://github.com/fengqshanl/yew-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fengqshanl/yew-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffengqshanl%2Fyew-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffengqshanl%2Fyew-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c7108692498125629d5730b9e824d5e9ac5205a7 [INFO] testing fengqshanl/yew-rust/c7108692498125629d5730b9e824d5e9ac5205a7 against beta-2024-09-05 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffengqshanl%2Fyew-rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fengqshanl/yew-rust on toolchain beta-2024-09-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fengqshanl/yew-rust [INFO] finished tweaking git repo https://github.com/fengqshanl/yew-rust [INFO] tweaked toml for git repo https://github.com/fengqshanl/yew-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fengqshanl/yew-rust 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" "+beta-2024-09-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 594c1446f6ea7f98250c51842f113e24e6be9ca124b2933fedab1bd070eab919 [INFO] running `Command { std: "docker" "start" "-a" "594c1446f6ea7f98250c51842f113e24e6be9ca124b2933fedab1bd070eab919", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "594c1446f6ea7f98250c51842f113e24e6be9ca124b2933fedab1bd070eab919", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "594c1446f6ea7f98250c51842f113e24e6be9ca124b2933fedab1bd070eab919", kill_on_drop: false }` [INFO] [stdout] 594c1446f6ea7f98250c51842f113e24e6be9ca124b2933fedab1bd070eab919 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fff2288febe0d375c5a7f4e7561a1bd65afd8c1efcf1c92e0ac152af0a732c4 [INFO] running `Command { std: "docker" "start" "-a" "5fff2288febe0d375c5a7f4e7561a1bd65afd8c1efcf1c92e0ac152af0a732c4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling futures-core v0.3.23 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling futures-sink v0.3.23 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling futures-task v0.3.23 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling futures-util v0.3.23 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling futures-io v0.3.23 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Compiling tracing-core v0.1.29 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling cc v1.1.13 [INFO] [stderr] Compiling futures-channel v0.3.23 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling serde_derive v1.0.141 [INFO] [stderr] Compiling unicode-normalization v0.1.21 [INFO] [stderr] Compiling serde v1.0.141 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tracing v0.1.36 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling bytestring v1.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling md-5 v0.10.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Compiling ucd-trie v0.1.4 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling serde_json v1.0.92 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling postgres-protocol v0.6.4 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling firestorm v0.5.1 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling uuid v1.1.2 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling sha1 v0.10.1 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling zstd-sys v2.0.1+zstd.1.5.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling dlv-list v0.3.0 [INFO] [stderr] Compiling ordered-multimap v0.4.3 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling postgres-types v0.2.4 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling time v0.3.12 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling retain_mut v0.1.9 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling rust-ini v0.18.0 [INFO] [stderr] Compiling ipnet v2.5.0 [INFO] [stderr] Compiling pathdiff v0.2.1 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling tokio-util v0.7.3 [INFO] [stderr] Compiling actix-rt v2.7.0 [INFO] [stderr] Compiling deadpool-runtime v0.1.2 [INFO] [stderr] Compiling actix-codec v0.5.0 [INFO] [stderr] Compiling actix-router v0.5.0 [INFO] [stderr] Compiling futures-macro v0.3.23 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling thiserror v1.0.32 [INFO] [stderr] Compiling pest v2.2.1 [INFO] [stderr] Compiling pest_meta v2.2.1 [INFO] [stderr] Compiling postgres-derive v0.4.3 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling pest_generator v2.2.1 [INFO] [stderr] Compiling actix-web-codegen v4.0.1 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling futures-executor v0.3.23 [INFO] [stderr] Compiling local-channel v0.1.3 [INFO] [stderr] Compiling pest_derive v2.2.1 [INFO] [stderr] Compiling futures v0.3.23 [INFO] [stderr] Compiling tokio-postgres v0.7.6 [INFO] [stderr] Compiling actix-server v2.1.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling tokio-pg-mapper v0.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ron v0.7.1 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling deadpool v0.9.5 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling tokio-pg-mapper-derive v0.2.0 [INFO] [stderr] Compiling deadpool-postgres v0.10.2 [INFO] [stderr] Compiling hyper v0.14.20 [INFO] [stderr] Compiling config v0.13.2 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.12 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling actix-http v3.2.1 [INFO] [stderr] Compiling actix-web v4.1.0 [INFO] [stderr] Compiling actix-cors v0.6.2 [INFO] [stderr] Compiling async_pg v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde::de::Unexpected::Str` [INFO] [stdout] --> src/db/medicine.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::de::Unexpected::Str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Medicine` [INFO] [stdout] --> src/handlers/medicine.rs:3:61 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{db, errors::errors::MyError, models::medicine::{Medicine, MedicineFrontendCreate, MedicineFrontendModify}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromSql` and `ToSql` [INFO] [stdout] --> src/models/drug/aliorigin.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use postgres_types::{self, ToSql, FromSql}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/models/purchase_detail/purchase_detail.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use time; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/models/purchase_detail/frontend.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use time; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/models/medicine/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use time; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `middleware` [INFO] [stdout] --> src/main.rs:14:39 [INFO] [stdout] | [INFO] [stdout] 14 | use actix_web::{web, App, HttpServer, middleware}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row_ref` is never used [INFO] [stdout] --> src/models/broth_song.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Broth { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row_ref` is never used [INFO] [stdout] --> src/models/classification.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Classification { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row_ref` is never used [INFO] [stdout] --> src/models/inventory.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Inventory { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 19 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/db/medicine.rs:118:47 [INFO] [stdout] | [INFO] [stdout] 118 | println!("stmt: {:?}, search: {:?}", _stmt.clone(), search.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant 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: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/db/medicine.rs:124:38 [INFO] [stdout] | [INFO] [stdout] 124 | println!("row: {:?}", row.clone()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `tokio_postgres::Row` does not implement `Clone`, so calling `clone` on `&tokio_postgres::Row` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 124 - println!("row: {:?}", row.clone()); [INFO] [stdout] 124 + println!("row: {:?}", row); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `tokio_postgres::Row`, implement `Clone` for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-postgres-0.7.6/src/row.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 + #[derive(Clone)] [INFO] [stdout] 99 | pub struct Row { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `taskNo` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub taskNo: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `task_no` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `sptmImg` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub sptmImg: String, // 条码图片 [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `sptm_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `goodsType` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub goodsType: String, // 商品分类 [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `goods_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `goodsName` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub goodsName: String, // 商品名称 [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `goods_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `manuName` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub manuName: String, // 厂商 [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `manu_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `manuAddress` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub manuAddress: String, // 厂商地址 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `manu_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `imgList` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub imgList: Vec // 条码中心图片列表 [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `img_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.54s [INFO] running `Command { std: "docker" "inspect" "5fff2288febe0d375c5a7f4e7561a1bd65afd8c1efcf1c92e0ac152af0a732c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fff2288febe0d375c5a7f4e7561a1bd65afd8c1efcf1c92e0ac152af0a732c4", kill_on_drop: false }` [INFO] [stdout] 5fff2288febe0d375c5a7f4e7561a1bd65afd8c1efcf1c92e0ac152af0a732c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c78af8d81ecaf6c303ac253df2eae6f3fe568f41fb26fc22612872e528bb3b7a [INFO] running `Command { std: "docker" "start" "-a" "c78af8d81ecaf6c303ac253df2eae6f3fe568f41fb26fc22612872e528bb3b7a", kill_on_drop: false }` [INFO] [stderr] Compiling async_pg v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde::de::Unexpected::Str` [INFO] [stdout] --> src/db/medicine.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::de::Unexpected::Str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Medicine` [INFO] [stdout] --> src/handlers/medicine.rs:3:61 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{db, errors::errors::MyError, models::medicine::{Medicine, MedicineFrontendCreate, MedicineFrontendModify}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromSql` and `ToSql` [INFO] [stdout] --> src/models/drug/aliorigin.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use postgres_types::{self, ToSql, FromSql}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/models/purchase_detail/purchase_detail.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use time; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/models/purchase_detail/frontend.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use time; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/models/medicine/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use time; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `middleware` [INFO] [stdout] --> src/main.rs:14:39 [INFO] [stdout] | [INFO] [stdout] 14 | use actix_web::{web, App, HttpServer, middleware}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row_ref` is never used [INFO] [stdout] --> src/models/broth_song.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Broth { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row_ref` is never used [INFO] [stdout] --> src/models/classification.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Classification { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row_ref` is never used [INFO] [stdout] --> src/models/inventory.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Inventory { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 19 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/db/medicine.rs:118:47 [INFO] [stdout] | [INFO] [stdout] 118 | println!("stmt: {:?}, search: {:?}", _stmt.clone(), search.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant 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: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/db/medicine.rs:124:38 [INFO] [stdout] | [INFO] [stdout] 124 | println!("row: {:?}", row.clone()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `tokio_postgres::Row` does not implement `Clone`, so calling `clone` on `&tokio_postgres::Row` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 124 - println!("row: {:?}", row.clone()); [INFO] [stdout] 124 + println!("row: {:?}", row); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `tokio_postgres::Row`, implement `Clone` for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-postgres-0.7.6/src/row.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 + #[derive(Clone)] [INFO] [stdout] 99 | pub struct Row { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `taskNo` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub taskNo: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `task_no` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `sptmImg` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub sptmImg: String, // 条码图片 [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `sptm_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `goodsType` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub goodsType: String, // 商品分类 [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `goods_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `goodsName` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub goodsName: String, // 商品名称 [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `goods_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `manuName` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub manuName: String, // 厂商 [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `manu_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `manuAddress` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub manuAddress: String, // 厂商地址 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `manu_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `imgList` should have a snake case name [INFO] [stdout] --> src/models/drug/aliorigin.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub imgList: Vec // 条码中心图片列表 [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `img_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.93s [INFO] running `Command { std: "docker" "inspect" "c78af8d81ecaf6c303ac253df2eae6f3fe568f41fb26fc22612872e528bb3b7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c78af8d81ecaf6c303ac253df2eae6f3fe568f41fb26fc22612872e528bb3b7a", kill_on_drop: false }` [INFO] [stdout] c78af8d81ecaf6c303ac253df2eae6f3fe568f41fb26fc22612872e528bb3b7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c82df96754eb9fcfc67239d4b2eaeb762b40e959e0608711dbcdf6e75704597d [INFO] running `Command { std: "docker" "start" "-a" "c82df96754eb9fcfc67239d4b2eaeb762b40e959e0608711dbcdf6e75704597d", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `serde::de::Unexpected::Str` [INFO] [stderr] --> src/db/medicine.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serde::de::Unexpected::Str; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Medicine` [INFO] [stderr] --> src/handlers/medicine.rs:3:61 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{db, errors::errors::MyError, models::medicine::{Medicine, MedicineFrontendCreate, MedicineFrontendModify}}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FromSql` and `ToSql` [INFO] [stderr] --> src/models/drug/aliorigin.rs:2:28 [INFO] [stderr] | [INFO] [stderr] 2 | use postgres_types::{self, ToSql, FromSql}; [INFO] [stderr] | ^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `time` [INFO] [stderr] --> src/models/purchase_detail/purchase_detail.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use time; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `time` [INFO] [stderr] --> src/models/purchase_detail/frontend.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use time; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `time` [INFO] [stderr] --> src/models/medicine/mod.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use time; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::prelude::*` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use chrono::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `middleware` [INFO] [stderr] --> src/main.rs:14:39 [INFO] [stderr] | [INFO] [stderr] 14 | use actix_web::{web, App, HttpServer, middleware}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_row_ref` is never used [INFO] [stderr] --> src/models/broth_song.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl Broth { [INFO] [stderr] | ---------- associated function in this implementation [INFO] [stderr] 18 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `from_row_ref` is never used [INFO] [stderr] --> src/models/classification.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl Classification { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] 16 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_row_ref` is never used [INFO] [stderr] --> src/models/inventory.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Inventory { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 19 | pub fn from_row_ref(row: &Row) -> Result{ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/db/medicine.rs:118:47 [INFO] [stderr] | [INFO] [stderr] 118 | println!("stmt: {:?}, search: {:?}", _stmt.clone(), search.clone()); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/db/medicine.rs:124:38 [INFO] [stderr] | [INFO] [stderr] 124 | println!("row: {:?}", row.clone()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `tokio_postgres::Row` does not implement `Clone`, so calling `clone` on `&tokio_postgres::Row` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 124 - println!("row: {:?}", row.clone()); [INFO] [stderr] 124 + println!("row: {:?}", row); [INFO] [stderr] | [INFO] [stderr] help: if you meant to clone `tokio_postgres::Row`, implement `Clone` for it [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-postgres-0.7.6/src/row.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 + #[derive(Clone)] [INFO] [stderr] 99 | pub struct Row { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: structure field `taskNo` should have a snake case name [INFO] [stderr] --> src/models/drug/aliorigin.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub taskNo: String, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `task_no` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `sptmImg` should have a snake case name [INFO] [stderr] --> src/models/drug/aliorigin.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub sptmImg: String, // 条码图片 [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `sptm_img` [INFO] [stderr] [INFO] [stderr] warning: structure field `goodsType` should have a snake case name [INFO] [stderr] --> src/models/drug/aliorigin.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | pub goodsType: String, // 商品分类 [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `goods_type` [INFO] [stderr] [INFO] [stderr] warning: structure field `goodsName` should have a snake case name [INFO] [stderr] --> src/models/drug/aliorigin.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | pub goodsName: String, // 商品名称 [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `goods_name` [INFO] [stderr] [INFO] [stderr] warning: structure field `manuName` should have a snake case name [INFO] [stderr] --> src/models/drug/aliorigin.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | pub manuName: String, // 厂商 [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `manu_name` [INFO] [stderr] [INFO] [stderr] warning: structure field `manuAddress` should have a snake case name [INFO] [stderr] --> src/models/drug/aliorigin.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | pub manuAddress: String, // 厂商地址 [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `manu_address` [INFO] [stderr] [INFO] [stderr] warning: structure field `imgList` should have a snake case name [INFO] [stderr] --> src/models/drug/aliorigin.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | pub imgList: Vec // 条码中心图片列表 [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `img_list` [INFO] [stderr] [INFO] [stderr] warning: `async_pg` (bin "async_pg" test) generated 20 warnings (run `cargo fix --bin "async_pg" --tests` to apply 10 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/async_pg-b052a0c3ec62b160) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c82df96754eb9fcfc67239d4b2eaeb762b40e959e0608711dbcdf6e75704597d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c82df96754eb9fcfc67239d4b2eaeb762b40e959e0608711dbcdf6e75704597d", kill_on_drop: false }` [INFO] [stdout] c82df96754eb9fcfc67239d4b2eaeb762b40e959e0608711dbcdf6e75704597d