[INFO] cloning repository https://github.com/kduncan99/space_trader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kduncan99/space_trader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkduncan99%2Fspace_trader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkduncan99%2Fspace_trader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 16e5771921487fbd72cc2a426f0734ec5cf04251 [INFO] testing kduncan99/space_trader against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkduncan99%2Fspace_trader" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kduncan99/space_trader [INFO] finished tweaking git repo https://github.com/kduncan99/space_trader [INFO] tweaked toml for git repo https://github.com/kduncan99/space_trader written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kduncan99/space_trader on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kduncan99/space_trader 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fallible-iterator v0.3.0 [INFO] [stderr] Downloaded uuid v1.17.0 [INFO] [stderr] Downloaded fallible-streaming-iterator v0.1.9 [INFO] [stderr] Downloaded iana-time-zone-haiku v0.1.2 [INFO] [stderr] Downloaded hashlink v0.10.0 [INFO] [stderr] Downloaded windows-link v0.1.3 [INFO] [stderr] Downloaded windows-strings v0.4.2 [INFO] [stderr] Downloaded windows-registry v0.5.3 [INFO] [stderr] Downloaded windows-core v0.61.2 [INFO] [stderr] Downloaded android-tzdata v0.1.1 [INFO] [stderr] Downloaded windows-result v0.3.4 [INFO] [stderr] Downloaded windows-interface v0.59.1 [INFO] [stderr] Downloaded windows-implement v0.60.0 [INFO] [stderr] Downloaded system-configuration v0.6.1 [INFO] [stderr] Downloaded socket2 v0.5.10 [INFO] [stderr] Downloaded system-configuration-sys v0.6.0 [INFO] [stderr] Downloaded tokio-rustls v0.26.2 [INFO] [stderr] Downloaded rustc-demangle v0.1.25 [INFO] [stderr] Downloaded security-framework-sys v2.14.0 [INFO] [stderr] Downloaded iana-time-zone v0.1.63 [INFO] [stderr] Downloaded tempfile v3.20.0 [INFO] [stderr] Downloaded rustls-webpki v0.103.3 [INFO] [stderr] Downloaded schannel v0.1.27 [INFO] [stderr] Downloaded indexmap v2.10.0 [INFO] [stderr] Downloaded hyper-util v0.1.14 [INFO] [stderr] Downloaded rusqlite v0.36.0 [INFO] [stderr] Downloaded hyper v1.6.0 [INFO] [stderr] Downloaded reqwest v0.12.21 [INFO] [stderr] Downloaded h2 v0.4.11 [INFO] [stderr] Downloaded chrono v0.4.41 [INFO] [stderr] Downloaded syn v2.0.102 [INFO] [stderr] Downloaded rustls v0.23.28 [INFO] [stderr] Downloaded libsqlite3-sys v0.34.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 126498989b8608dc124ea6618850c647101fa239c147d6ef390fe1033e903cab [INFO] running `Command { std: "docker" "start" "-a" "126498989b8608dc124ea6618850c647101fa239c147d6ef390fe1033e903cab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "126498989b8608dc124ea6618850c647101fa239c147d6ef390fe1033e903cab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "126498989b8608dc124ea6618850c647101fa239c147d6ef390fe1033e903cab", kill_on_drop: false }` [INFO] [stdout] 126498989b8608dc124ea6618850c647101fa239c147d6ef390fe1033e903cab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d633bac35b8b8212376dca2afd215783f192d97782bf2595364492ff713c5659 [INFO] running `Command { std: "docker" "start" "-a" "d633bac35b8b8212376dca2afd215783f192d97782bf2595364492ff713c5659", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling libsqlite3-sys v0.34.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling rusqlite v0.36.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling ctrlc v3.4.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling h2 v0.4.11 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.21 [INFO] [stderr] Compiling space_trader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/arg_handler.rs:333:66 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn process(&self) -> Result>, (Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 333 - pub fn process(&self) -> Result>, (Vec)> { [INFO] [stdout] 333 + pub fn process(&self) -> Result>, Vec> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http_response.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 44 | HTTP_NO_CONTENT => "No Content", [INFO] [stdout] | --------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 48 | HTTP_NOT_FOUND => "Not Found", [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | fn handle_admin_quit(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn handle_message_poll(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:171:24 [INFO] [stdout] | [INFO] [stdout] 171 | fn handle_no_operation(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `arg_type` is never read [INFO] [stdout] --> src/arg_handler.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct ArgumentDescriptor { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 122 | entity_id: i32, [INFO] [stdout] 123 | arg_type: ValueType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_planet` is never used [INFO] [stdout] --> src/planet.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn create_planet(planet_name: String, location: SectorId, owner: PlayerId) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSION_TIMEOUT_SECONDS` is never used [INFO] [stdout] --> src/session.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const SESSION_TIMEOUT_SECONDS: u64 = 60; // TODO should be 5 minutes, maybe? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_user_timestamp` is never used [INFO] [stdout] --> src/user.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn update_user_timestamp(user_id: UserId) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/bin/init.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/bin/init.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | Ok(db) => {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `galaxy`, `message`, `planet`, `port`, `sector`, and `user` [INFO] [stdout] --> src/bin/trader.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | use space_trader::{database, galaxy, message, planet, port, sector, server, user}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/bin/trader.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let db = database::open(&ctx.unwrap().database_file_name); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::fallible_iterator::FallibleIterator` [INFO] [stdout] --> src/bin/cli.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rusqlite::fallible_iterator::FallibleIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `do_secure` and `address` are never read [INFO] [stdout] --> src/bin/trader.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Context { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | do_secure: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compose_url` is never used [INFO] [stdout] --> src/bin/trader.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 18 | fn compose_url(&self, path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ctrl_channel` is never used [INFO] [stdout] --> src/bin/trader.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn ctrl_channel() -> Result, ctrlc::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process` is never used [INFO] [stdout] --> src/bin/trader.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/trader.rs:143:68 [INFO] [stdout] | [INFO] [stdout] 143 | let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 143 - let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 143 + let addr_val = values.get(&ADDR_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/trader.rs:144:68 [INFO] [stdout] | [INFO] [stdout] 144 | let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 144 - let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 144 + let port_val = values.get(&PORT_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/trader.rs:145:82 [INFO] [stdout] | [INFO] [stdout] 145 | let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 145 - let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 145 + let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/cli.rs:194:68 [INFO] [stdout] | [INFO] [stdout] 194 | let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 194 - let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 194 + let addr_val = values.get(&ADDR_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/cli.rs:195:68 [INFO] [stdout] | [INFO] [stdout] 195 | let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 195 - let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 195 + let port_val = values.get(&PORT_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/cli.rs:196:80 [INFO] [stdout] | [INFO] [stdout] 196 | let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 196 - let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap().clone(); [INFO] [stdout] 196 + let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/cli.rs:197:78 [INFO] [stdout] | [INFO] [stdout] 197 | let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 197 - let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap().clone(); [INFO] [stdout] 197 + let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.52s [INFO] running `Command { std: "docker" "inspect" "d633bac35b8b8212376dca2afd215783f192d97782bf2595364492ff713c5659", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d633bac35b8b8212376dca2afd215783f192d97782bf2595364492ff713c5659", kill_on_drop: false }` [INFO] [stdout] d633bac35b8b8212376dca2afd215783f192d97782bf2595364492ff713c5659 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2ad813d55d779f0b294678392bd2cfb61f775e82d3fa8ae4d0211ee769cc4a4 [INFO] running `Command { std: "docker" "start" "-a" "e2ad813d55d779f0b294678392bd2cfb61f775e82d3fa8ae4d0211ee769cc4a4", kill_on_drop: false }` [INFO] [stderr] Compiling space_trader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/arg_handler.rs:333:66 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn process(&self) -> Result>, (Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 333 - pub fn process(&self) -> Result>, (Vec)> { [INFO] [stdout] 333 + pub fn process(&self) -> Result>, Vec> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http_response.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 44 | HTTP_NO_CONTENT => "No Content", [INFO] [stdout] | --------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 48 | HTTP_NOT_FOUND => "Not Found", [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | fn handle_admin_quit(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn handle_message_poll(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:171:24 [INFO] [stdout] | [INFO] [stdout] 171 | fn handle_no_operation(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `arg_type` is never read [INFO] [stdout] --> src/arg_handler.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct ArgumentDescriptor { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 122 | entity_id: i32, [INFO] [stdout] 123 | arg_type: ValueType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_planet` is never used [INFO] [stdout] --> src/planet.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn create_planet(planet_name: String, location: SectorId, owner: PlayerId) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSION_TIMEOUT_SECONDS` is never used [INFO] [stdout] --> src/session.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const SESSION_TIMEOUT_SECONDS: u64 = 60; // TODO should be 5 minutes, maybe? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_user_timestamp` is never used [INFO] [stdout] --> src/user.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn update_user_timestamp(user_id: UserId) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `galaxy`, `message`, `planet`, `port`, `sector`, and `user` [INFO] [stdout] --> src/bin/trader.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | use space_trader::{database, galaxy, message, planet, port, sector, server, user}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/bin/init.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/bin/init.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | Ok(db) => {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/arg_handler.rs:333:66 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn process(&self) -> Result>, (Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 333 - pub fn process(&self) -> Result>, (Vec)> { [INFO] [stdout] 333 + pub fn process(&self) -> Result>, Vec> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/bin/trader.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let db = database::open(&ctx.unwrap().database_file_name); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `do_secure` and `address` are never read [INFO] [stdout] --> src/bin/trader.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Context { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | do_secure: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: method `compose_url` is never used [INFO] [stdout] --> src/bin/trader.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 18 | fn compose_url(&self, path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: function `ctrl_channel` is never used [INFO] [stdout] --> src/bin/trader.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn ctrl_channel() -> Result, ctrlc::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: function `process` is never used [INFO] [stdout] --> src/bin/trader.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/trader.rs:143:68 [INFO] [stdout] | [INFO] [stdout] 143 | let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 143 - let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 143 + let addr_val = values.get(&ADDR_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/trader.rs:144:68 [INFO] [stdout] | [INFO] [stdout] 144 | let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 144 - let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 144 + let port_val = values.get(&PORT_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/trader.rs:145:82 [INFO] [stdout] | [INFO] [stdout] 145 | let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 145 - let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 145 + let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::fallible_iterator::FallibleIterator` [INFO] [stdout] --> src/bin/cli.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rusqlite::fallible_iterator::FallibleIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/cli.rs:194:68 [INFO] [stdout] | [INFO] [stdout] 194 | let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 194 - let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 194 + let addr_val = values.get(&ADDR_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/cli.rs:195:68 [INFO] [stdout] | [INFO] [stdout] 195 | let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 195 - let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stdout] 195 + let port_val = values.get(&PORT_SWITCH_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/cli.rs:196:80 [INFO] [stdout] | [INFO] [stdout] 196 | let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 196 - let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap().clone(); [INFO] [stdout] 196 + let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/cli.rs:197:78 [INFO] [stdout] | [INFO] [stdout] 197 | let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 197 - let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap().clone(); [INFO] [stdout] 197 + let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http_response.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 44 | HTTP_NO_CONTENT => "No Content", [INFO] [stdout] | --------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 48 | HTTP_NOT_FOUND => "Not Found", [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | fn handle_admin_quit(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn handle_message_poll(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/server.rs:171:24 [INFO] [stdout] | [INFO] [stdout] 171 | fn handle_no_operation(session: &Session) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `arg_type` is never read [INFO] [stdout] --> src/arg_handler.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct ArgumentDescriptor { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 122 | entity_id: i32, [INFO] [stdout] 123 | arg_type: ValueType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_planet` is never used [INFO] [stdout] --> src/planet.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn create_planet(planet_name: String, location: SectorId, owner: PlayerId) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSION_TIMEOUT_SECONDS` is never used [INFO] [stdout] --> src/session.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const SESSION_TIMEOUT_SECONDS: u64 = 60; // TODO should be 5 minutes, maybe? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_user_timestamp` is never used [INFO] [stdout] --> src/user.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn update_user_timestamp(user_id: UserId) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.54s [INFO] running `Command { std: "docker" "inspect" "e2ad813d55d779f0b294678392bd2cfb61f775e82d3fa8ae4d0211ee769cc4a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2ad813d55d779f0b294678392bd2cfb61f775e82d3fa8ae4d0211ee769cc4a4", kill_on_drop: false }` [INFO] [stdout] e2ad813d55d779f0b294678392bd2cfb61f775e82d3fa8ae4d0211ee769cc4a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6a927c6ce94450a41bbb8f4d83567a5746ae0bc7493bdb98c4bd4ac5f0fd45b4 [INFO] running `Command { std: "docker" "start" "-a" "6a927c6ce94450a41bbb8f4d83567a5746ae0bc7493bdb98c4bd4ac5f0fd45b4", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/arg_handler.rs:333:66 [INFO] [stderr] | [INFO] [stderr] 333 | pub fn process(&self) -> Result>, (Vec)> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 333 - pub fn process(&self) -> Result>, (Vec)> { [INFO] [stderr] 333 + pub fn process(&self) -> Result>, Vec> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/http_response.rs:48:13 [INFO] [stderr] | [INFO] [stderr] 44 | HTTP_NO_CONTENT => "No Content", [INFO] [stderr] | --------------- matches all the relevant values [INFO] [stderr] ... [INFO] [stderr] 48 | HTTP_NOT_FOUND => "Not Found", [INFO] [stderr] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `session` [INFO] [stderr] --> src/server.rs:157:22 [INFO] [stderr] | [INFO] [stderr] 157 | fn handle_admin_quit(session: &Session) -> HttpResponse { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `session` [INFO] [stderr] --> src/server.rs:163:24 [INFO] [stderr] | [INFO] [stderr] 163 | fn handle_message_poll(session: &Session) -> HttpResponse { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `session` [INFO] [stderr] --> src/server.rs:171:24 [INFO] [stderr] | [INFO] [stderr] 171 | fn handle_no_operation(session: &Session) -> HttpResponse { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stderr] [INFO] [stderr] warning: field `arg_type` is never read [INFO] [stderr] --> src/arg_handler.rs:123:5 [INFO] [stderr] | [INFO] [stderr] 121 | pub struct ArgumentDescriptor { [INFO] [stderr] | ------------------ field in this struct [INFO] [stderr] 122 | entity_id: i32, [INFO] [stderr] 123 | arg_type: ValueType, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `create_planet` is never used [INFO] [stderr] --> src/planet.rs:24:4 [INFO] [stderr] | [INFO] [stderr] 24 | fn create_planet(planet_name: String, location: SectorId, owner: PlayerId) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `SESSION_TIMEOUT_SECONDS` is never used [INFO] [stderr] --> src/session.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | const SESSION_TIMEOUT_SECONDS: u64 = 60; // TODO should be 5 minutes, maybe? [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `update_user_timestamp` is never used [INFO] [stderr] --> src/user.rs:144:4 [INFO] [stderr] | [INFO] [stderr] 144 | fn update_user_timestamp(user_id: UserId) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `space_trader` (lib) generated 9 warnings (run `cargo fix --lib -p space_trader` to apply 1 suggestion) [INFO] [stderr] warning: `space_trader` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] warning: unused import: `rusqlite::fallible_iterator::FallibleIterator` [INFO] [stderr] --> src/bin/cli.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use rusqlite::fallible_iterator::FallibleIterator; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/bin/cli.rs:194:68 [INFO] [stderr] | [INFO] [stderr] 194 | let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 194 - let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stderr] 194 + let addr_val = values.get(&ADDR_SWITCH_ID).unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/bin/cli.rs:195:68 [INFO] [stderr] | [INFO] [stderr] 195 | let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 195 - let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stderr] 195 + let port_val = values.get(&PORT_SWITCH_ID).unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/bin/cli.rs:196:80 [INFO] [stderr] | [INFO] [stderr] 196 | let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 196 - let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap().clone(); [INFO] [stderr] 196 + let user_name_val = values.get(&USER_NAME_ARGUMENT_ID).unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/bin/cli.rs:197:78 [INFO] [stderr] | [INFO] [stderr] 197 | let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 197 - let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap().clone(); [INFO] [stderr] 197 + let password_val = values.get(&PASSWORD_ARGUMENT_ID).unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `galaxy`, `message`, `planet`, `port`, `sector`, and `user` [INFO] [stderr] --> src/bin/trader.rs:6:30 [INFO] [stderr] | [INFO] [stderr] 6 | use space_trader::{database, galaxy, message, planet, port, sector, server, user}; [INFO] [stderr] | ^^^^^^ ^^^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db` [INFO] [stderr] --> src/bin/trader.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | let db = database::open(&ctx.unwrap().database_file_name); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `do_secure` and `address` are never read [INFO] [stderr] --> src/bin/trader.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 11 | struct Context { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 12 | do_secure: bool, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 13 | address: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `compose_url` is never used [INFO] [stderr] --> src/bin/trader.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 17 | impl Context { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] 18 | fn compose_url(&self, path: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ctrl_channel` is never used [INFO] [stderr] --> src/bin/trader.rs:42:4 [INFO] [stderr] | [INFO] [stderr] 42 | fn ctrl_channel() -> Result, ctrlc::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `process` is never used [INFO] [stderr] --> src/bin/trader.rs:51:4 [INFO] [stderr] | [INFO] [stderr] 51 | fn process() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/bin/trader.rs:143:68 [INFO] [stderr] | [INFO] [stderr] 143 | let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 143 - let addr_val = values.get(&ADDR_SWITCH_ID).unwrap().clone(); [INFO] [stderr] 143 + let addr_val = values.get(&ADDR_SWITCH_ID).unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/bin/trader.rs:144:68 [INFO] [stderr] | [INFO] [stderr] 144 | let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 144 - let port_val = values.get(&PORT_SWITCH_ID).unwrap().clone(); [INFO] [stderr] 144 + let port_val = values.get(&PORT_SWITCH_ID).unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1: 594:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs" }) } [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/bin/trader.rs:145:82 [INFO] [stderr] | [INFO] [stderr] 145 | let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Option` does not implement `Clone`, so calling `clone` on `&Option` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 145 - let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap().clone(); [INFO] [stderr] 145 + let dbfn_val = values.get(&DATABASE_FILE_NAME_SWITCH_ID).unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::process::exit` [INFO] [stderr] --> src/bin/init.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::process::exit; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db` [INFO] [stderr] --> src/bin/init.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | Ok(db) => {} [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `space_trader` (bin "cli" test) generated 5 warnings (run `cargo fix --bin "cli" --tests` to apply 4 suggestions) [INFO] [stderr] warning: `space_trader` (bin "trader" test) generated 9 warnings (run `cargo fix --bin "trader" --tests` to apply 4 suggestions) [INFO] [stderr] warning: `space_trader` (bin "init" test) generated 2 warnings (run `cargo fix --bin "init" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/space_trader-a605f5a541764f82) [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests src/bin/cli.rs (/opt/rustwide/target/debug/deps/cli-ea4ba3d6785a7914) [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/init.rs (/opt/rustwide/target/debug/deps/init-0f9f5a0eb3b8e7cb) [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/trader.rs (/opt/rustwide/target/debug/deps/trader-8921f5b9a44e182e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests space_trader [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/arg_handler.rs:333:66 [INFO] [stderr] | [INFO] [stderr] 333 | pub fn process(&self) -> Result>, (Vec)> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 333 - pub fn process(&self) -> Result>, (Vec)> { [INFO] [stderr] 333 + pub fn process(&self) -> Result>, Vec> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6a927c6ce94450a41bbb8f4d83567a5746ae0bc7493bdb98c4bd4ac5f0fd45b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a927c6ce94450a41bbb8f4d83567a5746ae0bc7493bdb98c4bd4ac5f0fd45b4", kill_on_drop: false }` [INFO] [stdout] 6a927c6ce94450a41bbb8f4d83567a5746ae0bc7493bdb98c4bd4ac5f0fd45b4