[INFO] cloning repository https://github.com/ChinaMars521/wtapi1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ChinaMars521/wtapi1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChinaMars521%2Fwtapi1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChinaMars521%2Fwtapi1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9b813303625aa3fc40d758a2ac99d3c9a5424694 [INFO] testing ChinaMars521/wtapi1 against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChinaMars521%2Fwtapi1" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ChinaMars521/wtapi1 on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ChinaMars521/wtapi1 [INFO] finished tweaking git repo https://github.com/ChinaMars521/wtapi1 [INFO] tweaked toml for git repo https://github.com/ChinaMars521/wtapi1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ChinaMars521/wtapi1 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" "+1.86.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zip v0.5.13 [INFO] [stderr] Downloaded antidote v1.0.0 [INFO] [stderr] Downloaded napi-sys v2.1.0 [INFO] [stderr] Downloaded enum-ordinalize v3.1.11 [INFO] [stderr] Downloaded concat-with v0.2.7 [INFO] [stderr] Downloaded async-recursion v1.0.0 [INFO] [stderr] Downloaded semver v1.0.6 [INFO] [stderr] Downloaded educe v0.4.19 [INFO] [stderr] Downloaded easy-http-request v0.2.13 [INFO] [stderr] Downloaded tracing v0.1.32 [INFO] [stderr] Downloaded httparse v1.6.0 [INFO] [stderr] Downloaded mio v0.8.1 [INFO] [stderr] Downloaded hyper v0.14.17 [INFO] [stderr] Downloaded h2 v0.3.12 [INFO] [stderr] Downloaded napi v2.2.0 [INFO] [stderr] Downloaded openssl v0.10.38 [INFO] [stderr] Downloaded syn v1.0.88 [INFO] [stderr] Downloaded tracing-core v0.1.23 [INFO] [stderr] Downloaded openssl-sys v0.9.72 [INFO] [stderr] Downloaded ipnet v2.4.0 [INFO] [stderr] Downloaded parking_lot_core v0.9.1 [INFO] [stderr] Downloaded convert_case v0.5.0 [INFO] [stderr] Downloaded napi-derive-backend v1.0.26 [INFO] [stderr] Downloaded napi-derive v2.2.0 [INFO] [stderr] Downloaded libc v0.2.120 [INFO] [stderr] Downloaded windows-sys v0.32.0 [INFO] [stderr] Downloaded napi-build v1.2.1 [INFO] [stderr] Downloaded hyper-native-tls v0.3.0 [INFO] [stderr] Downloaded slash-formatter v3.1.3 [INFO] [stderr] Downloaded windows v0.33.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1dca591391f72e81d833306bf0e288764d330ce5f2e9f953e48c2382c14a4b4 [INFO] running `Command { std: "docker" "start" "-a" "b1dca591391f72e81d833306bf0e288764d330ce5f2e9f953e48c2382c14a4b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1dca591391f72e81d833306bf0e288764d330ce5f2e9f953e48c2382c14a4b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1dca591391f72e81d833306bf0e288764d330ce5f2e9f953e48c2382c14a4b4", kill_on_drop: false }` [INFO] [stdout] b1dca591391f72e81d833306bf0e288764d330ce5f2e9f953e48c2382c14a4b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f60a4d3e3bb05f5cbbabc9dbab19c3d226f5a78a1248dac30a634fccb94d6fb [INFO] running `Command { std: "docker" "start" "-a" "8f60a4d3e3bb05f5cbbabc9dbab19c3d226f5a78a1248dac30a634fccb94d6fb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libc v0.2.120 [INFO] [stderr] Compiling syn v1.0.88 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling tracing-core v0.1.23 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling slash-formatter v3.1.3 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling convert_case v0.5.0 [INFO] [stderr] Compiling napi-build v1.2.1 [INFO] [stderr] Compiling antidote v1.0.0 [INFO] [stderr] Compiling concat-with v0.2.7 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling bzip2 v0.4.3 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling wtapi v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling napi-sys v2.1.0 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper-native-tls v0.3.0 [INFO] [stderr] Compiling napi-derive-backend v1.0.26 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling enum-ordinalize v3.1.11 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling async-recursion v1.0.0 [INFO] [stderr] Compiling napi-derive v2.2.0 [INFO] [stderr] Compiling educe v0.4.19 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling napi v2.2.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling zip v0.5.13 [INFO] [stderr] Compiling easy-http-request v0.2.13 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.12 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 224 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:235:1 [INFO] [stdout] | [INFO] [stdout] 235 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::value::Value` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::value::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/lib.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> src/lib.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | use std::io::{copy, Read, Seek, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:64:52 [INFO] [stdout] | [INFO] [stdout] 64 | async fn get_calss_list_out_text(url:&str)->Result<(HashMap),reqwest::Error>{ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - async fn get_calss_list_out_text(url:&str)->Result<(HashMap),reqwest::Error>{ [INFO] [stdout] 64 + async fn get_calss_list_out_text(url:&str)->Result,reqwest::Error>{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/lib.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | async fn post(url:String,body:HashMap) -> Result, reqwest::Error>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/lib.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | async fn post(url:String,body:HashMap) -> Result, reqwest::Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Seek` [INFO] [stdout] --> src/lib.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | use std::io::{copy, Read, Seek, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | fn extract(test: &Path, mut target: &Path) { [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 variable: `path` [INFO] [stdout] --> src/lib.rs:316:34 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn wtExtractZip(test: String,path:String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:324:7 [INFO] [stdout] | [INFO] [stdout] 324 | let mut my_str1 = my_str; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_dir` is never used [INFO] [stdout] --> src/lib.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn create_dir(path: &Path) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wtDownload` should have a snake case name [INFO] [stdout] --> src/lib.rs:225:14 [INFO] [stdout] | [INFO] [stdout] 225 | pub async fn wtDownload(dm:DonConfig) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `wt_download` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:229:3 [INFO] [stdout] | [INFO] [stdout] 229 | fs::create_dir_all( Path::new(&config.path)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 229 | let _ = fs::create_dir_all( Path::new(&config.path)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Configop` should have a snake case name [INFO] [stdout] --> src/lib.rs:236:18 [INFO] [stdout] | [INFO] [stdout] 236 | async fn wtaxios(Configop:Config)->Pet1 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `configop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:286:7 [INFO] [stdout] | [INFO] [stdout] 286 | / fs::create_dir_all(target).map_err(|e| { [INFO] [stdout] 287 | | println!("{}", e); [INFO] [stdout] 288 | | }); [INFO] [stdout] | |________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 286 | let _ = fs::create_dir_all(target).map_err(|e| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:309:11 [INFO] [stdout] | [INFO] [stdout] 309 | copy(&mut file, &mut target_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 309 | let _ = copy(&mut file, &mut target_file); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wtExtractZip` should have a snake case name [INFO] [stdout] --> src/lib.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn wtExtractZip(test: String,path:String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `wt_extract_zip` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.69s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "8f60a4d3e3bb05f5cbbabc9dbab19c3d226f5a78a1248dac30a634fccb94d6fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f60a4d3e3bb05f5cbbabc9dbab19c3d226f5a78a1248dac30a634fccb94d6fb", kill_on_drop: false }` [INFO] [stdout] 8f60a4d3e3bb05f5cbbabc9dbab19c3d226f5a78a1248dac30a634fccb94d6fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0e497db69b57d7d79b38f12f6e1a7b04e665e625e854464208516880995b1a3 [INFO] running `Command { std: "docker" "start" "-a" "c0e497db69b57d7d79b38f12f6e1a7b04e665e625e854464208516880995b1a3", kill_on_drop: false }` [INFO] [stderr] Compiling wtapi v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 224 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:235:1 [INFO] [stdout] | [INFO] [stdout] 235 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `noop` [INFO] [stdout] --> src/lib.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | #[napi] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::value::Value` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::value::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/lib.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> src/lib.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | use std::io::{copy, Read, Seek, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:64:52 [INFO] [stdout] | [INFO] [stdout] 64 | async fn get_calss_list_out_text(url:&str)->Result<(HashMap),reqwest::Error>{ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - async fn get_calss_list_out_text(url:&str)->Result<(HashMap),reqwest::Error>{ [INFO] [stdout] 64 + async fn get_calss_list_out_text(url:&str)->Result,reqwest::Error>{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/lib.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | async fn post(url:String,body:HashMap) -> Result, reqwest::Error>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/lib.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | async fn post(url:String,body:HashMap) -> Result, reqwest::Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Seek` [INFO] [stdout] --> src/lib.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | use std::io::{copy, Read, Seek, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | fn extract(test: &Path, mut target: &Path) { [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 variable: `path` [INFO] [stdout] --> src/lib.rs:316:34 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn wtExtractZip(test: String,path:String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:324:7 [INFO] [stdout] | [INFO] [stdout] 324 | let mut my_str1 = my_str; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/lib.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn sum(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wtapi` is never used [INFO] [stdout] --> src/lib.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn wtapi(url: String) -> Pet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/lib.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | async fn get(url:&str) -> Result, reqwest::Error>{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_calss_list_out_text` is never used [INFO] [stdout] --> src/lib.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | async fn get_calss_list_out_text(url:&str)->Result<(HashMap),reqwest::Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post` is never used [INFO] [stdout] --> src/lib.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | async fn post(url:String,body:HashMap) -> Result, reqwest::Error>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wtaxios` is never used [INFO] [stdout] --> src/lib.rs:236:10 [INFO] [stdout] | [INFO] [stdout] 236 | async fn wtaxios(Configop:Config)->Pet1 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_dir` is never used [INFO] [stdout] --> src/lib.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn create_dir(path: &Path) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wtDownload` should have a snake case name [INFO] [stdout] --> src/lib.rs:225:14 [INFO] [stdout] | [INFO] [stdout] 225 | pub async fn wtDownload(dm:DonConfig) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `wt_download` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:229:3 [INFO] [stdout] | [INFO] [stdout] 229 | fs::create_dir_all( Path::new(&config.path)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 229 | let _ = fs::create_dir_all( Path::new(&config.path)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Configop` should have a snake case name [INFO] [stdout] --> src/lib.rs:236:18 [INFO] [stdout] | [INFO] [stdout] 236 | async fn wtaxios(Configop:Config)->Pet1 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `configop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:286:7 [INFO] [stdout] | [INFO] [stdout] 286 | / fs::create_dir_all(target).map_err(|e| { [INFO] [stdout] 287 | | println!("{}", e); [INFO] [stdout] 288 | | }); [INFO] [stdout] | |________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 286 | let _ = fs::create_dir_all(target).map_err(|e| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:309:11 [INFO] [stdout] | [INFO] [stdout] 309 | copy(&mut file, &mut target_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 309 | let _ = copy(&mut file, &mut target_file); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wtExtractZip` should have a snake case name [INFO] [stdout] --> src/lib.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn wtExtractZip(test: String,path:String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `wt_extract_zip` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "c0e497db69b57d7d79b38f12f6e1a7b04e665e625e854464208516880995b1a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0e497db69b57d7d79b38f12f6e1a7b04e665e625e854464208516880995b1a3", kill_on_drop: false }` [INFO] [stdout] c0e497db69b57d7d79b38f12f6e1a7b04e665e625e854464208516880995b1a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3fd55accc503af7a2521fc2b513057fb36c828db320f291a3ffe3483f1625a3a [INFO] running `Command { std: "docker" "start" "-a" "3fd55accc503af7a2521fc2b513057fb36c828db320f291a3ffe3483f1625a3a", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `noop` [INFO] [stderr] --> src/lib.rs:40:1 [INFO] [stderr] | [INFO] [stderr] 40 | #[napi] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `noop` [INFO] [stderr] --> src/lib.rs:44:1 [INFO] [stderr] | [INFO] [stderr] 44 | #[napi] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `noop` [INFO] [stderr] --> src/lib.rs:224:1 [INFO] [stderr] | [INFO] [stderr] 224 | #[napi] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `noop` [INFO] [stderr] --> src/lib.rs:235:1 [INFO] [stderr] | [INFO] [stderr] 235 | #[napi] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `noop` [INFO] [stderr] --> src/lib.rs:315:1 [INFO] [stderr] | [INFO] [stderr] 315 | #[napi] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `napi` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `napi` may come from an old version of the `napi_derive` crate, try updating your dependency with `cargo update -p napi_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::value::Value` [INFO] [stderr] --> src/lib.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use serde_json::value::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `PathBuf` [INFO] [stderr] --> src/lib.rs:17:23 [INFO] [stderr] | [INFO] [stderr] 17 | use std::path::{Path, PathBuf}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Read` and `Write` [INFO] [stderr] --> src/lib.rs:24:21 [INFO] [stderr] | [INFO] [stderr] 24 | use std::io::{copy, Read, Seek, Write}; [INFO] [stderr] | ^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/lib.rs:64:52 [INFO] [stderr] | [INFO] [stderr] 64 | async fn get_calss_list_out_text(url:&str)->Result<(HashMap),reqwest::Error>{ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 64 - async fn get_calss_list_out_text(url:&str)->Result<(HashMap),reqwest::Error>{ [INFO] [stderr] 64 + async fn get_calss_list_out_text(url:&str)->Result,reqwest::Error>{ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `url` [INFO] [stderr] --> src/lib.rs:84:15 [INFO] [stderr] | [INFO] [stderr] 84 | async fn post(url:String,body:HashMap) -> Result, reqwest::Error>{ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `body` [INFO] [stderr] --> src/lib.rs:84:26 [INFO] [stderr] | [INFO] [stderr] 84 | async fn post(url:String,body:HashMap) -> Result, reqwest::Error>{ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stderr] [INFO] [stderr] warning: unused import: `Seek` [INFO] [stderr] --> src/lib.rs:24:27 [INFO] [stderr] | [INFO] [stderr] 24 | use std::io::{copy, Read, Seek, Write}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:279:25 [INFO] [stderr] | [INFO] [stderr] 279 | fn extract(test: &Path, mut target: &Path) { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:316:34 [INFO] [stderr] | [INFO] [stderr] 316 | pub fn wtExtractZip(test: String,path:String) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:324:7 [INFO] [stderr] | [INFO] [stderr] 324 | let mut my_str1 = my_str; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function `sum` is never used [INFO] [stderr] --> src/lib.rs:41:4 [INFO] [stderr] | [INFO] [stderr] 41 | fn sum(a: i32, b: i32) -> i32 { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `wtapi` is never used [INFO] [stderr] --> src/lib.rs:45:4 [INFO] [stderr] | [INFO] [stderr] 45 | fn wtapi(url: String) -> Pet { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get` is never used [INFO] [stderr] --> src/lib.rs:59:10 [INFO] [stderr] | [INFO] [stderr] 59 | async fn get(url:&str) -> Result, reqwest::Error>{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_calss_list_out_text` is never used [INFO] [stderr] --> src/lib.rs:64:10 [INFO] [stderr] | [INFO] [stderr] 64 | async fn get_calss_list_out_text(url:&str)->Result<(HashMap),reqwest::Error>{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `post` is never used [INFO] [stderr] --> src/lib.rs:84:10 [INFO] [stderr] | [INFO] [stderr] 84 | async fn post(url:String,body:HashMap) -> Result, reqwest::Error>{ [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `wtaxios` is never used [INFO] [stderr] --> src/lib.rs:236:10 [INFO] [stderr] | [INFO] [stderr] 236 | async fn wtaxios(Configop:Config)->Pet1 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_dir` is never used [INFO] [stderr] --> src/lib.rs:272:4 [INFO] [stderr] | [INFO] [stderr] 272 | fn create_dir(path: &Path) -> Result<(), std::io::Error> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `wtDownload` should have a snake case name [INFO] [stderr] --> src/lib.rs:225:14 [INFO] [stderr] | [INFO] [stderr] 225 | pub async fn wtDownload(dm:DonConfig) { [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `wt_download` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:229:3 [INFO] [stderr] | [INFO] [stderr] 229 | fs::create_dir_all( Path::new(&config.path)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 229 | let _ = fs::create_dir_all( Path::new(&config.path)); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: variable `Configop` should have a snake case name [INFO] [stderr] --> src/lib.rs:236:18 [INFO] [stderr] | [INFO] [stderr] 236 | async fn wtaxios(Configop:Config)->Pet1 { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `configop` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:286:7 [INFO] [stderr] | [INFO] [stderr] 286 | / fs::create_dir_all(target).map_err(|e| { [INFO] [stderr] 287 | | println!("{}", e); [INFO] [stderr] 288 | | }); [INFO] [stderr] | |________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 286 | let _ = fs::create_dir_all(target).map_err(|e| { [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:309:11 [INFO] [stderr] | [INFO] [stderr] 309 | copy(&mut file, &mut target_file); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 309 | let _ = copy(&mut file, &mut target_file); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: function `wtExtractZip` should have a snake case name [INFO] [stderr] --> src/lib.rs:316:8 [INFO] [stderr] | [INFO] [stderr] 316 | pub fn wtExtractZip(test: String,path:String) { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `wt_extract_zip` [INFO] [stderr] [INFO] [stderr] warning: `wtapi` (lib test) generated 28 warnings (run `cargo fix --lib -p wtapi --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wtapi-79f6fb0697c76a93) [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" "3fd55accc503af7a2521fc2b513057fb36c828db320f291a3ffe3483f1625a3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fd55accc503af7a2521fc2b513057fb36c828db320f291a3ffe3483f1625a3a", kill_on_drop: false }` [INFO] [stdout] 3fd55accc503af7a2521fc2b513057fb36c828db320f291a3ffe3483f1625a3a