[INFO] cloning repository https://github.com/eksd33/RHD [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eksd33/RHD" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feksd33%2FRHD", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feksd33%2FRHD'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 72baa5e261c06d53426ea880b2a6d45bc75a0c03 [INFO] building eksd33/RHD against master#461e8078010433ff7de2db2aaae8a3cfb0847215 for pr-94962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feksd33%2FRHD" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eksd33/RHD on toolchain 461e8078010433ff7de2db2aaae8a3cfb0847215 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eksd33/RHD [INFO] finished tweaking git repo https://github.com/eksd33/RHD [INFO] tweaked toml for git repo https://github.com/eksd33/RHD written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/eksd33/RHD already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: lib.clap [INFO] [stderr] warning: unused manifest key: lib.config [INFO] [stderr] warning: unused manifest key: lib.postgres [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio v1.9.0 [INFO] [stderr] Downloaded cli-grid v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd5a84f482f6727bdae21ae4f25fc81be7a665d84e8062288e4d204cbc1c93a0 [INFO] running `Command { std: "docker" "start" "-a" "fd5a84f482f6727bdae21ae4f25fc81be7a665d84e8062288e4d204cbc1c93a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd5a84f482f6727bdae21ae4f25fc81be7a665d84e8062288e4d204cbc1c93a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd5a84f482f6727bdae21ae4f25fc81be7a665d84e8062288e4d204cbc1c93a0", kill_on_drop: false }` [INFO] [stdout] fd5a84f482f6727bdae21ae4f25fc81be7a665d84e8062288e4d204cbc1c93a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9108b96c358d1ad26739d9bd8e89bb5dd8874e22878c18be73291e0caeb93ba [INFO] running `Command { std: "docker" "start" "-a" "d9108b96c358d1ad26739d9bd8e89bb5dd8874e22878c18be73291e0caeb93ba", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: lib.clap [INFO] [stderr] warning: unused manifest key: lib.config [INFO] [stderr] warning: unused manifest key: lib.postgres [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling futures-core v0.3.16 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling futures-channel v0.3.16 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-sink v0.3.16 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-task v0.3.16 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling futures-io v0.3.16 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling siphasher v0.3.5 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling rust-ini v0.13.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling cli-grid v0.1.2 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling futures-macro v0.3.16 [INFO] [stderr] Compiling futures-util v0.3.16 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling postgres-protocol v0.6.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling postgres-types v0.2.1 [INFO] [stderr] Compiling serde-hjson v0.9.1 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling futures-executor v0.3.16 [INFO] [stderr] Compiling futures v0.3.16 [INFO] [stderr] Compiling tokio-postgres v0.7.2 [INFO] [stderr] Compiling postgres v0.19.1 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling rhd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `read_to_string` [INFO] [stdout] --> src/helpers.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs::{File, read_to_string}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/helpers.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | use url::{Url, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/db_logic.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Write, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/helpers.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{self, Read, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_comb_present` [INFO] [stdout] --> src/db_logic.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | let path_comb_present = cli_matches.is_present("path comb"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_comb_present` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cli_parse.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | let mut cli_args = App::new("Rusty hunter - database") [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: unused borrow that must be used [INFO] [stdout] --> src/helpers.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | &status_code_query.push_str(q.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 150 | let _ = &status_code_query.push_str(q.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/helpers.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | &status_code_query.push_str(q.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 153 | let _ = &status_code_query.push_str(q.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use postgres::{Client, NoTls}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `check_for_table` [INFO] [stdout] --> src/main.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use rhd::helpers::{db_connect, check_for_table}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 56.73s [INFO] running `Command { std: "docker" "inspect" "d9108b96c358d1ad26739d9bd8e89bb5dd8874e22878c18be73291e0caeb93ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9108b96c358d1ad26739d9bd8e89bb5dd8874e22878c18be73291e0caeb93ba", kill_on_drop: false }` [INFO] [stdout] d9108b96c358d1ad26739d9bd8e89bb5dd8874e22878c18be73291e0caeb93ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62043fde91879b2f5d20b19d156459a3681a00fd186932ba316df2c2d8f0be16 [INFO] running `Command { std: "docker" "start" "-a" "62043fde91879b2f5d20b19d156459a3681a00fd186932ba316df2c2d8f0be16", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: lib.clap [INFO] [stderr] warning: unused manifest key: lib.config [INFO] [stderr] warning: unused manifest key: lib.postgres [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: unused import: `read_to_string` [INFO] [stdout] --> src/helpers.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs::{File, read_to_string}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/helpers.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | use url::{Url, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/db_logic.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Write, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/helpers.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{self, Read, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_comb_present` [INFO] [stdout] --> src/db_logic.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | let path_comb_present = cli_matches.is_present("path comb"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_comb_present` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cli_parse.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | let mut cli_args = App::new("Rusty hunter - database") [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: unused borrow that must be used [INFO] [stdout] --> src/helpers.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | &status_code_query.push_str(q.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 150 | let _ = &status_code_query.push_str(q.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/helpers.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | &status_code_query.push_str(q.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 153 | let _ = &status_code_query.push_str(q.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rhd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use postgres::{Client, NoTls}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `check_for_table` [INFO] [stdout] --> src/main.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use rhd::helpers::{db_connect, check_for_table}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_to_string` [INFO] [stdout] --> src/helpers.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs::{File, read_to_string}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/helpers.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | use url::{Url, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/db_logic.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Write, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DatabaseSettings` [INFO] [stdout] --> src/db_logic.rs:291:42 [INFO] [stdout] | [INFO] [stdout] 291 | use crate::configuration::{get_conf, DatabaseSettings}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/helpers.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{self, Read, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_comb_present` [INFO] [stdout] --> src/db_logic.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | let path_comb_present = cli_matches.is_present("path comb"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_comb_present` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cli_parse.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | let mut cli_args = App::new("Rusty hunter - database") [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: unused borrow that must be used [INFO] [stdout] --> src/helpers.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | &status_code_query.push_str(q.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 150 | let _ = &status_code_query.push_str(q.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/helpers.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | &status_code_query.push_str(q.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 153 | let _ = &status_code_query.push_str(q.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 16.58s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/rhd-5f8e03049058e4c1) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/rhd-f425c83efdea0d8b) [INFO] running `Command { std: "docker" "inspect" "62043fde91879b2f5d20b19d156459a3681a00fd186932ba316df2c2d8f0be16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62043fde91879b2f5d20b19d156459a3681a00fd186932ba316df2c2d8f0be16", kill_on_drop: false }` [INFO] [stdout] 62043fde91879b2f5d20b19d156459a3681a00fd186932ba316df2c2d8f0be16