[INFO] cloning repository https://github.com/IlTeo285/spaggiari-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IlTeo285/spaggiari-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIlTeo285%2Fspaggiari-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIlTeo285%2Fspaggiari-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 31f5eb199bd90d65315916bc6beff7deab2d1e81 [INFO] testing IlTeo285/spaggiari-rs against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIlTeo285%2Fspaggiari-rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/IlTeo285/spaggiari-rs [INFO] finished tweaking git repo https://github.com/IlTeo285/spaggiari-rs [INFO] tweaked toml for git repo https://github.com/IlTeo285/spaggiari-rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/IlTeo285/spaggiari-rs on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/IlTeo285/spaggiari-rs 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b7716c376b8255adb1aad762dc61d4f5e092286342be35855d40ced8ac927b4 [INFO] running `Command { std: "docker" "start" "-a" "6b7716c376b8255adb1aad762dc61d4f5e092286342be35855d40ced8ac927b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b7716c376b8255adb1aad762dc61d4f5e092286342be35855d40ced8ac927b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b7716c376b8255adb1aad762dc61d4f5e092286342be35855d40ced8ac927b4", kill_on_drop: false }` [INFO] [stdout] 6b7716c376b8255adb1aad762dc61d4f5e092286342be35855d40ced8ac927b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7011aa97560fd4d79a33075b1417c9cb3df5437a404e5ba04eca45457f945e4a [INFO] running `Command { std: "docker" "start" "-a" "7011aa97560fd4d79a33075b1417c9cb3df5437a404e5ba04eca45457f945e4a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling find-msvc-tools v0.1.3 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling psl-types v2.0.11 [INFO] [stderr] Compiling litrs v0.4.2 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling servo_arc v0.4.1 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling web_atoms v0.1.3 [INFO] [stderr] Compiling unicode-width v0.2.1 [INFO] [stderr] Compiling clap_builder v4.5.53 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling getopts v0.2.24 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling ego-tree v0.10.0 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling csv v1.4.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling match_token v0.35.0 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling cssparser v0.35.0 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling selectors v0.31.0 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling clap v4.5.53 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling markup5ever v0.35.0 [INFO] [stderr] Compiling html5ever v0.35.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling publicsuffix v2.3.0 [INFO] [stderr] Compiling scraper v0.24.0 [INFO] [stderr] Compiling cookie_store v0.21.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.12.24 [INFO] [stderr] Compiling spaggiari-rs v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.21s [INFO] running `Command { std: "docker" "inspect" "7011aa97560fd4d79a33075b1417c9cb3df5437a404e5ba04eca45457f945e4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7011aa97560fd4d79a33075b1417c9cb3df5437a404e5ba04eca45457f945e4a", kill_on_drop: false }` [INFO] [stdout] 7011aa97560fd4d79a33075b1417c9cb3df5437a404e5ba04eca45457f945e4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82c2a9be18b3ac77ffeb57ef3456e76843c55cc20069e76bf277c12c0c25e3b1 [INFO] running `Command { std: "docker" "start" "-a" "82c2a9be18b3ac77ffeb57ef3456e76843c55cc20069e76bf277c12c0c25e3b1", kill_on_drop: false }` [INFO] [stderr] Compiling spaggiari-rs v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.87s [INFO] running `Command { std: "docker" "inspect" "82c2a9be18b3ac77ffeb57ef3456e76843c55cc20069e76bf277c12c0c25e3b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82c2a9be18b3ac77ffeb57ef3456e76843c55cc20069e76bf277c12c0c25e3b1", kill_on_drop: false }` [INFO] [stdout] 82c2a9be18b3ac77ffeb57ef3456e76843c55cc20069e76bf277c12c0c25e3b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ffa0971d865d0e937b72ed37ffec661e894d0da472a795fb2742ee850e866898 [INFO] running `Command { std: "docker" "start" "-a" "ffa0971d865d0e937b72ed37ffec661e894d0da472a795fb2742ee850e866898", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/spaggiari_rs-ccc4e11f8e5623e1) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test error::tests::test_error_display ... ok [INFO] [stdout] test error::tests::test_error_from_string ... ok [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/spaggiari_cli-db593a7ba457441b) [INFO] [stdout] test tests::test_create_client ... ok [INFO] [stderr] Doc-tests spaggiari_rs [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [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 6 tests [INFO] [stdout] test src/lib.rs - SpaggiariSession::new (line 68) ... FAILED [INFO] [stdout] test src/lib.rs - SpaggiariSession::from_token (line 96) ... FAILED [INFO] [stdout] test src/lib.rs - SpaggiariSession::download_file_bytes (line 177) ... FAILED [INFO] [stdout] test src/lib.rs - SpaggiariSession::download_allegati_bytes (line 197) ... FAILED [INFO] [stdout] test src/lib.rs - SpaggiariSession::get_bacheca (line 133) ... FAILED [INFO] [stdout] test src/lib.rs - create_client (line 32) ... ok [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - SpaggiariSession::new (line 68) stdout ---- [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/lib.rs:72:67 [INFO] [stdout] | [INFO] [stdout] 72 | let session = SpaggiariSession::new("CODICE_FISCALE", "PASSWORD").unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 72 | let session = SpaggiariSession::new("CODICE_FISCALE", "PASSWORD").await.unwrap(); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SpaggiariSession::from_token (line 96) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | let session = SpaggiariSession::from_token("token_esistente").unwrap(); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:101:18 [INFO] [stdout] | [INFO] [stdout] 101 | pub async fn from_token(session_token: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 100 | let session = SpaggiariSession::from_token("token_esistente".to_string()).unwrap(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/lib.rs:100:63 [INFO] [stdout] | [INFO] [stdout] 100 | let session = SpaggiariSession::from_token("token_esistente").unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 100 | let session = SpaggiariSession::from_token("token_esistente").await.unwrap(); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SpaggiariSession::download_file_bytes (line 177) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:178:27 [INFO] [stdout] | [INFO] [stdout] 178 | let (filename, content) = session.download_file_bytes("https://...").await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:178:70 [INFO] [stdout] | [INFO] [stdout] 177 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_177_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 178 | let (filename, content) = session.download_file_bytes("https://...").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:179:47 [INFO] [stdout] | [INFO] [stdout] 179 | println!("Scaricato {} ({} bytes)", filename, content.len()); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SpaggiariSession::download_allegati_bytes (line 197) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | let comunicazione = session.get_comunicazione("123").await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let files = session.download_allegati_bytes(&comunicazione.allegati).await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:198:54 [INFO] [stdout] | [INFO] [stdout] 197 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_197_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 198 | let comunicazione = session.get_comunicazione("123").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:199:70 [INFO] [stdout] | [INFO] [stdout] 197 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_197_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 198 | let comunicazione = session.get_comunicazione("123").await?; [INFO] [stdout] 199 | let files = session.download_allegati_bytes(&comunicazione.allegati).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:201:51 [INFO] [stdout] | [INFO] [stdout] 201 | println!("Scaricato {} ({} bytes)", filename, content.len()); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SpaggiariSession::get_bacheca (line 133) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SpaggiariSession` [INFO] [stdout] --> src/lib.rs:134:15 [INFO] [stdout] | [INFO] [stdout] 134 | let session = SpaggiariSession::new("username", "password").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `SpaggiariSession` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 133 + use spaggiari_rs::SpaggiariSession; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - SpaggiariSession::download_allegati_bytes (line 197) [INFO] [stdout] src/lib.rs - SpaggiariSession::download_file_bytes (line 177) [INFO] [stdout] src/lib.rs - SpaggiariSession::from_token (line 96) [INFO] [stdout] src/lib.rs - SpaggiariSession::get_bacheca (line 133) [INFO] [stdout] src/lib.rs - SpaggiariSession::new (line 68) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.54s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ffa0971d865d0e937b72ed37ffec661e894d0da472a795fb2742ee850e866898", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffa0971d865d0e937b72ed37ffec661e894d0da472a795fb2742ee850e866898", kill_on_drop: false }` [INFO] [stdout] ffa0971d865d0e937b72ed37ffec661e894d0da472a795fb2742ee850e866898