[INFO] fetching crate rate_my_professor_api_rs 0.1.5... [INFO] testing rate_my_professor_api_rs-0.1.5 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate rate_my_professor_api_rs 0.1.5 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate rate_my_professor_api_rs 0.1.5 [INFO] finished tweaking crates.io crate rate_my_professor_api_rs 0.1.5 [INFO] tweaked toml for crates.io crate rate_my_professor_api_rs 0.1.5 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rate_my_professor_api_rs 0.1.5 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rate_my_professor_api_rs 0.1.5 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded filepath v0.2.0 [INFO] [stderr] Downloaded tokio-openssl v0.6.5 [INFO] [stderr] Downloaded actix-tls v3.4.0 [INFO] [stderr] Downloaded cc v1.2.7 [INFO] [stderr] Downloaded awc v3.5.1 [INFO] [stderr] Downloaded serde_json v1.0.135 [INFO] [stderr] Downloaded syn v2.0.95 [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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0bd07d4f90a40db0dec4c25aac77614300dfe4b9ffd7ac96da7bea23bc7b1796 [INFO] running `Command { std: "docker" "start" "-a" "0bd07d4f90a40db0dec4c25aac77614300dfe4b9ffd7ac96da7bea23bc7b1796", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bd07d4f90a40db0dec4c25aac77614300dfe4b9ffd7ac96da7bea23bc7b1796", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bd07d4f90a40db0dec4c25aac77614300dfe4b9ffd7ac96da7bea23bc7b1796", kill_on_drop: false }` [INFO] [stdout] 0bd07d4f90a40db0dec4c25aac77614300dfe4b9ffd7ac96da7bea23bc7b1796 [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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] acb24825625eb03c846cc5586886e6d033dbe55a67d659014a8d49fbd9da4c5c [INFO] running `Command { std: "docker" "start" "-a" "acb24825625eb03c846cc5586886e6d033dbe55a67d659014a8d49fbd9da4c5c", kill_on_drop: false }` [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling cc v1.2.7 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling tokio-openssl v0.6.5 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling float-cmp v0.10.0 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling filepath v0.2.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling crossbeam-channel v0.5.14 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix_derive v0.6.2 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling h2 v0.4.7 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling actix-tls v3.4.0 [INFO] [stderr] Compiling actix v0.13.5 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v1.5.2 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling awc v3.5.1 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling rate_my_professor_api_rs v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> src/features.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::any::type_name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::cmp::Ord` [INFO] [stdout] --> src/features.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use core::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/features.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / /** [INFO] [stdout] 728 | | * for "variables", it would be the same as writting [INFO] [stdout] 729 | | * "variables" : "query" : { "text" : school_name } [INFO] [stdout] 730 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 731 | / let body = serde_json::json!({ [INFO] [stdout] 732 | | "query": SCHOOL_BODY_QUERY, [INFO] [stdout] 733 | | "variables": variables [INFO] [stdout] 734 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude::*` [INFO] [stdout] --> src/methods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comments_data` [INFO] [stdout] --> src/features.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | let comments_data : String = serde_json::from_str(&comments_subsection[index]["node"]["comment"].to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `would_take_again` [INFO] [stdout] --> src/features.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let would_take_again : &serde_json::Value = &comments_subsection[index]["node"]["wouldTakeAgain"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_would_take_again` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | let mut comments_data : serde_json::Value = response.json().await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | let mut comments_subsection = comments_data["data"]["node"]["ratings"]["edges"].clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `school_id` [INFO] [stdout] --> src/features.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 758 | let school_id : String = serde_json::from_str(&edges[0]["cursor"].clone().to_string()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_school_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:769:34 [INFO] [stdout] | [INFO] [stdout] 769 | let (all_search_result_file, file_path) = create_file("all_search_result.json").await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:770:28 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/features.rs:773:10 [INFO] [stdout] | [INFO] [stdout] 773 | for (index, data) in results.clone().into_iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:811:7 [INFO] [stdout] | [INFO] [stdout] 811 | let mut file = fs::File::create(fileName).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:874:7 [INFO] [stdout] | [INFO] [stdout] 874 | let mut professor_list_raw : serde_json::Value = response.json().await?; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/methods.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | let (file, file_path) = create_file(file_name).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/features.rs:626:13 [INFO] [stdout] | [INFO] [stdout] 626 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/features.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_type_of` is never used [INFO] [stdout] --> src/features.rs:792:4 [INFO] [stdout] | [INFO] [stdout] 792 | fn print_type_of(_ : &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `rateMyProfessorApi_rs` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rate_my_professor_api_rs` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `professorID` should have a snake case name [INFO] [stdout] --> src/features.rs:165:40 [INFO] [stdout] | [INFO] [stdout] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ProfessorCommentsVector` should have a snake case name [INFO] [stdout] --> src/features.rs:183:11 [INFO] [stdout] | [INFO] [stdout] 183 | let mut ProfessorCommentsVector : Vec = Vec::with_capacity(length.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_comments_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Id` should have a snake case name [INFO] [stdout] --> src/features.rs:235:7 [INFO] [stdout] | [INFO] [stdout] 235 | pub Id : String [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/features.rs:770:66 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/features.rs:810:26 [INFO] [stdout] | [INFO] [stdout] 810 | pub async fn create_file(fileName : &str) -> (fs::File, PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/features.rs:812:7 [INFO] [stdout] | [INFO] [stdout] 812 | let filePath = file.path().unwrap(); // Ok("/path/to/file") -> "/path/to/file" [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CollegeName` should have a snake case name [INFO] [stdout] --> src/methods.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub CollegeName : String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `college_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ProfessorName` should have a snake case name [INFO] [stdout] --> src/methods.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub ProfessorName : Option [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/execute_methods.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude::*` [INFO] [stdout] --> src/bin/execute_methods.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/execute_features.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/execute_methods.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("Queens College"); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/execute_methods.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let mut rate_my_professor_instance_version2 = RateMyProfessor::construct_college_and_professor("City College of New York", "Douglas T... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude` [INFO] [stdout] --> src/bin/execute_features.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/bin/execute_features.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_constructor_methods` is never used [INFO] [stdout] --> src/bin/execute_methods.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | async fn test_constructor_methods() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "acb24825625eb03c846cc5586886e6d033dbe55a67d659014a8d49fbd9da4c5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acb24825625eb03c846cc5586886e6d033dbe55a67d659014a8d49fbd9da4c5c", kill_on_drop: false }` [INFO] [stdout] acb24825625eb03c846cc5586886e6d033dbe55a67d659014a8d49fbd9da4c5c [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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19b8a8ffdf489901be445afbc35ec43c83f46b9d7d1aba3fb104352b11e889d4 [INFO] running `Command { std: "docker" "start" "-a" "19b8a8ffdf489901be445afbc35ec43c83f46b9d7d1aba3fb104352b11e889d4", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> src/features.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::any::type_name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::cmp::Ord` [INFO] [stdout] --> src/features.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use core::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/features.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / /** [INFO] [stdout] 728 | | * for "variables", it would be the same as writting [INFO] [stdout] 729 | | * "variables" : "query" : { "text" : school_name } [INFO] [stdout] 730 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 731 | / let body = serde_json::json!({ [INFO] [stdout] 732 | | "query": SCHOOL_BODY_QUERY, [INFO] [stdout] 733 | | "variables": variables [INFO] [stdout] 734 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude::*` [INFO] [stdout] --> src/methods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comments_data` [INFO] [stdout] --> src/features.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | let comments_data : String = serde_json::from_str(&comments_subsection[index]["node"]["comment"].to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `would_take_again` [INFO] [stdout] --> src/features.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let would_take_again : &serde_json::Value = &comments_subsection[index]["node"]["wouldTakeAgain"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_would_take_again` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | let mut comments_data : serde_json::Value = response.json().await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | let mut comments_subsection = comments_data["data"]["node"]["ratings"]["edges"].clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `school_id` [INFO] [stdout] --> src/features.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 758 | let school_id : String = serde_json::from_str(&edges[0]["cursor"].clone().to_string()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_school_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:769:34 [INFO] [stdout] | [INFO] [stdout] 769 | let (all_search_result_file, file_path) = create_file("all_search_result.json").await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:770:28 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/features.rs:773:10 [INFO] [stdout] | [INFO] [stdout] 773 | for (index, data) in results.clone().into_iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:811:7 [INFO] [stdout] | [INFO] [stdout] 811 | let mut file = fs::File::create(fileName).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:874:7 [INFO] [stdout] | [INFO] [stdout] 874 | let mut professor_list_raw : serde_json::Value = response.json().await?; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/methods.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | let (file, file_path) = create_file(file_name).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/features.rs:626:13 [INFO] [stdout] | [INFO] [stdout] 626 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/features.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_type_of` is never used [INFO] [stdout] --> src/features.rs:792:4 [INFO] [stdout] | [INFO] [stdout] 792 | fn print_type_of(_ : &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `rateMyProfessorApi_rs` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rate_my_professor_api_rs` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `professorID` should have a snake case name [INFO] [stdout] --> src/features.rs:165:40 [INFO] [stdout] | [INFO] [stdout] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ProfessorCommentsVector` should have a snake case name [INFO] [stdout] --> src/features.rs:183:11 [INFO] [stdout] | [INFO] [stdout] 183 | let mut ProfessorCommentsVector : Vec = Vec::with_capacity(length.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_comments_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Id` should have a snake case name [INFO] [stdout] --> src/features.rs:235:7 [INFO] [stdout] | [INFO] [stdout] 235 | pub Id : String [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/features.rs:770:66 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/features.rs:810:26 [INFO] [stdout] | [INFO] [stdout] 810 | pub async fn create_file(fileName : &str) -> (fs::File, PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/features.rs:812:7 [INFO] [stdout] | [INFO] [stdout] 812 | let filePath = file.path().unwrap(); // Ok("/path/to/file") -> "/path/to/file" [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CollegeName` should have a snake case name [INFO] [stdout] --> src/methods.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub CollegeName : String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `college_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ProfessorName` should have a snake case name [INFO] [stdout] --> src/methods.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub ProfessorName : Option [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rate_my_professor_api_rs v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/execute_methods.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude::*` [INFO] [stdout] --> src/bin/execute_methods.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/execute_methods.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("Queens College"); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/execute_methods.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let mut rate_my_professor_instance_version2 = RateMyProfessor::construct_college_and_professor("City College of New York", "Douglas T... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/execute_features.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude` [INFO] [stdout] --> src/bin/execute_features.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/bin/execute_features.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/execute_methods.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | test_constructor_methods().await; [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] 119 | let _ = test_constructor_methods().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> src/features.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::any::type_name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::cmp::Ord` [INFO] [stdout] --> src/features.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use core::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/features.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / /** [INFO] [stdout] 728 | | * for "variables", it would be the same as writting [INFO] [stdout] 729 | | * "variables" : "query" : { "text" : school_name } [INFO] [stdout] 730 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 731 | / let body = serde_json::json!({ [INFO] [stdout] 732 | | "query": SCHOOL_BODY_QUERY, [INFO] [stdout] 733 | | "variables": variables [INFO] [stdout] 734 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude::*` [INFO] [stdout] --> src/methods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comments_data` [INFO] [stdout] --> src/features.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | let comments_data : String = serde_json::from_str(&comments_subsection[index]["node"]["comment"].to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `would_take_again` [INFO] [stdout] --> src/features.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let would_take_again : &serde_json::Value = &comments_subsection[index]["node"]["wouldTakeAgain"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_would_take_again` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | let mut comments_data : serde_json::Value = response.json().await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | let mut comments_subsection = comments_data["data"]["node"]["ratings"]["edges"].clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `school_id` [INFO] [stdout] --> src/features.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 758 | let school_id : String = serde_json::from_str(&edges[0]["cursor"].clone().to_string()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_school_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:769:34 [INFO] [stdout] | [INFO] [stdout] 769 | let (all_search_result_file, file_path) = create_file("all_search_result.json").await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:770:28 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/features.rs:773:10 [INFO] [stdout] | [INFO] [stdout] 773 | for (index, data) in results.clone().into_iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:811:7 [INFO] [stdout] | [INFO] [stdout] 811 | let mut file = fs::File::create(fileName).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:874:7 [INFO] [stdout] | [INFO] [stdout] 874 | let mut professor_list_raw : serde_json::Value = response.json().await?; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/methods.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | let (file, file_path) = create_file(file_name).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/features.rs:626:13 [INFO] [stdout] | [INFO] [stdout] 626 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/features.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_type_of` is never used [INFO] [stdout] --> src/features.rs:792:4 [INFO] [stdout] | [INFO] [stdout] 792 | fn print_type_of(_ : &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `professorID` should have a snake case name [INFO] [stdout] --> src/features.rs:165:40 [INFO] [stdout] | [INFO] [stdout] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ProfessorCommentsVector` should have a snake case name [INFO] [stdout] --> src/features.rs:183:11 [INFO] [stdout] | [INFO] [stdout] 183 | let mut ProfessorCommentsVector : Vec = Vec::with_capacity(length.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_comments_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Id` should have a snake case name [INFO] [stdout] --> src/features.rs:235:7 [INFO] [stdout] | [INFO] [stdout] 235 | pub Id : String [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/features.rs:770:66 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/features.rs:810:26 [INFO] [stdout] | [INFO] [stdout] 810 | pub async fn create_file(fileName : &str) -> (fs::File, PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/features.rs:812:7 [INFO] [stdout] | [INFO] [stdout] 812 | let filePath = file.path().unwrap(); // Ok("/path/to/file") -> "/path/to/file" [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CollegeName` should have a snake case name [INFO] [stdout] --> src/methods.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub CollegeName : String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `college_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ProfessorName` should have a snake case name [INFO] [stdout] --> src/methods.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub ProfessorName : Option [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.72s [INFO] running `Command { std: "docker" "inspect" "19b8a8ffdf489901be445afbc35ec43c83f46b9d7d1aba3fb104352b11e889d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19b8a8ffdf489901be445afbc35ec43c83f46b9d7d1aba3fb104352b11e889d4", kill_on_drop: false }` [INFO] [stdout] 19b8a8ffdf489901be445afbc35ec43c83f46b9d7d1aba3fb104352b11e889d4 [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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 709fcc5713187edcd0575143acffcb4aea33af02c918399c17b57c1c6b713384 [INFO] running `Command { std: "docker" "start" "-a" "709fcc5713187edcd0575143acffcb4aea33af02c918399c17b57c1c6b713384", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::any::type_name` [INFO] [stderr] --> src/features.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::any::type_name; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `core::cmp::Ord` [INFO] [stderr] --> src/features.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use core::cmp::Ord; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/features.rs:727:5 [INFO] [stderr] | [INFO] [stderr] 727 | / /** [INFO] [stderr] 728 | | * for "variables", it would be the same as writting [INFO] [stderr] 729 | | * "variables" : "query" : { "text" : school_name } [INFO] [stderr] 730 | | */ [INFO] [stderr] | |_______^ [INFO] [stderr] 731 | / let body = serde_json::json!({ [INFO] [stderr] 732 | | "query": SCHOOL_BODY_QUERY, [INFO] [stderr] 733 | | "variables": variables [INFO] [stderr] 734 | | }); [INFO] [stderr] | |_______- rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = help: use `/* */` for a plain comment [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `predicates::prelude::*` [INFO] [stderr] --> src/methods.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use predicates::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comments_data` [INFO] [stderr] --> src/features.rs:188:9 [INFO] [stderr] | [INFO] [stderr] 188 | let comments_data : String = serde_json::from_str(&comments_subsection[index]["node"]["comment"].to_string())?; [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments_data` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `would_take_again` [INFO] [stderr] --> src/features.rs:190:9 [INFO] [stderr] | [INFO] [stderr] 190 | let would_take_again : &serde_json::Value = &comments_subsection[index]["node"]["wouldTakeAgain"]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_would_take_again` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/features.rs:180:7 [INFO] [stderr] | [INFO] [stderr] 180 | let mut comments_data : serde_json::Value = response.json().await.unwrap(); [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: variable does not need to be mutable [INFO] [stderr] --> src/features.rs:181:7 [INFO] [stderr] | [INFO] [stderr] 181 | let mut comments_subsection = comments_data["data"]["node"]["ratings"]["edges"].clone(); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `school_id` [INFO] [stderr] --> src/features.rs:758:9 [INFO] [stderr] | [INFO] [stderr] 758 | let school_id : String = serde_json::from_str(&edges[0]["cursor"].clone().to_string()).unwrap(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_school_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_path` [INFO] [stderr] --> src/features.rs:769:34 [INFO] [stderr] | [INFO] [stderr] 769 | let (all_search_result_file, file_path) = create_file("all_search_result.json").await; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_path` [INFO] [stderr] --> src/features.rs:770:28 [INFO] [stderr] | [INFO] [stderr] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/features.rs:773:10 [INFO] [stderr] | [INFO] [stderr] 773 | for (index, data) in results.clone().into_iter().enumerate() { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/features.rs:811:7 [INFO] [stderr] | [INFO] [stderr] 811 | let mut file = fs::File::create(fileName).unwrap(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/features.rs:874:7 [INFO] [stderr] | [INFO] [stderr] 874 | let mut professor_list_raw : serde_json::Value = response.json().await?; [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_path` [INFO] [stderr] --> src/methods.rs:249:20 [INFO] [stderr] | [INFO] [stderr] 249 | let (file, file_path) = create_file(file_name).await; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `professor_list_returned` [INFO] [stderr] --> src/features.rs:626:13 [INFO] [stderr] | [INFO] [stderr] 626 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stderr] [INFO] [stderr] warning: function `main` is never used [INFO] [stderr] --> src/features.rs:610:10 [INFO] [stderr] | [INFO] [stderr] 610 | async fn main() -> Result<()> { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `print_type_of` is never used [INFO] [stderr] --> src/features.rs:792:4 [INFO] [stderr] | [INFO] [stderr] 792 | fn print_type_of(_ : &T) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `rateMyProfessorApi_rs` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = help: convert the identifier to snake case: `rate_my_professor_api_rs` [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `professorID` should have a snake case name [INFO] [stderr] --> src/features.rs:165:40 [INFO] [stderr] | [INFO] [stderr] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stderr] [INFO] [stderr] warning: variable `ProfessorCommentsVector` should have a snake case name [INFO] [stderr] --> src/features.rs:183:11 [INFO] [stderr] | [INFO] [stderr] 183 | let mut ProfessorCommentsVector : Vec = Vec::with_capacity(length.clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_comments_vector` [INFO] [stderr] [INFO] [stderr] warning: structure field `Id` should have a snake case name [INFO] [stderr] --> src/features.rs:235:7 [INFO] [stderr] | [INFO] [stderr] 235 | pub Id : String [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/features.rs:770:66 [INFO] [stderr] | [INFO] [stderr] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `fileName` should have a snake case name [INFO] [stderr] --> src/features.rs:810:26 [INFO] [stderr] | [INFO] [stderr] 810 | pub async fn create_file(fileName : &str) -> (fs::File, PathBuf) { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stderr] [INFO] [stderr] warning: variable `filePath` should have a snake case name [INFO] [stderr] --> src/features.rs:812:7 [INFO] [stderr] | [INFO] [stderr] 812 | let filePath = file.path().unwrap(); // Ok("/path/to/file") -> "/path/to/file" [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stderr] [INFO] [stderr] warning: structure field `CollegeName` should have a snake case name [INFO] [stderr] --> src/methods.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub CollegeName : String, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `college_name` [INFO] [stderr] [INFO] [stderr] warning: structure field `ProfessorName` should have a snake case name [INFO] [stderr] --> src/methods.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub ProfessorName : Option [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_name` [INFO] [stderr] [INFO] [stderr] warning: variable `professorID` should have a snake case name [INFO] [stderr] --> src/features.rs:165:40 [INFO] [stderr] | [INFO] [stderr] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rate_my_professor_api_rs` (lib) generated 27 warnings (run `cargo fix --lib -p rate_my_professor_api_rs` to apply 8 suggestions) [INFO] [stderr] warning: `rate_my_professor_api_rs` (lib test) generated 26 warnings (25 duplicates) [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/bin/execute_methods.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `predicates::prelude::*` [INFO] [stderr] --> src/bin/execute_methods.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use predicates::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/execute_methods.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("Queens College"); [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: variable does not need to be mutable [INFO] [stderr] --> src/bin/execute_methods.rs:111:9 [INFO] [stderr] | [INFO] [stderr] 111 | let mut rate_my_professor_instance_version2 = RateMyProfessor::construct_college_and_professor("City College of New York", "Douglas T... [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bin/execute_methods.rs:119:5 [INFO] [stderr] | [INFO] [stderr] 119 | test_constructor_methods().await; [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] 119 | let _ = test_constructor_methods().await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/bin/execute_features.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `predicates::prelude` [INFO] [stderr] --> src/bin/execute_features.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use predicates::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `professor_list_returned` [INFO] [stderr] --> src/bin/execute_features.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rate_my_professor_api_rs` (bin "test-bin-methods" test) generated 5 warnings (run `cargo fix --bin "test-bin-methods" --tests` to apply 4 suggestions) [INFO] [stderr] warning: `rate_my_professor_api_rs` (bin "test-bin-features" test) generated 3 warnings (run `cargo fix --bin "test-bin-features" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rateMyProfessorApi_rs-14a521ab59ecf66d) [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/execute_features.rs (/opt/rustwide/target/debug/deps/test_bin_features-19a058b8dfe11132) [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/execute_methods.rs (/opt/rustwide/target/debug/deps/test_bin_methods-da06655598fbbe7d) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_asynchronous_functions ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rateMyProfessorApi_rs [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::construct_college (line 25) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_professor_list (line 355) ... FAILED [INFO] [stdout] test src/methods.rs - methods::main (line 440) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_professor_comments (line 290) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_teacher_summary (line 110) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_teacher_summary_and_save (line 215) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::construct_college_and_professor (line 62) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::construct_college (line 25) stdout ---- [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/methods.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 12 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 19 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0428`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::get_professor_list (line 355) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RateMyProfessor` [INFO] [stdout] --> src/methods.rs:356:38 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("CUNY Queens College"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `RateMyProfessor` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rateMyProfessorApi_rs::methods::RateMyProfessor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/methods.rs:357:78 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_methods_rs_355_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("CUNY Queens College"); [INFO] [stdout] 4 | let mut list_of_professors = rate_my_professor_instance.get_professor_list().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/methods.rs - methods::main (line 440) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RateMyProfessor` [INFO] [stdout] --> src/methods.rs:444:42 [INFO] [stdout] | [INFO] [stdout] 5 | let mut rate_my_professor_instance = RateMyProfessor::construct_college_and_professor("City College of New York", "Douglas Troeger"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `RateMyProfessor` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rateMyProfessorApi_rs::methods::RateMyProfessor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/methods.rs:442:24 [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn main() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::get_professor_comments (line 290) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `rate_my_professor_instance` in this scope [INFO] [stdout] --> src/methods.rs:292:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut professor_comments = rate_my_professor_instance.get_professor_comments().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/methods.rs:292:82 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_methods_rs_290_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | // add the following within the main function from above (or any asynchronous function) [INFO] [stdout] 4 | let mut professor_comments = rate_my_professor_instance.get_professor_comments().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::get_teacher_summary (line 110) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stdout: [INFO] [stdout] Object instance before setter method update : RateMyProfessor { [INFO] [stdout] CollegeName: "Queens College", [INFO] [stdout] ProfessorName: Some( [INFO] [stdout] "", [INFO] [stdout] ), [INFO] [stdout] } [INFO] [stdout] Object instance after setter method update : RateMyProfessor { [INFO] [stdout] CollegeName: "Queens College", [INFO] [stdout] ProfessorName: Some( [INFO] [stdout] "Ross Greenberg", [INFO] [stdout] ), [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (170) panicked at /opt/rustwide/workdir/src/methods.rs:160:43: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: error sending request for url (https://www.ratemyprofessors.com/graphql) [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: client error (Connect) [INFO] [stdout] 1: dns error: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] 2: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: anyhow::error:: for anyhow::Error>::from [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.95/src/backtrace.rs:27:14 [INFO] [stdout] 1: as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:2174:27 [INFO] [stdout] 2: rateMyProfessorApi_rs::features::search_school::{{closure}} [INFO] [stdout] at ./src/features.rs:740:20 [INFO] [stdout] 3: rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}} [INFO] [stdout] 4: rust_out::main::{{closure}} [INFO] [stdout] 5: tokio::runtime::park::CachedParkThread::block_on::{{closure}} [INFO] [stdout] 6: tokio::runtime::park::CachedParkThread::block_on [INFO] [stdout] 7: tokio::runtime::context::blocking::BlockingRegionGuard::block_on [INFO] [stdout] 8: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}} [INFO] [stdout] 9: tokio::runtime::context::runtime::enter_runtime [INFO] [stdout] 10: tokio::runtime::scheduler::multi_thread::MultiThread::block_on [INFO] [stdout] 11: tokio::runtime::runtime::Runtime::block_on_inner [INFO] [stdout] 12: tokio::runtime::runtime::Runtime::block_on [INFO] [stdout] 13: rust_out::main [INFO] [stdout] 14: core::ops::function::FnOnce::call_once [INFO] [stdout] 15: std::sys::backtrace::__rust_begin_short_backtrace [INFO] [stdout] 16: std::rt::lang_start::{{closure}} [INFO] [stdout] 17: core::ops::function::impls:: for &F>::call_once [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 18: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 19: std::panicking::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 20: std::panic::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 21: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:175:24 [INFO] [stdout] 22: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 23: std::panicking::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 24: std::panic::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 25: std::rt::lang_start_internal [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:171:5 [INFO] [stdout] 26: std::rt::lang_start [INFO] [stdout] 27: main [INFO] [stdout] 28: [INFO] [stdout] 29: __libc_start_main [INFO] [stdout] 30: _start [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x565ad444d202 - std::backtrace_rs::backtrace::libunwind::trace::h0fb8082ca5562a61 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x565ad444d202 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa258994374a3cd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x565ad444d202 - std::sys::backtrace::_print_fmt::h11496fe34963a885 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x565ad444d202 - ::fmt::hff1a9408d012ee89 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x565ad446ed5f - core::fmt::rt::Argument::fmt::hf11195b61445f5d1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x565ad446ed5f - core::fmt::write::h2f1fc679f228cc52 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x565ad443bb33 - std::io::default_write_fmt::hdd5e6d67566e664d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x565ad443bb33 - std::io::Write::write_fmt::haa2231cbd9aebf95 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x565ad444d052 - std::sys::backtrace::BacktraceLock::print::h28bfdbcac6d3828b [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x565ad4437fbc - std::panicking::default_hook::{{closure}}::h1f968e3a24b0e3b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x565ad4437e03 - std::panicking::default_hook::h43da101644971931 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x565ad44384fa - std::panicking::panic_with_hook::hb4e916c3e65eccec [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x565ad444cbda - std::panicking::panic_handler::{{closure}}::hbff715d0475cf1bd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:707:13 [INFO] [stdout] 13: 0x565ad444cb39 - std::sys::backtrace::__rust_end_short_backtrace::hd6f43484e45a4955 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x565ad4438b4d - __rustc[b29d3319de9a3146]::rust_begin_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x565ad4477520 - core::panicking::panic_fmt::h5f8d281875be5ff1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panicking.rs:75:14 [INFO] [stdout] 16: 0x565ad4478b86 - core::result::unwrap_failed::hbb243a6a8b53218d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:1852:5 [INFO] [stdout] 17: 0x565ad3fc5cee - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::hb6198e50e9fecbf7 [INFO] [stdout] 18: 0x565ad3fd62a1 - rust_out::main::{{closure}}::h127d811da84d9788 [INFO] [stdout] 19: 0x565ad3fcb8e6 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h81792e3b2b5a2ffa [INFO] [stdout] 20: 0x565ad3fcb345 - tokio::runtime::park::CachedParkThread::block_on::h2606f8535935d3bc [INFO] [stdout] 21: 0x565ad3fd953b - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h25dac550f85ed45b [INFO] [stdout] 22: 0x565ad3fda5d0 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h37be52e2814f1e49 [INFO] [stdout] 23: 0x565ad3fd567f - tokio::runtime::context::runtime::enter_runtime::h40cac2d808ddcd27 [INFO] [stdout] 24: 0x565ad3fda641 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h839b533f2ea52815 [INFO] [stdout] 25: 0x565ad3fd84c9 - tokio::runtime::runtime::Runtime::block_on_inner::hb90bcb92531e4b55 [INFO] [stdout] 26: 0x565ad3fd81e0 - tokio::runtime::runtime::Runtime::block_on::h5f004c9e86e7b05a [INFO] [stdout] 27: 0x565ad3fd5f60 - rust_out::main::h45773e69b486c1d0 [INFO] [stdout] 28: 0x565ad3fd2ea3 - core::ops::function::FnOnce::call_once::h0b6ac2eacff9e06f [INFO] [stdout] 29: 0x565ad3fda9f6 - std::sys::backtrace::__rust_begin_short_backtrace::ha043debbbd407636 [INFO] [stdout] 30: 0x565ad3fda279 - std::rt::lang_start::{{closure}}::hc4eb772dbca8c5ca [INFO] [stdout] 31: 0x565ad444d810 - core::ops::function::impls:: for &F>::call_once::h32dc2b2f49a48277 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 32: 0x565ad444d810 - std::panicking::catch_unwind::do_call::h3353546a38525559 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 33: 0x565ad444d810 - std::panicking::catch_unwind::h57fb70202d1ae368 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 34: 0x565ad444d810 - std::panic::catch_unwind::h4b724a52bb5803b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x565ad444d810 - std::rt::lang_start_internal::{{closure}}::h3724b3072c80532a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:175:24 [INFO] [stdout] 36: 0x565ad444d810 - std::panicking::catch_unwind::do_call::h4f6e90f858bd1c3f [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x565ad444d810 - std::panicking::catch_unwind::h81c085c0d350991c [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x565ad444d810 - std::panic::catch_unwind::h289049af1176d82a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x565ad444d810 - std::rt::lang_start_internal::h3c37ebeb799b11e1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:171:5 [INFO] [stdout] 40: 0x565ad3fda2b1 - std::rt::lang_start::h4d3b1e8db5d2c55c [INFO] [stdout] 41: 0x565ad3fdaa65 - main [INFO] [stdout] 42: 0x7c8077c0f1ca - [INFO] [stdout] 43: 0x7c8077c0f28b - __libc_start_main [INFO] [stdout] 44: 0x565ad3fbc5a5 - _start [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::get_teacher_summary_and_save (line 215) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stdout: [INFO] [stdout] RateMyProfessor { [INFO] [stdout] CollegeName: "City College of New York", [INFO] [stdout] ProfessorName: Some( [INFO] [stdout] "Jie Wei", [INFO] [stdout] ), [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (134) panicked at /opt/rustwide/workdir/src/methods.rs:160:43: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: error sending request for url (https://www.ratemyprofessors.com/graphql) [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: client error (Connect) [INFO] [stdout] 1: dns error: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] 2: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: anyhow::error:: for anyhow::Error>::from [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.95/src/backtrace.rs:27:14 [INFO] [stdout] 1: as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:2174:27 [INFO] [stdout] 2: rateMyProfessorApi_rs::features::search_school::{{closure}} [INFO] [stdout] at ./src/features.rs:740:20 [INFO] [stdout] 3: rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}} [INFO] [stdout] 4: rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary_and_save::{{closure}} [INFO] [stdout] 5: rust_out::main::{{closure}} [INFO] [stdout] 6: tokio::runtime::park::CachedParkThread::block_on::{{closure}} [INFO] [stdout] 7: tokio::runtime::park::CachedParkThread::block_on [INFO] [stdout] 8: tokio::runtime::context::blocking::BlockingRegionGuard::block_on [INFO] [stdout] 9: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}} [INFO] [stdout] 10: tokio::runtime::context::runtime::enter_runtime [INFO] [stdout] 11: tokio::runtime::scheduler::multi_thread::MultiThread::block_on [INFO] [stdout] 12: tokio::runtime::runtime::Runtime::block_on_inner [INFO] [stdout] 13: tokio::runtime::runtime::Runtime::block_on [INFO] [stdout] 14: rust_out::main [INFO] [stdout] 15: core::ops::function::FnOnce::call_once [INFO] [stdout] 16: std::sys::backtrace::__rust_begin_short_backtrace [INFO] [stdout] 17: std::rt::lang_start::{{closure}} [INFO] [stdout] 18: core::ops::function::impls:: for &F>::call_once [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 19: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 20: std::panicking::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 21: std::panic::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 22: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:175:24 [INFO] [stdout] 23: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 24: std::panicking::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 25: std::panic::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 26: std::rt::lang_start_internal [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:171:5 [INFO] [stdout] 27: std::rt::lang_start [INFO] [stdout] 28: main [INFO] [stdout] 29: [INFO] [stdout] 30: __libc_start_main [INFO] [stdout] 31: _start [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x6095f5f7a992 - std::backtrace_rs::backtrace::libunwind::trace::h0fb8082ca5562a61 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x6095f5f7a992 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa258994374a3cd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x6095f5f7a992 - std::sys::backtrace::_print_fmt::h11496fe34963a885 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x6095f5f7a992 - ::fmt::hff1a9408d012ee89 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x6095f5f9c4ef - core::fmt::rt::Argument::fmt::hf11195b61445f5d1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x6095f5f9c4ef - core::fmt::write::h2f1fc679f228cc52 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x6095f5f692c3 - std::io::default_write_fmt::hdd5e6d67566e664d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x6095f5f692c3 - std::io::Write::write_fmt::haa2231cbd9aebf95 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x6095f5f7a7e2 - std::sys::backtrace::BacktraceLock::print::h28bfdbcac6d3828b [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x6095f5f6574c - std::panicking::default_hook::{{closure}}::h1f968e3a24b0e3b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x6095f5f65593 - std::panicking::default_hook::h43da101644971931 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x6095f5f65c8a - std::panicking::panic_with_hook::hb4e916c3e65eccec [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x6095f5f7a36a - std::panicking::panic_handler::{{closure}}::hbff715d0475cf1bd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:707:13 [INFO] [stdout] 13: 0x6095f5f7a2c9 - std::sys::backtrace::__rust_end_short_backtrace::hd6f43484e45a4955 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x6095f5f662dd - __rustc[b29d3319de9a3146]::rust_begin_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x6095f5fa4cb0 - core::panicking::panic_fmt::h5f8d281875be5ff1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panicking.rs:75:14 [INFO] [stdout] 16: 0x6095f5fa6316 - core::result::unwrap_failed::hbb243a6a8b53218d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:1852:5 [INFO] [stdout] 17: 0x6095f5af275e - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::hb6198e50e9fecbf7 [INFO] [stdout] 18: 0x6095f5af3a02 - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary_and_save::{{closure}}::h2f9889b427859a56 [INFO] [stdout] 19: 0x6095f5b052b6 - rust_out::main::{{closure}}::h127d811da84d9788 [INFO] [stdout] 20: 0x6095f5af8c26 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h81792e3b2b5a2ffa [INFO] [stdout] 21: 0x6095f5af8685 - tokio::runtime::park::CachedParkThread::block_on::h2606f8535935d3bc [INFO] [stdout] 22: 0x6095f5b06dcb - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h25dac550f85ed45b [INFO] [stdout] 23: 0x6095f5b07e90 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h37be52e2814f1e49 [INFO] [stdout] 24: 0x6095f5b02acf - tokio::runtime::context::runtime::enter_runtime::h40cac2d808ddcd27 [INFO] [stdout] 25: 0x6095f5b07f01 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h839b533f2ea52815 [INFO] [stdout] 26: 0x6095f5b05c69 - tokio::runtime::runtime::Runtime::block_on_inner::hb90bcb92531e4b55 [INFO] [stdout] 27: 0x6095f5b05980 - tokio::runtime::runtime::Runtime::block_on::h5f004c9e86e7b05a [INFO] [stdout] 28: 0x6095f5b05013 - rust_out::main::h45773e69b486c1d0 [INFO] [stdout] 29: 0x6095f5afe273 - core::ops::function::FnOnce::call_once::h0b6ac2eacff9e06f [INFO] [stdout] 30: 0x6095f5b082c6 - std::sys::backtrace::__rust_begin_short_backtrace::ha043debbbd407636 [INFO] [stdout] 31: 0x6095f5b07bb9 - std::rt::lang_start::{{closure}}::hc4eb772dbca8c5ca [INFO] [stdout] 32: 0x6095f5f7afa0 - core::ops::function::impls:: for &F>::call_once::h32dc2b2f49a48277 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 33: 0x6095f5f7afa0 - std::panicking::catch_unwind::do_call::h3353546a38525559 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 34: 0x6095f5f7afa0 - std::panicking::catch_unwind::h57fb70202d1ae368 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 35: 0x6095f5f7afa0 - std::panic::catch_unwind::h4b724a52bb5803b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 36: 0x6095f5f7afa0 - std::rt::lang_start_internal::{{closure}}::h3724b3072c80532a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:175:24 [INFO] [stdout] 37: 0x6095f5f7afa0 - std::panicking::catch_unwind::do_call::h4f6e90f858bd1c3f [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 38: 0x6095f5f7afa0 - std::panicking::catch_unwind::h81c085c0d350991c [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 39: 0x6095f5f7afa0 - std::panic::catch_unwind::h289049af1176d82a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x6095f5f7afa0 - std::rt::lang_start_internal::h3c37ebeb799b11e1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:171:5 [INFO] [stdout] 41: 0x6095f5b07bf1 - std::rt::lang_start::h4d3b1e8db5d2c55c [INFO] [stdout] 42: 0x6095f5b08335 - main [INFO] [stdout] 43: 0x7eb5c105f1ca - [INFO] [stdout] 44: 0x7eb5c105f28b - __libc_start_main [INFO] [stdout] 45: 0x6095f5ae8915 - _start [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::construct_college_and_professor (line 62) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stdout: [INFO] [stdout] newly instantiated object : RateMyProfessor { [INFO] [stdout] CollegeName: "City College of New York", [INFO] [stdout] ProfessorName: Some( [INFO] [stdout] "Douglas Troeger", [INFO] [stdout] ), [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Err( [INFO] [stdout] reqwest::Error { [INFO] [stdout] kind: Request, [INFO] [stdout] url: "https://www.ratemyprofessors.com/graphql", [INFO] [stdout] source: hyper_util::client::legacy::Error( [INFO] [stdout] Connect, [INFO] [stdout] ConnectError( [INFO] [stdout] "dns error", [INFO] [stdout] Custom { [INFO] [stdout] kind: Uncategorized, [INFO] [stdout] error: "failed to lookup address information: Temporary failure in name resolution", [INFO] [stdout] }, [INFO] [stdout] ), [INFO] [stdout] ), [INFO] [stdout] }, [INFO] [stdout] ) [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (151) panicked at /opt/rustwide/workdir/src/methods.rs:160:43: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: error sending request for url (https://www.ratemyprofessors.com/graphql) [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: client error (Connect) [INFO] [stdout] 1: dns error: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] 2: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: anyhow::error:: for anyhow::Error>::from [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.95/src/backtrace.rs:27:14 [INFO] [stdout] 1: as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:2174:27 [INFO] [stdout] 2: rateMyProfessorApi_rs::features::search_school::{{closure}} [INFO] [stdout] at ./src/features.rs:740:20 [INFO] [stdout] 3: rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}} [INFO] [stdout] 4: rust_out::main::{{closure}} [INFO] [stdout] 5: tokio::runtime::park::CachedParkThread::block_on::{{closure}} [INFO] [stdout] 6: tokio::runtime::park::CachedParkThread::block_on [INFO] [stdout] 7: tokio::runtime::context::blocking::BlockingRegionGuard::block_on [INFO] [stdout] 8: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}} [INFO] [stdout] 9: tokio::runtime::context::runtime::enter_runtime [INFO] [stdout] 10: tokio::runtime::scheduler::multi_thread::MultiThread::block_on [INFO] [stdout] 11: tokio::runtime::runtime::Runtime::block_on_inner [INFO] [stdout] 12: tokio::runtime::runtime::Runtime::block_on [INFO] [stdout] 13: rust_out::main [INFO] [stdout] 14: core::ops::function::FnOnce::call_once [INFO] [stdout] 15: std::sys::backtrace::__rust_begin_short_backtrace [INFO] [stdout] 16: std::rt::lang_start::{{closure}} [INFO] [stdout] 17: core::ops::function::impls:: for &F>::call_once [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 18: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 19: std::panicking::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 20: std::panic::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 21: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:175:24 [INFO] [stdout] 22: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 23: std::panicking::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 24: std::panic::catch_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 25: std::rt::lang_start_internal [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:171:5 [INFO] [stdout] 26: std::rt::lang_start [INFO] [stdout] 27: main [INFO] [stdout] 28: [INFO] [stdout] 29: __libc_start_main [INFO] [stdout] 30: _start [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5ca4ad8d8252 - std::backtrace_rs::backtrace::libunwind::trace::h0fb8082ca5562a61 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5ca4ad8d8252 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa258994374a3cd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5ca4ad8d8252 - std::sys::backtrace::_print_fmt::h11496fe34963a885 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5ca4ad8d8252 - ::fmt::hff1a9408d012ee89 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5ca4ad8f9daf - core::fmt::rt::Argument::fmt::hf11195b61445f5d1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5ca4ad8f9daf - core::fmt::write::h2f1fc679f228cc52 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5ca4ad8c6b83 - std::io::default_write_fmt::hdd5e6d67566e664d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5ca4ad8c6b83 - std::io::Write::write_fmt::haa2231cbd9aebf95 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5ca4ad8d80a2 - std::sys::backtrace::BacktraceLock::print::h28bfdbcac6d3828b [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5ca4ad8c300c - std::panicking::default_hook::{{closure}}::h1f968e3a24b0e3b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x5ca4ad8c2e53 - std::panicking::default_hook::h43da101644971931 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x5ca4ad8c354a - std::panicking::panic_with_hook::hb4e916c3e65eccec [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x5ca4ad8d7c2a - std::panicking::panic_handler::{{closure}}::hbff715d0475cf1bd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:707:13 [INFO] [stdout] 13: 0x5ca4ad8d7b89 - std::sys::backtrace::__rust_end_short_backtrace::hd6f43484e45a4955 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x5ca4ad8c3b9d - __rustc[b29d3319de9a3146]::rust_begin_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x5ca4ad902570 - core::panicking::panic_fmt::h5f8d281875be5ff1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panicking.rs:75:14 [INFO] [stdout] 16: 0x5ca4ad903bd6 - core::result::unwrap_failed::hbb243a6a8b53218d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:1852:5 [INFO] [stdout] 17: 0x5ca4ad45093e - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::hb6198e50e9fecbf7 [INFO] [stdout] 18: 0x5ca4ad461dc2 - rust_out::main::{{closure}}::h127d811da84d9788 [INFO] [stdout] 19: 0x5ca4ad4567a6 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h81792e3b2b5a2ffa [INFO] [stdout] 20: 0x5ca4ad456205 - tokio::runtime::park::CachedParkThread::block_on::h2606f8535935d3bc [INFO] [stdout] 21: 0x5ca4ad46461b - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h25dac550f85ed45b [INFO] [stdout] 22: 0x5ca4ad4656c0 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h37be52e2814f1e49 [INFO] [stdout] 23: 0x5ca4ad4606ef - tokio::runtime::context::runtime::enter_runtime::h40cac2d808ddcd27 [INFO] [stdout] 24: 0x5ca4ad465731 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h839b533f2ea52815 [INFO] [stdout] 25: 0x5ca4ad4635a9 - tokio::runtime::runtime::Runtime::block_on_inner::hb90bcb92531e4b55 [INFO] [stdout] 26: 0x5ca4ad4632c0 - tokio::runtime::runtime::Runtime::block_on::h5f004c9e86e7b05a [INFO] [stdout] 27: 0x5ca4ad461930 - rust_out::main::h45773e69b486c1d0 [INFO] [stdout] 28: 0x5ca4ad45bd73 - core::ops::function::FnOnce::call_once::h0b6ac2eacff9e06f [INFO] [stdout] 29: 0x5ca4ad465ab6 - std::sys::backtrace::__rust_begin_short_backtrace::ha043debbbd407636 [INFO] [stdout] 30: 0x5ca4ad4653e9 - std::rt::lang_start::{{closure}}::hc4eb772dbca8c5ca [INFO] [stdout] 31: 0x5ca4ad8d8860 - core::ops::function::impls:: for &F>::call_once::h32dc2b2f49a48277 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 32: 0x5ca4ad8d8860 - std::panicking::catch_unwind::do_call::h3353546a38525559 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 33: 0x5ca4ad8d8860 - std::panicking::catch_unwind::h57fb70202d1ae368 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 34: 0x5ca4ad8d8860 - std::panic::catch_unwind::h4b724a52bb5803b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x5ca4ad8d8860 - std::rt::lang_start_internal::{{closure}}::h3724b3072c80532a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:175:24 [INFO] [stdout] 36: 0x5ca4ad8d8860 - std::panicking::catch_unwind::do_call::h4f6e90f858bd1c3f [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x5ca4ad8d8860 - std::panicking::catch_unwind::h81c085c0d350991c [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x5ca4ad8d8860 - std::panic::catch_unwind::h289049af1176d82a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x5ca4ad8d8860 - std::rt::lang_start_internal::h3c37ebeb799b11e1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:171:5 [INFO] [stdout] 40: 0x5ca4ad465421 - std::rt::lang_start::h4d3b1e8db5d2c55c [INFO] [stdout] 41: 0x5ca4ad465b25 - main [INFO] [stdout] 42: 0x7ff3e1e0e1ca - [INFO] [stdout] 43: 0x7ff3e1e0e28b - __libc_start_main [INFO] [stdout] 44: 0x5ca4ad446cf5 - _start [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::construct_college (line 25) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::construct_college_and_professor (line 62) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::get_professor_comments (line 290) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::get_professor_list (line 355) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::get_teacher_summary (line 110) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::get_teacher_summary_and_save (line 215) [INFO] [stdout] src/methods.rs - methods::main (line 440) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.35s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "709fcc5713187edcd0575143acffcb4aea33af02c918399c17b57c1c6b713384", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "709fcc5713187edcd0575143acffcb4aea33af02c918399c17b57c1c6b713384", kill_on_drop: false }` [INFO] [stdout] 709fcc5713187edcd0575143acffcb4aea33af02c918399c17b57c1c6b713384