[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/e51a32d4053ee872bf4fff5ab8077bd825e3e97d against master#b3bd7058c139e71bae0862ef8f8ac936208873e9 for pr-123752 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2Fip_manager_server" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhoujun681/ip_manager_server on toolchain b3bd7058c139e71bae0862ef8f8ac936208873e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "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-5-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_yaml v0.8.15 [INFO] [stderr] Downloaded winping v0.10.1 [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-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] efc10697384f2c02caf8f3e19eaf555e7539120bb7417ae9e7e9755987facb4f [INFO] running `Command { std: "docker" "start" "-a" "efc10697384f2c02caf8f3e19eaf555e7539120bb7417ae9e7e9755987facb4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "efc10697384f2c02caf8f3e19eaf555e7539120bb7417ae9e7e9755987facb4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efc10697384f2c02caf8f3e19eaf555e7539120bb7417ae9e7e9755987facb4f", kill_on_drop: false }` [INFO] [stdout] efc10697384f2c02caf8f3e19eaf555e7539120bb7417ae9e7e9755987facb4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1bfa9fecd4b0ada4e61f4aad316a69110d18f1835440246e4402597041632202 [INFO] running `Command { std: "docker" "start" "-a" "1bfa9fecd4b0ada4e61f4aad316a69110d18f1835440246e4402597041632202", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.55 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Checking smallvec v1.5.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking signal-hook-registry v1.2.2 [INFO] [stderr] Checking parking_lot_core v0.8.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling standback v0.2.13 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking copyless v0.1.5 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Checking ahash v0.4.7 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling const_fn v0.4.4 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Checking http v0.2.2 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling time v0.2.23 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking addr2line v0.14.0 [INFO] [stderr] Checking pin-project-lite v0.2.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking socket2 v0.3.18 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking bytestring v0.1.5 [INFO] [stderr] Compiling winapi_forked_icmpapi v0.3.7 [INFO] [stderr] Checking hashlink v0.6.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling libsqlite3-sys v0.20.1 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Checking dtoa v0.4.7 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking winping v0.10.1 [INFO] [stderr] Checking regex v1.4.2 [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] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking thiserror v1.0.22 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [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] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking actix-rt v1.1.1 [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 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 rusqlite v0.24.2 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking actix-router v0.2.5 [INFO] [stderr] Checking serde_yaml v0.8.15 [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] 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: the item `serde_yaml` is imported redundantly [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use serde_yaml; [INFO] [stdout] | ^^^^^^^^^^ the item `serde_yaml` is already defined by prelude [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: 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: the item `serde_yaml` is imported redundantly [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use serde_yaml; [INFO] [stdout] | ^^^^^^^^^^ the item `serde_yaml` is already defined by prelude [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` 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: 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: 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: 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: 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: 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: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:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | if (ip.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` 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: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: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: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: 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: 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: 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)]` on by default [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: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: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)]` 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: unused variable: `b` [INFO] [stdout] --> src/my_sqlite_dao.rs:125:13 [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: 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)]` 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: unreachable pattern [INFO] [stdout] --> src/my_sqlite_dao.rs:189:21 [INFO] [stdout] | [INFO] [stdout] 189 | Ok(_) => None, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` 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: unused variable: `b` [INFO] [stdout] --> src/my_sqlite_dao.rs:125:13 [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: 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: value assigned to `ResultFlag` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:400:13 [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)]` 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:13 [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: 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: value assigned to `department_count` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:413:13 [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:13 [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: unreachable pattern [INFO] [stdout] --> src/my_sqlite_dao.rs:189:21 [INFO] [stdout] | [INFO] [stdout] 189 | Ok(_) => None, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` 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: 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: 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: 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: value assigned to `ResultFlag` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:400:13 [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)]` 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:13 [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:13 [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:13 [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: value assigned to `result` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:662:13 [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] | ^^^^^^ [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: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: 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: 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: 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: value assigned to `result` is never read [INFO] [stdout] --> src/my_sqlite_dao.rs:698:13 [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] | ^^^^^^ [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:662:13 [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] | ^^^^^^ [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: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:698:13 [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] | ^^^^^^ [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: 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] 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] error: aborting due to 1 previous error; 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 54 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` (bin "IpManagerServer") due to 2 previous errors; 54 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `IpManagerServer` (bin "IpManagerServer" test) due to 2 previous errors; 54 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1bfa9fecd4b0ada4e61f4aad316a69110d18f1835440246e4402597041632202", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bfa9fecd4b0ada4e61f4aad316a69110d18f1835440246e4402597041632202", kill_on_drop: false }` [INFO] [stdout] 1bfa9fecd4b0ada4e61f4aad316a69110d18f1835440246e4402597041632202