[INFO] cloning repository https://github.com/zhoujun681/ip_manager_server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zhoujun681/ip_manager_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2Fip_manager_server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2Fip_manager_server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e51a32d4053ee872bf4fff5ab8077bd825e3e97d [INFO] testing zhoujun681/ip_manager_server against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2Fip_manager_server" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zhoujun681/ip_manager_server [INFO] finished tweaking git repo https://github.com/zhoujun681/ip_manager_server [INFO] tweaked toml for git repo https://github.com/zhoujun681/ip_manager_server written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zhoujun681/ip_manager_server on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zhoujun681/ip_manager_server 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded winping v0.10.1 [INFO] [stderr] Downloaded smallvec v1.5.1 [INFO] [stderr] Downloaded serde_yaml v0.8.15 [INFO] [stderr] Downloaded standback v0.2.13 [INFO] [stderr] Downloaded futures-sink v0.3.8 [INFO] [stderr] Downloaded futures-task v0.3.8 [INFO] [stderr] Downloaded futures-io v0.3.8 [INFO] [stderr] Downloaded thiserror v1.0.22 [INFO] [stderr] Downloaded actix-cors v0.5.3 [INFO] [stderr] Downloaded futures v0.3.8 [INFO] [stderr] Downloaded futures-core v0.3.8 [INFO] [stderr] Downloaded serde_json v1.0.60 [INFO] [stderr] Downloaded rusqlite v0.24.2 [INFO] [stderr] Downloaded pin-project-lite v0.2.0 [INFO] [stderr] Downloaded syn v1.0.55 [INFO] [stderr] Downloaded pin-project-internal v1.0.2 [INFO] [stderr] Downloaded pin-project v1.0.2 [INFO] [stderr] Downloaded const_fn v0.4.4 [INFO] [stderr] Downloaded http v0.2.2 [INFO] [stderr] Downloaded time v0.2.23 [INFO] [stderr] Downloaded futures-util v0.3.8 [INFO] [stderr] Downloaded thiserror-impl v1.0.22 [INFO] [stderr] Downloaded parking_lot_core v0.8.1 [INFO] [stderr] Downloaded signal-hook-registry v1.2.2 [INFO] [stderr] Downloaded futures-channel v0.3.8 [INFO] [stderr] Downloaded futures-macro v0.3.8 [INFO] [stderr] Downloaded socket2 v0.3.18 [INFO] [stderr] Downloaded winapi_forked_icmpapi v0.3.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5989f12157c076687ad9a7f4e80cc344bb9783431e2afe3b97e0722a56c4ef3d [INFO] running `Command { std: "docker" "start" "-a" "5989f12157c076687ad9a7f4e80cc344bb9783431e2afe3b97e0722a56c4ef3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5989f12157c076687ad9a7f4e80cc344bb9783431e2afe3b97e0722a56c4ef3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5989f12157c076687ad9a7f4e80cc344bb9783431e2afe3b97e0722a56c4ef3d", kill_on_drop: false }` [INFO] [stdout] 5989f12157c076687ad9a7f4e80cc344bb9783431e2afe3b97e0722a56c4ef3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d66d4fc9257f6d82f8d8a08b9340c2654fe33e1e15b52ed9d5efb37b5e77231 [INFO] running `Command { std: "docker" "start" "-a" "6d66d4fc9257f6d82f8d8a08b9340c2654fe33e1e15b52ed9d5efb37b5e77231", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.55 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling smallvec v1.5.1 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling tinyvec v1.1.0 [INFO] [stderr] Compiling standback v0.2.13 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling gimli v0.23.0 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling rustc-demangle v0.1.18 [INFO] [stderr] Compiling const_fn v0.4.4 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling object v0.22.0 [INFO] [stderr] Compiling http v0.2.2 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling time v0.2.23 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling signal-hook-registry v1.2.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.8.1 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling pin-project-lite v0.2.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling tokio v0.2.24 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling sha-1 v0.9.2 [INFO] [stderr] Compiling flate2 v1.0.19 [INFO] [stderr] Compiling addr2line v0.14.0 [INFO] [stderr] Compiling backtrace v0.3.55 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling socket2 v0.3.18 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling libsqlite3-sys v0.20.1 [INFO] [stderr] Compiling bytestring v0.1.5 [INFO] [stderr] Compiling winapi_forked_icmpapi v0.3.7 [INFO] [stderr] Compiling hashlink v0.6.0 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling dtoa v0.4.7 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling winping v0.10.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.22 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling pin-project v1.0.2 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling trust-dns-proto v0.19.6 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling trust-dns-resolver v0.19.6 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling actix-router v0.2.5 [INFO] [stderr] Compiling serde_yaml v0.8.15 [INFO] [stderr] Compiling rusqlite v0.24.2 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling actix-http v2.2.0 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.2 [INFO] [stderr] Compiling actix-cors v0.5.3 [INFO] [stderr] Compiling IpManagerServer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `winping::Buffer`, `winping::Pinger` [INFO] [stdout] --> src/my_sqlite_dao.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use winping::{Buffer, Pinger}; [INFO] [stdout] | ^^^^^^ ^^^^^^ no `Pinger` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Buffer` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpRequest` [INFO] [stdout] --> src/main.rs:10:52 [INFO] [stdout] | [INFO] [stdout] 10 | use actix_web::{get, http::header, post, web, App, HttpRequest, HttpResponse, HttpServer}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_yaml::Error` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use serde_yaml::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::web::Json` [INFO] [stdout] --> src/my_sqlite_dao.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::web::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::types::Null` [INFO] [stdout] --> src/my_sqlite_dao.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rusqlite::types::Null; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/my_sqlite_dao.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | use rusqlite::{params, Connection, Result, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `part` should have an upper camel case name [INFO] [stdout] --> src/my_sqlite_dao.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct part { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Part` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `department` should have an upper camel case name [INFO] [stdout] --> src/my_sqlite_dao.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct department { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Department` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ip_address` should have an upper camel case name [INFO] [stdout] --> src/my_sqlite_dao.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct ip_address { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `IpAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | if (ip.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 204 - if (ip.is_empty()) { [INFO] [stdout] 204 + if ip.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:227:8 [INFO] [stdout] | [INFO] [stdout] 227 | if (result == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 227 - if (result == 0) { [INFO] [stdout] 227 + if result == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | if (is_locked == -1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 254 - if (is_locked == -1) { [INFO] [stdout] 254 + if is_locked == -1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:256:15 [INFO] [stdout] | [INFO] [stdout] 256 | } else if (is_locked > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 256 - } else if (is_locked > 0) { [INFO] [stdout] 256 + } else if is_locked > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:262:8 [INFO] [stdout] | [INFO] [stdout] 262 | if (is_locked == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 262 - if (is_locked == 1) { [INFO] [stdout] 262 + if is_locked == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:285:8 [INFO] [stdout] | [INFO] [stdout] 285 | if (result > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 285 - if (result > 0) { [INFO] [stdout] 285 + if result > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | if (result > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 308 - if (result > 0) { [INFO] [stdout] 308 + if result > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:358:8 [INFO] [stdout] | [INFO] [stdout] 358 | if (part_id == -1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 358 - if (part_id == -1) { [INFO] [stdout] 358 + if part_id == -1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:431:8 [INFO] [stdout] | [INFO] [stdout] 431 | if (overlap_count > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 431 - if (overlap_count > 0) { [INFO] [stdout] 431 + if overlap_count > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:627:8 [INFO] [stdout] | [INFO] [stdout] 627 | if (overlap_count > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 627 - if (overlap_count > 0) { [INFO] [stdout] 627 + if overlap_count > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:699:8 [INFO] [stdout] | [INFO] [stdout] 699 | if (ip_address_end != ip_address_end_old) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 699 - if (ip_address_end != ip_address_end_old) { [INFO] [stdout] 699 + if ip_address_end != ip_address_end_old { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:706:12 [INFO] [stdout] | [INFO] [stdout] 706 | if (result < 0 && result != -2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 706 - if (result < 0 && result != -2) { [INFO] [stdout] 706 + if result < 0 && result != -2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/my_sqlite_dao.rs:725:8 [INFO] [stdout] | [INFO] [stdout] 725 | if (ip_address_end != ip_address_end_old) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 725 - if (ip_address_end != ip_address_end_old) { [INFO] [stdout] 725 + if ip_address_end != ip_address_end_old { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Query_Ip` should have an upper camel case name [INFO] [stdout] --> src/main.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Query_Ip { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `QueryIp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Check_Ip` should have an upper camel case name [INFO] [stdout] --> src/main.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Check_Ip { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `CheckIp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let mut myconn = my_sqlite_dao::init_db().expect("数据库初始化失败"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | let mut myconn = my_sqlite_dao::init_db().expect("数据库初始化失败"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | let mut myconn = my_sqlite_dao::init_db().expect("数据库初始化失败"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/my_sqlite_dao.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | Err(err) => "None".to_string(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/my_sqlite_dao.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | Err(err) => "None".to_string(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/my_sqlite_dao.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | Err(err) => "None".to_string(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/my_sqlite_dao.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let mut b: User = User { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/my_sqlite_dao.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let mut b: User = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/my_sqlite_dao.rs:189:21 [INFO] [stdout] | [INFO] [stdout] 188 | Ok(ip) => Some(ip), [INFO] [stdout] | ------ matches all the relevant values [INFO] [stdout] 189 | Ok(_) => None, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/my_sqlite_dao.rs:190:25 [INFO] [stdout] | [INFO] [stdout] 190 | Err(err) => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/my_sqlite_dao.rs:246:25 [INFO] [stdout] | [INFO] [stdout] 246 | Err(err) => -1, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/my_sqlite_dao.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | let mut my_params = format!("{}", part_id); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/my_sqlite_dao.rs:438:9 [INFO] [stdout] | [INFO] [stdout] 438 | let mut tx = myconn.transaction().unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ResultFlag` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:400:26 [INFO] [stdout] | [INFO] [stdout] 400 | let mut ResultFlag = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `part_count` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:412:26 [INFO] [stdout] | [INFO] [stdout] 412 | let mut part_count = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `department_count` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:413:32 [INFO] [stdout] | [INFO] [stdout] 413 | let mut department_count = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `department_id` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:414:29 [INFO] [stdout] | [INFO] [stdout] 414 | let mut department_id = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/my_sqlite_dao.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | let result = myconn [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/my_sqlite_dao.rs:476:13 [INFO] [stdout] | [INFO] [stdout] 476 | let result = myconn [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/my_sqlite_dao.rs:492:13 [INFO] [stdout] | [INFO] [stdout] 492 | let result = myconn [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/my_sqlite_dao.rs:509:9 [INFO] [stdout] | [INFO] [stdout] 509 | let result = myconn [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/my_sqlite_dao.rs:661:9 [INFO] [stdout] | [INFO] [stdout] 661 | let mut tx = myconn.transaction().unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:662:29 [INFO] [stdout] | [INFO] [stdout] 662 | let mut result: usize = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 663 | / result = tx [INFO] [stdout] 664 | | .execute( [INFO] [stdout] 665 | | "delete from ip_datas where part_id=?1 and ip_address_end=?2", [INFO] [stdout] 666 | | params![&part_id, &ip_address_end], [INFO] [stdout] 667 | | ) [INFO] [stdout] 668 | | .expect("删除部门失败!!"); [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/my_sqlite_dao.rs:715:9 [INFO] [stdout] | [INFO] [stdout] 715 | let mut tx = tempConnection.transaction().unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:698:22 [INFO] [stdout] | [INFO] [stdout] 698 | let mut result = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:726:9 [INFO] [stdout] | [INFO] [stdout] 726 | / result = tx [INFO] [stdout] 727 | | .execute( [INFO] [stdout] 728 | | "update ip_locks set lock=0 where part_id=?1 and ip_address_end=?2", [INFO] [stdout] 729 | | params![part_id, &ip_address_end_old], [INFO] [stdout] 730 | | ) [INFO] [stdout] 731 | | .expect("更新lock失败!!"); [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/main.rs:290:41 [INFO] [stdout] | [INFO] [stdout] 290 | .allowed_origin_fn(|origin, _req_head| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `IpManagerServer` (bin "IpManagerServer") due to 1 previous error; 53 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6d66d4fc9257f6d82f8d8a08b9340c2654fe33e1e15b52ed9d5efb37b5e77231", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d66d4fc9257f6d82f8d8a08b9340c2654fe33e1e15b52ed9d5efb37b5e77231", kill_on_drop: false }` [INFO] [stdout] 6d66d4fc9257f6d82f8d8a08b9340c2654fe33e1e15b52ed9d5efb37b5e77231