[INFO] cloning repository https://github.com/JKay15/pku3b_AI [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JKay15/pku3b_AI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJKay15%2Fpku3b_AI", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJKay15%2Fpku3b_AI'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] afdc16401431ad9250043ee652be0137826193b4 [INFO] checking JKay15/pku3b_AI against master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJKay15%2Fpku3b_AI" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JKay15/pku3b_AI [INFO] finished tweaking git repo https://github.com/JKay15/pku3b_AI [INFO] tweaked toml for git repo https://github.com/JKay15/pku3b_AI written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JKay15/pku3b_AI on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JKay15/pku3b_AI 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" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-4-tc1/source/pku3b/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded is_debug v1.1.0 [INFO] [stderr] Downloaded tzdb v0.7.2 [INFO] [stderr] Downloaded prettyplease v0.2.34 [INFO] [stderr] Downloaded compio-macros v0.1.2 [INFO] [stderr] Downloaded aligned-array v1.0.1 [INFO] [stderr] Downloaded cyper v0.3.1 [INFO] [stderr] Downloaded m3u8-rs v6.0.0 [INFO] [stderr] Downloaded compio-dispatcher v0.6.0 [INFO] [stderr] Downloaded compio-runtime v0.7.0 [INFO] [stderr] Downloaded compio-tls v0.5.0 [INFO] [stderr] Downloaded cyper-core v0.3.0 [INFO] [stderr] Downloaded compio-process v0.4.0 [INFO] [stderr] Downloaded cookie_store v0.21.1 [INFO] [stderr] Downloaded compio-log v0.1.0 [INFO] [stderr] Downloaded compio-io v0.6.0 [INFO] [stderr] Downloaded compio-fs v0.7.0 [INFO] [stderr] Downloaded compio-net v0.7.0 [INFO] [stderr] Downloaded compio-quic v0.3.1 [INFO] [stderr] Downloaded publicsuffix v2.3.0 [INFO] [stderr] Downloaded io-uring v0.7.7 [INFO] [stderr] Downloaded compio-driver v0.7.1 [INFO] [stderr] Downloaded shadow-rs v1.2.0 [INFO] [stderr] Downloaded compio v0.14.0 [INFO] [stderr] Downloaded tz-rs v0.7.0 [INFO] [stderr] Downloaded os_pipe v1.2.2 [INFO] [stderr] Downloaded compio-signal v0.5.0 [INFO] [stderr] Downloaded compio-buf v0.5.1 [INFO] [stderr] Downloaded tzdb_data v0.2.2 [INFO] [stderr] Downloaded syn v2.0.103 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cdd6a6dd5f43041a13d7cc4c24abfccb24aee64899da23ace80d509b9d9a989 [INFO] running `Command { std: "docker" "start" "-a" "5cdd6a6dd5f43041a13d7cc4c24abfccb24aee64899da23ace80d509b9d9a989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cdd6a6dd5f43041a13d7cc4c24abfccb24aee64899da23ace80d509b9d9a989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cdd6a6dd5f43041a13d7cc4c24abfccb24aee64899da23ace80d509b9d9a989", kill_on_drop: false }` [INFO] [stdout] 5cdd6a6dd5f43041a13d7cc4c24abfccb24aee64899da23ace80d509b9d9a989 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4220c7da73ddd5994dce71ddd3d741b6aa99bad241c0da85e02acc1af22aa09 [INFO] running `Command { std: "docker" "start" "-a" "d4220c7da73ddd5994dce71ddd3d741b6aa99bad241c0da85e02acc1af22aa09", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/pku3b/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking compio-buf v0.5.1 [INFO] [stderr] Compiling aws-lc-rs v1.13.1 [INFO] [stderr] Compiling io-uring v0.7.7 [INFO] [stderr] Compiling compio-driver v0.7.1 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Compiling rustls v0.23.28 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Checking compio-log v0.1.0 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Compiling compio-fs v0.7.0 [INFO] [stderr] Compiling tz-rs v0.7.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking os_pipe v1.2.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Checking dtoa v1.0.10 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling tzdb_data v0.2.2 [INFO] [stderr] Compiling markup5ever v0.14.1 [INFO] [stderr] Compiling selectors v0.26.0 [INFO] [stderr] Compiling const_format v0.2.34 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling is_debug v1.1.0 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking psl-types v2.0.11 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking servo_arc v0.4.1 [INFO] [stderr] Checking send_wrapper v0.6.0 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking newline-converter v0.3.0 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking clap_builder v4.5.40 [INFO] [stderr] Checking dirs-sys v0.5.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking ego-tree v0.10.0 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Checking dyn-clone v1.0.19 [INFO] [stderr] Checking inquire v0.7.5 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Compiling aws-lc-sys v0.29.0 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking sanitize-filename v0.6.0 [INFO] [stderr] Checking directories v6.0.0 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking downcast-rs v2.0.1 [INFO] [stderr] Compiling tzdb v0.7.2 [INFO] [stderr] Checking cookie v0.18.1 [INFO] [stderr] Checking m3u8-rs v6.0.0 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Checking shadow-rs v1.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling pyo3-macros-backend v0.25.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling compio-macros v0.1.2 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling match_token v0.1.0 [INFO] [stderr] Checking cssparser v0.34.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling pku3b v0.8.1 (/opt/rustwide/workdir/pku3b) [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking clap v4.5.40 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Compiling pyo3-macros v0.25.1 [INFO] [stderr] Checking compio-io v0.6.0 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking compio-runtime v0.7.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking pyo3 v0.25.1 [INFO] [stderr] Checking compio-net v0.7.0 [INFO] [stderr] Checking compio-process v0.4.0 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking publicsuffix v2.3.0 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking string_cache v0.8.9 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking cookie_store v0.21.1 [INFO] [stderr] Checking html5ever v0.29.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking scraper v0.23.1 [INFO] [stderr] Checking rustls-webpki v0.103.3 [INFO] [stderr] Checking compio-tls v0.5.0 [INFO] [stderr] Checking rustls-platform-verifier v0.5.3 [INFO] [stderr] Checking compio v0.14.0 [INFO] [stderr] Checking cyper-core v0.3.0 [INFO] [stderr] Checking cyper v0.3.1 [INFO] [stderr] Checking pku3b_py v0.1.0 (/opt/rustwide/workdir/pku3b_py) [INFO] [stdout] warning: methods `syncify` and `blackboard_sync` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Client { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn syncify(&self, fut: F) -> anyhow::Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn blackboard_sync(&self, username: &str, password: &str) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `client` is never used [INFO] [stdout] --> pku3b/src/api/mod.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl Blackboard { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 139 | pub fn client(&self) -> Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title`, `id`, and `list_assignments` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 249 | impl CourseHandle { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn id(&self) -> &str { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub async fn list_assignments(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:467:18 [INFO] [stdout] | [INFO] [stdout] 301 | impl Course { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 467 | pub async fn list_assignments(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub async fn list_videos(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | pub async fn list_documents(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 505 | pub async fn list_assignments_with_hierarchy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | pub async fn list_documents_with_hierarchy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 555 | pub async fn list_announcements(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 579 | pub async fn build_tree(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_parent` and `get_children` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:828:12 [INFO] [stdout] | [INFO] [stdout] 714 | impl CourseContentStream { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 828 | pub fn get_parent(&self, id: &str) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 833 | pub fn get_children(&self, id: &str) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_folder` and `from_announcement_element` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:896:12 [INFO] [stdout] | [INFO] [stdout] 895 | impl CourseContentData { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 896 | pub fn is_folder(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 997 | pub fn from_announcement_element(el: ElementRef) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `depth`, `parent_id`, `id_legacy`, and `title` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1092:12 [INFO] [stdout] | [INFO] [stdout] 1090 | impl CourseAssignmentHandle { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] 1091 | /// 获取深度(在内容树中的层级) [INFO] [stdout] 1092 | pub fn depth(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1097 | pub fn parent_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1108 | pub fn id_legacy(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1116 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseDocumentHandle` is never constructed [INFO] [stdout] --> pku3b/src/api/mod.rs:1415:12 [INFO] [stdout] | [INFO] [stdout] 1415 | pub struct CourseDocumentHandle { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `depth`, `parent_id`, `id`, `title`, and `get` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1423:12 [INFO] [stdout] | [INFO] [stdout] 1421 | impl CourseDocumentHandle { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] 1422 | /// 获取深度(在内容树中的层级) [INFO] [stdout] 1423 | pub fn depth(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1428 | pub fn parent_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1432 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 1439 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1443 | pub async fn get(&self) -> anyhow::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseDocument` is never constructed [INFO] [stdout] --> pku3b/src/api/mod.rs:1453:12 [INFO] [stdout] | [INFO] [stdout] 1453 | pub struct CourseDocument { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id`, `title`, `descriptions`, `attachments`, and `download_attachment` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1461:12 [INFO] [stdout] | [INFO] [stdout] 1459 | impl CourseDocument { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 1460 | /* —— 基本信息 —— */ [INFO] [stdout] 1461 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 1464 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1467 | pub fn descriptions(&self) -> &[String] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1470 | pub fn attachments(&self) -> &[(String, String)] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1474 | pub async fn download_attachment( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseAnnouncementHandle` is never constructed [INFO] [stdout] --> pku3b/src/api/mod.rs:1523:12 [INFO] [stdout] | [INFO] [stdout] 1523 | pub struct CourseAnnouncementHandle { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id`, `title`, and `get` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1529:12 [INFO] [stdout] | [INFO] [stdout] 1528 | impl CourseAnnouncementHandle { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 1529 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 1533 | pub fn title(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1536 | pub async fn get(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseAnnouncement` is never constructed [INFO] [stdout] --> pku3b/src/api/mod.rs:1545:12 [INFO] [stdout] | [INFO] [stdout] 1545 | pub struct CourseAnnouncement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title`, `descriptions`, `attachments`, and `download_attachment` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1551:12 [INFO] [stdout] | [INFO] [stdout] 1550 | impl CourseAnnouncement { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 1551 | pub fn title(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1555 | pub fn descriptions(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1559 | pub fn attachments(&self) -> &Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1563 | pub async fn download_attachment(&self, uri: &str, dest: &std::path::Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> pku3b/src/api/mod.rs:1620:9 [INFO] [stdout] | [INFO] [stdout] 1619 | pub struct CourseVideoHandle { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 1620 | pub content: CourseContentData, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CourseVideoHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title` and `time` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1649:12 [INFO] [stdout] | [INFO] [stdout] 1626 | impl CourseVideoHandle { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1649 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1652 | pub fn time(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NodeKind` is never used [INFO] [stdout] --> pku3b/src/api/tree.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum NodeKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentHandle` is never used [INFO] [stdout] --> pku3b/src/api/tree.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum ContentHandle { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseTreeNode` is never constructed [INFO] [stdout] --> pku3b/src/api/tree.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CourseTreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> pku3b/src/api/tree.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl CourseTreeNode { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 39 | pub fn id(&self) -> &str { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn kind(&self) -> NodeKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn children(&self) -> &[CourseTreeNode] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn children_mut(&mut self) -> &mut [CourseTreeNode] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn new_basic(id: impl Into, title: impl Into, kind: NodeKind) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn as_assignment(&self) -> Option<&CourseAssignmentHandle> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn as_document(&self) -> Option<&CourseDocumentHandle> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn as_video(&self) -> Option<&CourseVideoHandle> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn as_announcement(&self) -> Option<&CourseAnnouncementHandle> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn add_child(&mut self, child: CourseTreeNode) -> &mut CourseTreeNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn dfs<'a>(&'a self) -> impl Iterator + 'a { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn bfs_mut(&mut self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `syncify` and `blackboard_sync` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Client { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn syncify(&self, fut: F) -> anyhow::Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn blackboard_sync(&self, username: &str, password: &str) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `client` is never used [INFO] [stdout] --> pku3b/src/api/mod.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl Blackboard { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 139 | pub fn client(&self) -> Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title`, `id`, and `list_assignments` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 249 | impl CourseHandle { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn id(&self) -> &str { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub async fn list_assignments(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:467:18 [INFO] [stdout] | [INFO] [stdout] 301 | impl Course { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 467 | pub async fn list_assignments(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub async fn list_videos(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | pub async fn list_documents(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 505 | pub async fn list_assignments_with_hierarchy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | pub async fn list_documents_with_hierarchy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 555 | pub async fn list_announcements(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 579 | pub async fn build_tree(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_parent` and `get_children` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:828:12 [INFO] [stdout] | [INFO] [stdout] 714 | impl CourseContentStream { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 828 | pub fn get_parent(&self, id: &str) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 833 | pub fn get_children(&self, id: &str) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_folder` and `from_announcement_element` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:896:12 [INFO] [stdout] | [INFO] [stdout] 895 | impl CourseContentData { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 896 | pub fn is_folder(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 997 | pub fn from_announcement_element(el: ElementRef) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `depth`, `parent_id`, `id_legacy`, and `title` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1092:12 [INFO] [stdout] | [INFO] [stdout] 1090 | impl CourseAssignmentHandle { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] 1091 | /// 获取深度(在内容树中的层级) [INFO] [stdout] 1092 | pub fn depth(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1097 | pub fn parent_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1108 | pub fn id_legacy(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1116 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseDocumentHandle` is never constructed [INFO] [stdout] --> pku3b/src/api/mod.rs:1415:12 [INFO] [stdout] | [INFO] [stdout] 1415 | pub struct CourseDocumentHandle { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `depth`, `parent_id`, `id`, `title`, and `get` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1423:12 [INFO] [stdout] | [INFO] [stdout] 1421 | impl CourseDocumentHandle { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] 1422 | /// 获取深度(在内容树中的层级) [INFO] [stdout] 1423 | pub fn depth(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1428 | pub fn parent_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1432 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 1439 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1443 | pub async fn get(&self) -> anyhow::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseDocument` is never constructed [INFO] [stdout] --> pku3b/src/api/mod.rs:1453:12 [INFO] [stdout] | [INFO] [stdout] 1453 | pub struct CourseDocument { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id`, `title`, `descriptions`, `attachments`, and `download_attachment` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1461:12 [INFO] [stdout] | [INFO] [stdout] 1459 | impl CourseDocument { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 1460 | /* —— 基本信息 —— */ [INFO] [stdout] 1461 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 1464 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1467 | pub fn descriptions(&self) -> &[String] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1470 | pub fn attachments(&self) -> &[(String, String)] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1474 | pub async fn download_attachment( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseAnnouncementHandle` is never constructed [INFO] [stdout] --> pku3b/src/api/mod.rs:1523:12 [INFO] [stdout] | [INFO] [stdout] 1523 | pub struct CourseAnnouncementHandle { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id`, `title`, and `get` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1529:12 [INFO] [stdout] | [INFO] [stdout] 1528 | impl CourseAnnouncementHandle { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 1529 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 1533 | pub fn title(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1536 | pub async fn get(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseAnnouncement` is never constructed [INFO] [stdout] --> pku3b/src/api/mod.rs:1545:12 [INFO] [stdout] | [INFO] [stdout] 1545 | pub struct CourseAnnouncement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title`, `descriptions`, `attachments`, and `download_attachment` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1551:12 [INFO] [stdout] | [INFO] [stdout] 1550 | impl CourseAnnouncement { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 1551 | pub fn title(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1555 | pub fn descriptions(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1559 | pub fn attachments(&self) -> &Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1563 | pub async fn download_attachment(&self, uri: &str, dest: &std::path::Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> pku3b/src/api/mod.rs:1620:9 [INFO] [stdout] | [INFO] [stdout] 1619 | pub struct CourseVideoHandle { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 1620 | pub content: CourseContentData, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CourseVideoHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title` and `time` are never used [INFO] [stdout] --> pku3b/src/api/mod.rs:1649:12 [INFO] [stdout] | [INFO] [stdout] 1626 | impl CourseVideoHandle { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1649 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1652 | pub fn time(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NodeKind` is never used [INFO] [stdout] --> pku3b/src/api/tree.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum NodeKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentHandle` is never used [INFO] [stdout] --> pku3b/src/api/tree.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum ContentHandle { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CourseTreeNode` is never constructed [INFO] [stdout] --> pku3b/src/api/tree.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CourseTreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> pku3b/src/api/tree.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl CourseTreeNode { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 39 | pub fn id(&self) -> &str { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn kind(&self) -> NodeKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn children(&self) -> &[CourseTreeNode] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn children_mut(&mut self) -> &mut [CourseTreeNode] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn new_basic(id: impl Into, title: impl Into, kind: NodeKind) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn as_assignment(&self) -> Option<&CourseAssignmentHandle> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn as_document(&self) -> Option<&CourseDocumentHandle> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn as_video(&self) -> Option<&CourseVideoHandle> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn as_announcement(&self) -> Option<&CourseAnnouncementHandle> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn add_child(&mut self, child: CourseTreeNode) -> &mut CourseTreeNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn dfs<'a>(&'a self) -> impl Iterator + 'a { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn bfs_mut(&mut self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "d4220c7da73ddd5994dce71ddd3d741b6aa99bad241c0da85e02acc1af22aa09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4220c7da73ddd5994dce71ddd3d741b6aa99bad241c0da85e02acc1af22aa09", kill_on_drop: false }` [INFO] [stdout] d4220c7da73ddd5994dce71ddd3d741b6aa99bad241c0da85e02acc1af22aa09