[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] checking zhoujun681/ip_manager_server against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2Fip_manager_server" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhoujun681/ip_manager_server on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-13/source/Cargo.toml [INFO] crate git repo https://github.com/zhoujun681/ip_manager_server already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded socket2 v0.3.18 [INFO] [stderr] Downloaded actix-cors v0.5.3 [INFO] [stderr] Downloaded standback v0.2.13 [INFO] [stderr] Downloaded rusqlite v0.24.2 [INFO] [stderr] Downloaded addr2line v0.14.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.20.1 [INFO] [stderr] Downloaded winapi_forked_icmpapi v0.3.7 [INFO] [stderr] Downloaded winping v0.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0794cbc4394c996141ca5c42d948e0c8559fe4478f7e57106bf7c5132ff1a6ae [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0794cbc4394c996141ca5c42d948e0c8559fe4478f7e57106bf7c5132ff1a6ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0794cbc4394c996141ca5c42d948e0c8559fe4478f7e57106bf7c5132ff1a6ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0794cbc4394c996141ca5c42d948e0c8559fe4478f7e57106bf7c5132ff1a6ae", kill_on_drop: false }` [INFO] [stdout] 0794cbc4394c996141ca5c42d948e0c8559fe4478f7e57106bf7c5132ff1a6ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8423124289dfe1362cb7e5648908a967ac460a742725384173018fdec5f6b03 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e8423124289dfe1362cb7e5648908a967ac460a742725384173018fdec5f6b03", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.55 [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] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking ahash v0.4.7 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling winapi_forked_icmpapi v0.3.7 [INFO] [stderr] Checking dtoa v0.4.7 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling standback v0.2.13 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling time v0.2.23 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking bytestring v0.1.5 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking addr2line v0.14.0 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking http v0.2.2 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking encoding_rs v0.8.26 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking hashlink v0.6.0 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking winping v0.10.1 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking signal-hook-registry v1.2.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot_core v0.8.1 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking socket2 v0.3.18 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling libsqlite3-sys v0.20.1 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Checking rusqlite v0.24.2 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking thiserror v1.0.22 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking actix-codec v0.3.0 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking trust-dns-proto v0.19.6 [INFO] [stderr] Checking actix-utils v2.0.0 [INFO] [stderr] Checking actix-server v1.0.4 [INFO] [stderr] Checking actix-tls v2.0.0 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking serde_json v1.0.60 [INFO] [stderr] Checking actix-router v0.2.5 [INFO] [stderr] Checking serde_yaml v0.8.15 [INFO] [stderr] Checking actix-testing v1.0.1 [INFO] [stderr] Checking trust-dns-resolver v0.19.6 [INFO] [stderr] Checking actix-connect v2.0.0 [INFO] [stderr] Checking actix-http v2.2.0 [INFO] [stderr] Checking awc v2.0.3 [INFO] [stderr] Checking actix-web v3.3.2 [INFO] [stderr] Checking actix-cors v0.5.3 [INFO] [stderr] Checking 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)]` 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)]` 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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] 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)]` 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)]` 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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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)]` 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: 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)]` 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] error: aborting due to previous error; 28 warnings emitted [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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to previous error; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e8423124289dfe1362cb7e5648908a967ac460a742725384173018fdec5f6b03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8423124289dfe1362cb7e5648908a967ac460a742725384173018fdec5f6b03", kill_on_drop: false }` [INFO] [stdout] e8423124289dfe1362cb7e5648908a967ac460a742725384173018fdec5f6b03