[INFO] cloning repository https://github.com/sldpzshdwz/web-server-by-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sldpzshdwz/web-server-by-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsldpzshdwz%2Fweb-server-by-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsldpzshdwz%2Fweb-server-by-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8e6f7ae8fbb62db59c5564213bf758b5fbcd1d9f [INFO] testing sldpzshdwz/web-server-by-rust/8e6f7ae8fbb62db59c5564213bf758b5fbcd1d9f against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsldpzshdwz%2Fweb-server-by-rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sldpzshdwz/web-server-by-rust on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sldpzshdwz/web-server-by-rust [INFO] finished tweaking git repo https://github.com/sldpzshdwz/web-server-by-rust [INFO] tweaked toml for git repo https://github.com/sldpzshdwz/web-server-by-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sldpzshdwz/web-server-by-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mysql-common-derive v0.32.0 [INFO] [stderr] Downloaded mysql v26.0.0 [INFO] [stderr] Downloaded mysql_common v0.34.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8c1cb323744882116bc87c7318226c83551c2675ea41151ffb00fc0b110b244 [INFO] running `Command { std: "docker" "start" "-a" "d8c1cb323744882116bc87c7318226c83551c2675ea41151ffb00fc0b110b244", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8c1cb323744882116bc87c7318226c83551c2675ea41151ffb00fc0b110b244", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8c1cb323744882116bc87c7318226c83551c2675ea41151ffb00fc0b110b244", kill_on_drop: false }` [INFO] [stdout] d8c1cb323744882116bc87c7318226c83551c2675ea41151ffb00fc0b110b244 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5658d3d9f3bb603196ae494c08c107c635642f7c9953d10e218363a056f4e73 [INFO] running `Command { std: "docker" "start" "-a" "b5658d3d9f3bb603196ae494c08c107c635642f7c9953d10e218363a056f4e73", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling winnow v0.7.3 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling zstd-safe v7.2.3 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling deranged v0.4.1 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling btoi v0.4.3 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling saturating v0.1.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling mysql v26.0.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling uuid v1.15.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling twox-hash v2.1.0 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling zstd-sys v2.0.14+zstd.1.5.7 [INFO] [stderr] Compiling libz-sys v1.1.21 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling mysql_common v0.34.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling iana-time-zone v0.1.62 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling project-root v0.2.2 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling derive_utils v0.15.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [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 serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling io-enum v1.2.0 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling mysql-common-derive v0.32.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling startup_machine_91 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `LazyLock` and `Mutex` [INFO] [stdout] --> src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{LazyLock, Mutex}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool::thread_pool::线程池` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tool::thread_pool::线程池; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `http协议版本` should have an upper camel case name [INFO] [stdout] --> src/network/http请求.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum http协议版本{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Http协议版本` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `http请求` should have an upper camel case name [INFO] [stdout] --> src/network/http请求.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct http请求{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time::Duration` [INFO] [stdout] --> src/network/router.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Write, net::TcpStream, thread, time::Duration}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self`, `tool::tool::解析请求体json数据为结构体`, `删除记忆选项`, `增加记忆选项`, and `结果` [INFO] [stdout] --> src/network/router.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{tool::tool::解析请求体json数据为结构体, url::{ai::question_api, diary_work::{self, 调整计划::{删除计划api, 增加计划api, 寻找所有计划, 提交完成计划api, 撤销完成计划api, 查询完成计划api, 查询某日的完成任务情况api}}, memory::{删除记忆选项, 删除记忆选项api, 增加记忆选项, 增加记忆选项api, 查找记忆选项, 获取复习记忆选项}, 结果}}; ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/network/router.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use cookie::{ time, Cookie}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/router.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/network/router.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool::database::数据库连接池` [INFO] [stdout] --> src/network/router.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{tool::database::数据库连接池, tool::log::{日志生产者, 日志级别}, login::{处理api_login请求, 处理api_register请求, 数据库登录查询 ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `env`, `fs`, `path::PathBuf`, `sync::mpsc`, `thread`, and `time::Duration` [INFO] [stdout] --> src/network.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | env, fs, io::{prelude::*, BufReader}, net::{TcpListener, TcpStream}, path::PathBuf, sync::mpsc, thread, time::Duration [INFO] [stdout] | ^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `project_root::get_project_root` [INFO] [stdout] --> src/network.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use project_root::get_project_root; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `请求方法` [INFO] [stdout] --> src/network.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use http请求::{请求方法}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `根据信息回复http报文` and `根据文件路径回复http报文` [INFO] [stdout] --> src/network.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use http回应::{根据信息回复http报文, 根据文件路径回复http报文}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `处理api_login请求`, `处理api_register请求`, and `日志信息` [INFO] [stdout] --> src/network.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{login::{处理api_login请求, 处理api_register请求}, tool::log::{self, 日志信息, 日志生产者, 日志级别}, tool::thread_pool::线程池}; ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `请求方法` [INFO] [stdout] --> src/login.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::network::http请求::{self, 请求方法}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql::prelude` [INFO] [stdout] --> src/login.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use mysql::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/tool/log.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, FixedOffset, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefCell` [INFO] [stdout] --> src/tool/thread_pool.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, error::Error, sync::{mpsc::{self, Sender}, Arc, Mutex, OnceLock}, thread::{self, JoinHandle}}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/tool/tool.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{de::DeserializeOwned, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `数据库连接url` and `用户数据` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | ...se::{数据库连接池, 用户数据}, log::{日志生产者, 日志级别}, tool::解析请求体json数据为结构体}, 数据库连接url}; ... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/diary_work/调整计划.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - if (查询结果.len()==0){ [INFO] [stdout] 125 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/diary_work/调整计划.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 145 - if (查询结果.len()==0){ [INFO] [stdout] 145 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek请求json体类` should have an upper camel case name [INFO] [stdout] --> src/url/ai.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct deepseek请求json体类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Deepseek请求json体类` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek回应json类` should have an upper camel case name [INFO] [stdout] --> src/url/ai.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct deepseek回应json类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Deepseek回应json类` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de::value` [INFO] [stdout] --> src/url/memory.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{de::value, Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Memory_key` should have an upper camel case name [INFO] [stdout] --> src/url/memory.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Memory_key { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `memory_review` should have an upper camel case name [INFO] [stdout] --> src/url/memory.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct memory_review { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryReview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/tool/log.rs:51:45 [INFO] [stdout] | [INFO] [stdout] 51 | let naive_datetime = NaiveDateTime::from_timestamp(timestamp as i64, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/tool/log.rs:52:57 [INFO] [stdout] | [INFO] [stdout] 52 | let datetime: DateTime = DateTime::from_utc(naive_datetime, offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/url/memory.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 122 | return Ok(查询结果2[0].clone()); [INFO] [stdout] | ------------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 126 | Err("未实现".into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn router(切割结果:Vec<&str>,http请求:http请求,mut stream:TcpStream,用户:Option<数据库登录查询信息>){ [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/network/router.rs:59:44 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn router_post_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:65:64 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:70:65 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn router_get_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:70:44 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn router_get_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn router_post_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:77:52 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn router_post_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:91:72 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn router_get_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:91:51 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn router_get_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [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/network/router.rs:101:48 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn router_post_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:110:26 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:110:68 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户信息` [INFO] [stdout] --> src/network/router.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | Ok((用户信息,jwt_token))=>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_用户信息` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn router_post_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:159:37 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn 判断是否是一级url并处理(切割结果:Vec<&str>,mut stream:TcpStream,http请求:http请求,用户:Option<数据库登录查询信息>,状态行:&str,正文路 ... [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/network/router.rs:166:74 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn 判断api处理是否成功并处理(api结果:Result,状态行:&str,信息:String,mut stream:TcpStream){ [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/network.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut http请求字符串=String::from_utf8(read_buffer.to_vec()).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/network.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut http请求:http请求::http请求=http请求字符串.into(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `当前时间戳` [INFO] [stdout] --> src/login.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let 当前时间戳 = SystemTime::now() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_当前时间戳` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `错误` [INFO] [stdout] --> src/tool/log.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | Err(错误)=>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_错误` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/url/memory.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn 查找记忆选项(用户:数据库登录查询信息,http请求:http请求)->结果>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/url/memory.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn 获取复习记忆选项(用户:数据库登录查询信息,http请求:http请求)->结果{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date` [INFO] [stdout] --> src/url/memory.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | |(username,key,date,epoch): (Vec, Vec, mysql::Value, i32)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek请求json体类` is more private than the item `根据信息请求deepseek报文` [INFO] [stdout] --> src/url/ai.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `deepseek请求json体类` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/url/ai.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | struct deepseek请求json体类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek回应json类` is more private than the item `根据信息请求deepseek报文` [INFO] [stdout] --> src/url/ai.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `deepseek回应json类` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/url/ai.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | struct deepseek回应json类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `日志显示级别` is never used [INFO] [stdout] --> src/lib.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | static 日志显示级别:日志级别=日志级别::INFO; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `join_handle` are never read [INFO] [stdout] --> src/tool/thread_pool.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct Worker{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | pub id:u32, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub join_handle:JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `数据库连接url` should have an upper case name [INFO] [stdout] --> src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | static 数据库连接url: &str = "mysql://root:aA147741@localhost:3306/rust91"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `数据库连接URL` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `deepseek_api` should have an upper case name [INFO] [stdout] --> src/lib.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | static deepseek_api:&str="sk-b0b8e26ba39040f690e56e2ad892b7f5"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `DEEPSEEK_API` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tool/log.rs:76:29 [INFO] [stdout] | [INFO] [stdout] 76 | Some(通道) =>{通道.send(要发送的日志);}, [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] 76 | Some(通道) =>{let _ = 通道.send(要发送的日志);}, [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tool/thread_pool.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | self.线程[最少任务工作者 as usize].派发工作(Box::new(f)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 68 | let _ = self.线程[最少任务工作者 as usize].派发工作(Box::new(f)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Worker` should have a snake case name [INFO] [stdout] --> src/tool/thread_pool.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | for Worker in &self.线程{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `worker` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/diary_work/调整计划.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | 增加计划(解析结果.username,解析结果.planname); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 24 | let _ = 增加计划(解析结果.username,解析结果.planname); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/memory.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | 增加记忆选项(用户.username.clone(), memory.key.clone(), memory.value, memory.option1, memory.option2, memory.option3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = 增加记忆选项(用户.username.clone(), memory.key.clone(), memory.value, memory.option1, memory.option2, memory.option3); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/memory.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | 增加当日记忆复习选项(用户.username, memory.key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = 增加当日记忆复习选项(用户.username, memory.key); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 26s [INFO] running `Command { std: "docker" "inspect" "b5658d3d9f3bb603196ae494c08c107c635642f7c9953d10e218363a056f4e73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5658d3d9f3bb603196ae494c08c107c635642f7c9953d10e218363a056f4e73", kill_on_drop: false }` [INFO] [stdout] b5658d3d9f3bb603196ae494c08c107c635642f7c9953d10e218363a056f4e73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4812dcf616ab8661fa16a03c719788db51a1e55ba76961b4974e41caf67eda1b [INFO] running `Command { std: "docker" "start" "-a" "4812dcf616ab8661fa16a03c719788db51a1e55ba76961b4974e41caf67eda1b", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `LazyLock` and `Mutex` [INFO] [stdout] --> src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{LazyLock, Mutex}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool::thread_pool::线程池` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tool::thread_pool::线程池; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `http协议版本` should have an upper camel case name [INFO] [stdout] --> src/network/http请求.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum http协议版本{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Http协议版本` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `http请求` should have an upper camel case name [INFO] [stdout] --> src/network/http请求.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct http请求{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time::Duration` [INFO] [stdout] --> src/network/router.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Write, net::TcpStream, thread, time::Duration}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self`, `tool::tool::解析请求体json数据为结构体`, `删除记忆选项`, `增加记忆选项`, and `结果` [INFO] [stdout] --> src/network/router.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{tool::tool::解析请求体json数据为结构体, url::{ai::question_api, diary_work::{self, 调整计划::{删除计划api, 增加计划api, 寻找所有计划, 提交完成计划api, 撤销完成计划api, 查询完成计划api, 查询某日的完成任务情况api}}, memory::{删除记忆选项, 删除记忆选项api, 增加记忆选项, 增加记忆选项api, 查找记忆选项, 获取复习记忆选项}, 结果}}; ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/network/router.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use cookie::{ time, Cookie}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/router.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/network/router.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool::database::数据库连接池` [INFO] [stdout] --> src/network/router.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{tool::database::数据库连接池, tool::log::{日志生产者, 日志级别}, login::{处理api_login请求, 处理api_register请求, 数据库登录查询 ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `env`, `fs`, `path::PathBuf`, `sync::mpsc`, `thread`, and `time::Duration` [INFO] [stdout] --> src/network.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | env, fs, io::{prelude::*, BufReader}, net::{TcpListener, TcpStream}, path::PathBuf, sync::mpsc, thread, time::Duration [INFO] [stdout] | ^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `project_root::get_project_root` [INFO] [stdout] --> src/network.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use project_root::get_project_root; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `请求方法` [INFO] [stdout] --> src/network.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use http请求::{请求方法}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `根据信息回复http报文` and `根据文件路径回复http报文` [INFO] [stdout] --> src/network.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use http回应::{根据信息回复http报文, 根据文件路径回复http报文}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `处理api_login请求`, `处理api_register请求`, and `日志信息` [INFO] [stdout] --> src/network.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{login::{处理api_login请求, 处理api_register请求}, tool::log::{self, 日志信息, 日志生产者, 日志级别}, tool::thread_pool::线程池}; ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `请求方法` [INFO] [stdout] --> src/login.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::network::http请求::{self, 请求方法}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql::prelude` [INFO] [stdout] --> src/login.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use mysql::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/tool/log.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, FixedOffset, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefCell` [INFO] [stdout] --> src/tool/thread_pool.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, error::Error, sync::{mpsc::{self, Sender}, Arc, Mutex, OnceLock}, thread::{self, JoinHandle}}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/tool/tool.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{de::DeserializeOwned, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `数据库连接url` and `用户数据` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | ...se::{数据库连接池, 用户数据}, log::{日志生产者, 日志级别}, tool::解析请求体json数据为结构体}, 数据库连接url}; ... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/diary_work/调整计划.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - if (查询结果.len()==0){ [INFO] [stdout] 125 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/diary_work/调整计划.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 145 - if (查询结果.len()==0){ [INFO] [stdout] 145 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek请求json体类` should have an upper camel case name [INFO] [stdout] --> src/url/ai.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct deepseek请求json体类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Deepseek请求json体类` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek回应json类` should have an upper camel case name [INFO] [stdout] --> src/url/ai.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct deepseek回应json类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Deepseek回应json类` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de::value` [INFO] [stdout] --> src/url/memory.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{de::value, Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Memory_key` should have an upper camel case name [INFO] [stdout] --> src/url/memory.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Memory_key { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `memory_review` should have an upper camel case name [INFO] [stdout] --> src/url/memory.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct memory_review { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryReview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/tool/log.rs:51:45 [INFO] [stdout] | [INFO] [stdout] 51 | let naive_datetime = NaiveDateTime::from_timestamp(timestamp as i64, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/tool/log.rs:52:57 [INFO] [stdout] | [INFO] [stdout] 52 | let datetime: DateTime = DateTime::from_utc(naive_datetime, offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/url/memory.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 122 | return Ok(查询结果2[0].clone()); [INFO] [stdout] | ------------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 126 | Err("未实现".into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn router(切割结果:Vec<&str>,http请求:http请求,mut stream:TcpStream,用户:Option<数据库登录查询信息>){ [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/network/router.rs:59:44 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn router_post_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:65:64 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:70:65 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn router_get_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:70:44 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn router_get_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn router_post_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:77:52 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn router_post_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:91:72 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn router_get_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:91:51 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn router_get_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [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/network/router.rs:101:48 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn router_post_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:110:26 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:110:68 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户信息` [INFO] [stdout] --> src/network/router.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | Ok((用户信息,jwt_token))=>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_用户信息` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn router_post_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:159:37 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn 判断是否是一级url并处理(切割结果:Vec<&str>,mut stream:TcpStream,http请求:http请求,用户:Option<数据库登录查询信息>,状态行:&str,正文路 ... [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/network/router.rs:166:74 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn 判断api处理是否成功并处理(api结果:Result,状态行:&str,信息:String,mut stream:TcpStream){ [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/network.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut http请求字符串=String::from_utf8(read_buffer.to_vec()).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/network.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut http请求:http请求::http请求=http请求字符串.into(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling startup_machine_91 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `当前时间戳` [INFO] [stdout] --> src/login.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let 当前时间戳 = SystemTime::now() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_当前时间戳` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `错误` [INFO] [stdout] --> src/tool/log.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | Err(错误)=>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_错误` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/url/memory.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn 查找记忆选项(用户:数据库登录查询信息,http请求:http请求)->结果>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/url/memory.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn 获取复习记忆选项(用户:数据库登录查询信息,http请求:http请求)->结果{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date` [INFO] [stdout] --> src/url/memory.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | |(username,key,date,epoch): (Vec, Vec, mysql::Value, i32)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek请求json体类` is more private than the item `根据信息请求deepseek报文` [INFO] [stdout] --> src/url/ai.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `deepseek请求json体类` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/url/ai.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | struct deepseek请求json体类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek回应json类` is more private than the item `根据信息请求deepseek报文` [INFO] [stdout] --> src/url/ai.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `deepseek回应json类` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/url/ai.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | struct deepseek回应json类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `日志显示级别` is never used [INFO] [stdout] --> src/lib.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | static 日志显示级别:日志级别=日志级别::INFO; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `join_handle` are never read [INFO] [stdout] --> src/tool/thread_pool.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct Worker{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | pub id:u32, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub join_handle:JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `数据库连接url` should have an upper case name [INFO] [stdout] --> src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | static 数据库连接url: &str = "mysql://root:aA147741@localhost:3306/rust91"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `数据库连接URL` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `deepseek_api` should have an upper case name [INFO] [stdout] --> src/lib.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | static deepseek_api:&str="sk-b0b8e26ba39040f690e56e2ad892b7f5"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `DEEPSEEK_API` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tool/log.rs:76:29 [INFO] [stdout] | [INFO] [stdout] 76 | Some(通道) =>{通道.send(要发送的日志);}, [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] 76 | Some(通道) =>{let _ = 通道.send(要发送的日志);}, [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tool/thread_pool.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | self.线程[最少任务工作者 as usize].派发工作(Box::new(f)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 68 | let _ = self.线程[最少任务工作者 as usize].派发工作(Box::new(f)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Worker` should have a snake case name [INFO] [stdout] --> src/tool/thread_pool.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | for Worker in &self.线程{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `worker` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/diary_work/调整计划.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | 增加计划(解析结果.username,解析结果.planname); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 24 | let _ = 增加计划(解析结果.username,解析结果.planname); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/memory.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | 增加记忆选项(用户.username.clone(), memory.key.clone(), memory.value, memory.option1, memory.option2, memory.option3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = 增加记忆选项(用户.username.clone(), memory.key.clone(), memory.value, memory.option1, memory.option2, memory.option3); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/memory.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | 增加当日记忆复习选项(用户.username, memory.key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = 增加当日记忆复习选项(用户.username, memory.key); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LazyLock` and `Mutex` [INFO] [stdout] --> src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{LazyLock, Mutex}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool::thread_pool::线程池` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tool::thread_pool::线程池; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `http协议版本` should have an upper camel case name [INFO] [stdout] --> src/network/http请求.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum http协议版本{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Http协议版本` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `http请求` should have an upper camel case name [INFO] [stdout] --> src/network/http请求.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct http请求{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time::Duration` [INFO] [stdout] --> src/network/router.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Write, net::TcpStream, thread, time::Duration}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self`, `tool::tool::解析请求体json数据为结构体`, `删除记忆选项`, `增加记忆选项`, and `结果` [INFO] [stdout] --> src/network/router.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{tool::tool::解析请求体json数据为结构体, url::{ai::question_api, diary_work::{self, 调整计划::{删除计划api, 增加计划api, 寻找所有计划, 提交完成计划api, 撤销完成计划api, 查询完成计划api, 查询某日的完成任务情况api}}, memory::{删除记忆选项, 删除记忆选项api, 增加记忆选项, 增加记忆选项api, 查找记忆选项, 获取复习记忆选项}, 结果}}; ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/network/router.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use cookie::{ time, Cookie}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/router.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/network/router.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool::database::数据库连接池` [INFO] [stdout] --> src/network/router.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{tool::database::数据库连接池, tool::log::{日志生产者, 日志级别}, login::{处理api_login请求, 处理api_register请求, 数据库登录查询 ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `env`, `fs`, `path::PathBuf`, `sync::mpsc`, `thread`, and `time::Duration` [INFO] [stdout] --> src/network.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | env, fs, io::{prelude::*, BufReader}, net::{TcpListener, TcpStream}, path::PathBuf, sync::mpsc, thread, time::Duration [INFO] [stdout] | ^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `project_root::get_project_root` [INFO] [stdout] --> src/network.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use project_root::get_project_root; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `请求方法` [INFO] [stdout] --> src/network.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use http请求::{请求方法}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `根据信息回复http报文` and `根据文件路径回复http报文` [INFO] [stdout] --> src/network.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use http回应::{根据信息回复http报文, 根据文件路径回复http报文}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `处理api_login请求`, `处理api_register请求`, and `日志信息` [INFO] [stdout] --> src/network.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{login::{处理api_login请求, 处理api_register请求}, tool::log::{self, 日志信息, 日志生产者, 日志级别}, tool::thread_pool::线程池}; ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `请求方法` [INFO] [stdout] --> src/login.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::network::http请求::{self, 请求方法}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql::prelude` [INFO] [stdout] --> src/login.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use mysql::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::数据库连接url` [INFO] [stdout] --> src/login.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | use crate::数据库连接url; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/tool/log.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, FixedOffset, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefCell` [INFO] [stdout] --> src/tool/thread_pool.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, error::Error, sync::{mpsc::{self, Sender}, Arc, Mutex, OnceLock}, thread::{self, JoinHandle}}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::Thread` [INFO] [stdout] --> src/tool/thread_pool.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | use std::{thread::Thread, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/tool/tool.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{de::DeserializeOwned, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `数据库连接url` and `用户数据` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | ...se::{数据库连接池, 用户数据}, log::{日志生产者, 日志级别}, tool::解析请求体json数据为结构体}, 数据库连接url}; ... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/diary_work/调整计划.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - if (查询结果.len()==0){ [INFO] [stdout] 125 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/diary_work/调整计划.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 145 - if (查询结果.len()==0){ [INFO] [stdout] 145 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/url/diary_work/调整计划.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek请求json体类` should have an upper camel case name [INFO] [stdout] --> src/url/ai.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct deepseek请求json体类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Deepseek请求json体类` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek回应json类` should have an upper camel case name [INFO] [stdout] --> src/url/ai.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct deepseek回应json类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Deepseek回应json类` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de::value` [INFO] [stdout] --> src/url/memory.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{de::value, Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Memory_key` should have an upper camel case name [INFO] [stdout] --> src/url/memory.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Memory_key { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `memory_review` should have an upper camel case name [INFO] [stdout] --> src/url/memory.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct memory_review { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryReview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/tool/log.rs:51:45 [INFO] [stdout] | [INFO] [stdout] 51 | let naive_datetime = NaiveDateTime::from_timestamp(timestamp as i64, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/tool/log.rs:52:57 [INFO] [stdout] | [INFO] [stdout] 52 | let datetime: DateTime = DateTime::from_utc(naive_datetime, offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/url/memory.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 122 | return Ok(查询结果2[0].clone()); [INFO] [stdout] | ------------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 126 | Err("未实现".into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn router(切割结果:Vec<&str>,http请求:http请求,mut stream:TcpStream,用户:Option<数据库登录查询信息>){ [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/network/router.rs:59:44 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn router_post_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:65:64 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:70:65 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn router_get_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:70:44 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn router_get_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn router_post_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:77:52 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn router_post_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:91:72 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn router_get_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:91:51 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn router_get_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [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/network/router.rs:101:48 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn router_post_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:110:26 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:110:68 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户信息` [INFO] [stdout] --> src/network/router.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | Ok((用户信息,jwt_token))=>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_用户信息` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn router_post_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:159:37 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn 判断是否是一级url并处理(切割结果:Vec<&str>,mut stream:TcpStream,http请求:http请求,用户:Option<数据库登录查询信息>,状态行:&str,正文路 ... [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/network/router.rs:166:74 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn 判断api处理是否成功并处理(api结果:Result,状态行:&str,信息:String,mut stream:TcpStream){ [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/network.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut http请求字符串=String::from_utf8(read_buffer.to_vec()).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/network.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut http请求:http请求::http请求=http请求字符串.into(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `当前时间戳` [INFO] [stdout] --> src/login.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let 当前时间戳 = SystemTime::now() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_当前时间戳` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `错误` [INFO] [stdout] --> src/tool/log.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | Err(错误)=>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_错误` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tool/thread_pool.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | for i in 0..100{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tool/thread_pool.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/url/memory.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn 查找记忆选项(用户:数据库登录查询信息,http请求:http请求)->结果>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/url/memory.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn 获取复习记忆选项(用户:数据库登录查询信息,http请求:http请求)->结果{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date` [INFO] [stdout] --> src/url/memory.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | |(username,key,date,epoch): (Vec, Vec, mysql::Value, i32)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ai::deepseek请求json体类` is more private than the item `ai::根据信息请求deepseek报文` [INFO] [stdout] --> src/url/ai.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `ai::根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ai::deepseek请求json体类` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/url/ai.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | struct deepseek请求json体类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `deepseek回应json类` is more private than the item `ai::根据信息请求deepseek报文` [INFO] [stdout] --> src/url/ai.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `ai::根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `deepseek回应json类` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/url/ai.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | struct deepseek回应json类{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `日志显示级别` is never used [INFO] [stdout] --> src/lib.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | static 日志显示级别:日志级别=日志级别::INFO; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `join_handle` are never read [INFO] [stdout] --> src/tool/thread_pool.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct Worker{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | pub id:u32, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub join_handle:JoinHandle<()>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `数据库连接url` should have an upper case name [INFO] [stdout] --> src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | static 数据库连接url: &str = "mysql://root:aA147741@localhost:3306/rust91"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `数据库连接URL` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `deepseek_api` should have an upper case name [INFO] [stdout] --> src/lib.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | static deepseek_api:&str="sk-b0b8e26ba39040f690e56e2ad892b7f5"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `DEEPSEEK_API` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tool/log.rs:76:29 [INFO] [stdout] | [INFO] [stdout] 76 | Some(通道) =>{通道.send(要发送的日志);}, [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] 76 | Some(通道) =>{let _ = 通道.send(要发送的日志);}, [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tool/thread_pool.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | self.线程[最少任务工作者 as usize].派发工作(Box::new(f)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 68 | let _ = self.线程[最少任务工作者 as usize].派发工作(Box::new(f)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Worker` should have a snake case name [INFO] [stdout] --> src/tool/thread_pool.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | for Worker in &self.线程{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `worker` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/tool/thread_pool.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | let test=unsafe { & mut TEST }; [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 100 - let test=unsafe { & mut TEST }; [INFO] [stdout] 100 + let test=unsafe { &raw mut TEST }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/tool/thread_pool.rs:109:29 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe{assert_eq!(*(TEST.lock().unwrap()),300);} [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/diary_work/调整计划.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | 增加计划(解析结果.username,解析结果.planname); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 24 | let _ = 增加计划(解析结果.username,解析结果.planname); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/memory.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | 增加记忆选项(用户.username.clone(), memory.key.clone(), memory.value, memory.option1, memory.option2, memory.option3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = 增加记忆选项(用户.username.clone(), memory.key.clone(), memory.value, memory.option1, memory.option2, memory.option3); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/memory.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | 增加当日记忆复习选项(用户.username, memory.key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = 增加当日记忆复习选项(用户.username, memory.key); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.19s [INFO] running `Command { std: "docker" "inspect" "4812dcf616ab8661fa16a03c719788db51a1e55ba76961b4974e41caf67eda1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4812dcf616ab8661fa16a03c719788db51a1e55ba76961b4974e41caf67eda1b", kill_on_drop: false }` [INFO] [stdout] 4812dcf616ab8661fa16a03c719788db51a1e55ba76961b4974e41caf67eda1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b3025aeb13b7c3f62479108f3bc42ee036d8b25c30cd122e0dff6c1c17fbf50c [INFO] running `Command { std: "docker" "start" "-a" "b3025aeb13b7c3f62479108f3bc42ee036d8b25c30cd122e0dff6c1c17fbf50c", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `LazyLock` and `Mutex` [INFO] [stderr] --> src/lib.rs:1:17 [INFO] [stderr] | [INFO] [stderr] 1 | use std::sync::{LazyLock, Mutex}; [INFO] [stderr] | ^^^^^^^^ ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `tool::thread_pool::线程池` [INFO] [stderr] --> src/lib.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use tool::thread_pool::线程池; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `http协议版本` should have an upper camel case name [INFO] [stderr] --> src/network/http请求.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | pub enum http协议版本{ [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Http协议版本` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `http请求` should have an upper camel case name [INFO] [stderr] --> src/network/http请求.rs:73:12 [INFO] [stderr] | [INFO] [stderr] 73 | pub struct http请求{ [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http请求` [INFO] [stderr] [INFO] [stderr] warning: unused imports: `thread` and `time::Duration` [INFO] [stderr] --> src/network/router.rs:1:38 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{io::Write, net::TcpStream, thread, time::Duration}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `self`, `tool::tool::解析请求体json数据为结构体`, `删除记忆选项`, `增加记忆选项`, and `结果` [INFO] [stderr] --> src/network/router.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | ...::{tool::tool::解析请求体json数据为结构体, url::{ai::question_api, diary_work::{self, 调整计划::{删除计划api, 增加计划api, 寻找所有计划, 提交完成计划api, 撤销完成计划api, 查询完成计划api, 查询某日的完成任务情况api}}, memory::{删除记忆选项, 删除记忆选项api, 增加记忆选项, 增加记忆选项api, 查找记忆选项, 获取复习记忆选项}, 结果}}; ... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `time` [INFO] [stderr] --> src/network/router.rs:3:15 [INFO] [stderr] | [INFO] [stderr] 3 | use cookie::{ time, Cookie}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/network/router.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/network/router.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tool::database::数据库连接池` [INFO] [stderr] --> src/network/router.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::{tool::database::数据库连接池, tool::log::{日志生产者, 日志级别}, login::{处理api_login请求, 处理api_register请求, 数据库登录查询 ... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BufReader`, `env`, `fs`, `path::PathBuf`, `sync::mpsc`, `thread`, and `time::Duration` [INFO] [stderr] --> src/network.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | env, fs, io::{prelude::*, BufReader}, net::{TcpListener, TcpStream}, path::PathBuf, sync::mpsc, thread, time::Duration [INFO] [stderr] | ^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `project_root::get_project_root` [INFO] [stderr] --> src/network.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use project_root::get_project_root; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `请求方法` [INFO] [stderr] --> src/network.rs:10:14 [INFO] [stderr] | [INFO] [stderr] 10 | use http请求::{请求方法}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `根据信息回复http报文` and `根据文件路径回复http报文` [INFO] [stderr] --> src/network.rs:11:14 [INFO] [stderr] | [INFO] [stderr] 11 | use http回应::{根据信息回复http报文, 根据文件路径回复http报文}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `处理api_login请求`, `处理api_register请求`, and `日志信息` [INFO] [stderr] --> src/network.rs:12:21 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::{login::{处理api_login请求, 处理api_register请求}, tool::log::{self, 日志信息, 日志生产者, 日志级别}, tool::thread_pool::线程池}; ... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `请求方法` [INFO] [stderr] --> src/login.rs:7:36 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::network::http请求::{self, 请求方法}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `mysql::prelude` [INFO] [stderr] --> src/login.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use mysql::prelude; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Utc` [INFO] [stderr] --> src/tool/log.rs:3:52 [INFO] [stderr] | [INFO] [stderr] 3 | use chrono::{DateTime, FixedOffset, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cell::RefCell` [INFO] [stderr] --> src/tool/thread_pool.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cell::RefCell, error::Error, sync::{mpsc::{self, Sender}, Arc, Mutex, OnceLock}, thread::{self, JoinHandle}}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/tool/tool.rs:3:35 [INFO] [stderr] | [INFO] [stderr] 3 | use serde::{de::DeserializeOwned, Deserialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `result` [INFO] [stderr] --> src/url/diary_work/调整计划.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{error::Error, result}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `de` [INFO] [stderr] --> src/url/diary_work/调整计划.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use serde::{de, Deserialize, Serialize}; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `数据库连接url` and `用户数据` [INFO] [stderr] --> src/url/diary_work/调整计划.rs:6:66 [INFO] [stderr] | [INFO] [stderr] 6 | ...se::{数据库连接池, 用户数据}, log::{日志生产者, 日志级别}, tool::解析请求体json数据为结构体}, 数据库连接url}; ... [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/url/diary_work/调整计划.rs:125:8 [INFO] [stderr] | [INFO] [stderr] 125 | if (查询结果.len()==0){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 125 - if (查询结果.len()==0){ [INFO] [stderr] 125 + if 查询结果.len()==0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/url/diary_work/调整计划.rs:145:8 [INFO] [stderr] | [INFO] [stderr] 145 | if (查询结果.len()==0){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 145 - if (查询结果.len()==0){ [INFO] [stderr] 145 + if 查询结果.len()==0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: type `deepseek请求json体类` should have an upper camel case name [INFO] [stderr] --> src/url/ai.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 18 | struct deepseek请求json体类{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Deepseek请求json体类` [INFO] [stderr] [INFO] [stderr] warning: type `deepseek回应json类` should have an upper camel case name [INFO] [stderr] --> src/url/ai.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | struct deepseek回应json类{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Deepseek回应json类` [INFO] [stderr] [INFO] [stderr] warning: unused import: `de::value` [INFO] [stderr] --> src/url/memory.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | use serde::{de::value, Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Memory_key` should have an upper camel case name [INFO] [stderr] --> src/url/memory.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct Memory_key { [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryKey` [INFO] [stderr] [INFO] [stderr] warning: type `memory_review` should have an upper camel case name [INFO] [stderr] --> src/url/memory.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 27 | pub struct memory_review { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MemoryReview` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stderr] --> src/tool/log.rs:51:45 [INFO] [stderr] | [INFO] [stderr] 51 | let naive_datetime = NaiveDateTime::from_timestamp(timestamp as i64, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stderr] --> src/tool/log.rs:52:57 [INFO] [stderr] | [INFO] [stderr] 52 | let datetime: DateTime = DateTime::from_utc(naive_datetime, offset); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/url/memory.rs:126:5 [INFO] [stderr] | [INFO] [stderr] 122 | return Ok(查询结果2[0].clone()); [INFO] [stderr] | ------------------------------- any code following this expression is unreachable [INFO] [stderr] ... [INFO] [stderr] 126 | Err("未实现".into()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/router.rs:34:44 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn router(切割结果:Vec<&str>,http请求:http请求,mut stream:TcpStream,用户:Option<数据库登录查询信息>){ [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/network/router.rs:59:44 [INFO] [stderr] | [INFO] [stderr] 59 | pub fn router_post_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `用户` [INFO] [stderr] --> src/network/router.rs:65:22 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `http请求` [INFO] [stderr] --> src/network/router.rs:65:64 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/router.rs:65:43 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn router_get_ai(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `http请求` [INFO] [stderr] --> src/network/router.rs:70:65 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn router_get_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/router.rs:70:44 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn router_get_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `用户` [INFO] [stderr] --> src/network/router.rs:77:31 [INFO] [stderr] | [INFO] [stderr] 77 | pub fn router_post_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/router.rs:77:52 [INFO] [stderr] | [INFO] [stderr] 77 | pub fn router_post_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `http请求` [INFO] [stderr] --> src/network/router.rs:91:72 [INFO] [stderr] | [INFO] [stderr] 91 | pub fn router_get_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/router.rs:91:51 [INFO] [stderr] | [INFO] [stderr] 91 | pub fn router_get_diary_work(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [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/network/router.rs:101:48 [INFO] [stderr] | [INFO] [stderr] 101 | pub fn router_post_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `用户` [INFO] [stderr] --> src/network/router.rs:110:26 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `http请求` [INFO] [stderr] --> src/network/router.rs:110:68 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/router.rs:110:47 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn router_get_memory(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `用户信息` [INFO] [stderr] --> src/network/router.rs:122:21 [INFO] [stderr] | [INFO] [stderr] 122 | Ok((用户信息,jwt_token))=>{ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_用户信息` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `用户` [INFO] [stderr] --> src/network/router.rs:118:24 [INFO] [stderr] | [INFO] [stderr] 118 | pub fn router_post_api(用户:Option<数据库登录查询信息>,mut stream:TcpStream,http请求:http请求,切割结果:Vec<&str>){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_用户` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/router.rs:159:37 [INFO] [stderr] | [INFO] [stderr] 159 | pub fn 判断是否是一级url并处理(切割结果:Vec<&str>,mut stream:TcpStream,http请求:http请求,用户:Option<数据库登录查询信息>,状态行:&str,正文路 ... [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/network/router.rs:166:74 [INFO] [stderr] | [INFO] [stderr] 166 | pub fn 判断api处理是否成功并处理(api结果:Result,状态行:&str,信息:String,mut stream:TcpStream){ [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/network.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | let mut http请求字符串=String::from_utf8(read_buffer.to_vec()).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/network.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | let mut http请求:http请求::http请求=http请求字符串.into(); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `当前时间戳` [INFO] [stderr] --> src/login.rs:35:13 [INFO] [stderr] | [INFO] [stderr] 35 | let 当前时间戳 = SystemTime::now() [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_当前时间戳` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `错误` [INFO] [stderr] --> src/tool/log.rs:117:25 [INFO] [stderr] | [INFO] [stderr] 117 | Err(错误)=>{ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_错误` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `http请求` [INFO] [stderr] --> src/url/memory.rs:73:28 [INFO] [stderr] | [INFO] [stderr] 73 | pub fn 查找记忆选项(用户:数据库登录查询信息,http请求:http请求)->结果>{ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `http请求` [INFO] [stderr] --> src/url/memory.rs:87:30 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn 获取复习记忆选项(用户:数据库登录查询信息,http请求:http请求)->结果{ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http请求` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `date` [INFO] [stderr] --> src/url/memory.rs:91:24 [INFO] [stderr] | [INFO] [stderr] 91 | |(username,key,date,epoch): (Vec, Vec, mysql::Value, i32)| { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stderr] [INFO] [stderr] warning: type `deepseek请求json体类` is more private than the item `根据信息请求deepseek报文` [INFO] [stderr] --> src/url/ai.rs:106:1 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `deepseek请求json体类` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/url/ai.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | struct deepseek请求json体类{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `deepseek回应json类` is more private than the item `根据信息请求deepseek报文` [INFO] [stderr] --> src/url/ai.rs:106:1 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `deepseek回应json类` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/url/ai.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | struct deepseek回应json类{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `日志显示级别` is never used [INFO] [stderr] --> src/lib.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | static 日志显示级别:日志级别=日志级别::INFO; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `id` and `join_handle` are never read [INFO] [stderr] --> src/tool/thread_pool.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 5 | struct Worker{ [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 6 | pub id:u32, [INFO] [stderr] | ^^ [INFO] [stderr] 7 | pub join_handle:JoinHandle<()>, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static variable `数据库连接url` should have an upper case name [INFO] [stderr] --> src/lib.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | static 数据库连接url: &str = "mysql://root:aA147741@localhost:3306/rust91"; [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `数据库连接URL` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static variable `deepseek_api` should have an upper case name [INFO] [stderr] --> src/lib.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | static deepseek_api:&str="sk-b0b8e26ba39040f690e56e2ad892b7f5"; [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `DEEPSEEK_API` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/tool/log.rs:76:29 [INFO] [stderr] | [INFO] [stderr] 76 | Some(通道) =>{通道.send(要发送的日志);}, [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] 76 | Some(通道) =>{let _ = 通道.send(要发送的日志);}, [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/tool/thread_pool.rs:68:9 [INFO] [stderr] | [INFO] [stderr] 68 | self.线程[最少任务工作者 as usize].派发工作(Box::new(f)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 68 | let _ = self.线程[最少任务工作者 as usize].派发工作(Box::new(f)); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: variable `Worker` should have a snake case name [INFO] [stderr] --> src/tool/thread_pool.rs:79:13 [INFO] [stderr] | [INFO] [stderr] 79 | for Worker in &self.线程{ [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `worker` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/url/diary_work/调整计划.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | 增加计划(解析结果.username,解析结果.planname); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 24 | let _ = 增加计划(解析结果.username,解析结果.planname); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/url/memory.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | 增加记忆选项(用户.username.clone(), memory.key.clone(), memory.value, memory.option1, memory.option2, memory.option3); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 55 | let _ = 增加记忆选项(用户.username.clone(), memory.key.clone(), memory.value, memory.option1, memory.option2, memory.option3); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/url/memory.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | 增加当日记忆复习选项(用户.username, memory.key); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 56 | let _ = 增加当日记忆复习选项(用户.username, memory.key); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::数据库连接url` [INFO] [stderr] --> src/login.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | use crate::数据库连接url; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `thread::Thread` [INFO] [stderr] --> src/tool/thread_pool.rs:91:15 [INFO] [stderr] | [INFO] [stderr] 91 | use std::{thread::Thread, time::Duration}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> src/url/diary_work/调整计划.rs:152:9 [INFO] [stderr] | [INFO] [stderr] 152 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/tool/thread_pool.rs:99:13 [INFO] [stderr] | [INFO] [stderr] 99 | for i in 0..100{ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/tool/thread_pool.rs:102:21 [INFO] [stderr] | [INFO] [stderr] 102 | for i in 0..3{ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: type `ai::deepseek请求json体类` is more private than the item `ai::根据信息请求deepseek报文` [INFO] [stderr] --> src/url/ai.rs:106:1 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `ai::根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ai::deepseek请求json体类` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/url/ai.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | struct deepseek请求json体类{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `deepseek回应json类` is more private than the item `ai::根据信息请求deepseek报文` [INFO] [stderr] --> src/url/ai.rs:106:1 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn 根据信息请求deepseek报文(deepseek请求json体:deepseek请求json体类)->结果{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `ai::根据信息请求deepseek报文` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `deepseek回应json类` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/url/ai.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | struct deepseek回应json类{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/tool/thread_pool.rs:100:31 [INFO] [stderr] | [INFO] [stderr] 100 | let test=unsafe { & mut TEST }; [INFO] [stderr] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 100 - let test=unsafe { & mut TEST }; [INFO] [stderr] 100 + let test=unsafe { &raw mut TEST }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/tool/thread_pool.rs:109:29 [INFO] [stderr] | [INFO] [stderr] 109 | unsafe{assert_eq!(*(TEST.lock().unwrap()),300);} [INFO] [stderr] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: `startup_machine_91` (lib) generated 71 warnings (run `cargo fix --lib -p startup_machine_91` to apply 36 suggestions) [INFO] [stderr] warning: `startup_machine_91` (lib test) generated 78 warnings (69 duplicates) (run `cargo fix --lib -p startup_machine_91 --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/startup_machine_91-b135c106fee233aa) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test login::test::测试json序列化 ... ok [INFO] [stdout] test network::http请求::test::测试http请求解析正常情况 ... ok [INFO] [stdout] test url::diary_work::调整计划::test::测试删除计划 ... ok [INFO] [stdout] test tool::thread_pool::test::测试线程池_正常情况 ... ok [INFO] [stdout] test login::test::测试连接mysql数据库 ... FAILED [INFO] [stdout] test url::ai::test::测试deepseek连接是否成功 ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- login::test::测试连接mysql数据库 stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'login::test::测试连接mysql数据库' panicked at src/tool/database.rs:12:83: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: DriverError { Could not connect to address `localhost:3306': Connection refused (os error 111) } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x613dc4e27060 - std::backtrace_rs::backtrace::libunwind::trace::h2b8934d68a0c74cb [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x613dc4e27060 - std::backtrace_rs::backtrace::trace_unsynchronized::h72d137991fa6eab8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x613dc4e27060 - std::sys::backtrace::_print_fmt::h3e831e32e6da920b [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x613dc4e27060 - ::fmt::h6d42cc84fc840290 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x613dc4e517a3 - core::fmt::rt::Argument::fmt::h7239af9e2199f2a8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/fmt/rt.rs:177:76 [INFO] [stdout] 5: 0x613dc4e517a3 - core::fmt::write::h5af61a909e3ec64d [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/fmt/mod.rs:1449:21 [INFO] [stdout] 6: 0x613dc4e23363 - std::io::Write::write_fmt::h64baa9197d9a3b04 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/io/mod.rs:1890:15 [INFO] [stdout] 7: 0x613dc4e26eb2 - std::sys::backtrace::BacktraceLock::print::h555579e7396c26ac [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 8: 0x613dc4e2848f - std::panicking::default_hook::{{closure}}::h9128866118196224 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:298:22 [INFO] [stdout] 9: 0x613dc4e282a8 - std::panicking::default_hook::h52e9e7314e0255f6 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:322:9 [INFO] [stdout] 10: 0x613dc46d4ae5 - as core::ops::function::Fn>::call::hb86f691850cc3c26 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1990:9 [INFO] [stdout] 11: 0x613dc46d4ae5 - test::test_main::{{closure}}::h903d8079e3c94d93 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:135:21 [INFO] [stdout] 12: 0x613dc4e28f03 - as core::ops::function::Fn>::call::h7c356b28a03897d7 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1990:9 [INFO] [stdout] 13: 0x613dc4e28f03 - std::panicking::rust_panic_with_hook::h541791bcc774ef34 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:839:13 [INFO] [stdout] 14: 0x613dc4e28bda - std::panicking::begin_panic_handler::{{closure}}::h6479a2f0137c7d19 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:704:13 [INFO] [stdout] 15: 0x613dc4e27579 - std::sys::backtrace::__rust_end_short_backtrace::ha04e7c0fc61ded91 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 16: 0x613dc4e2886d - rust_begin_unwind [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5 [INFO] [stdout] 17: 0x613dc465b520 - core::panicking::panic_fmt::h5764ee7030b7a73d [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14 [INFO] [stdout] 18: 0x613dc465b9c6 - core::result::unwrap_failed::h3ff7104a9ace307a [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/result.rs:1704:5 [INFO] [stdout] 19: 0x613dc4675810 - core::result::Result::unwrap::h3892216f7c19692d [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/result.rs:1109:23 [INFO] [stdout] 20: 0x613dc4675810 - startup_machine_91::tool::database::数据库连接池::get_instance::{{closure}}::h482803b4f1f11e1a [INFO] [stdout] at /opt/rustwide/workdir/src/tool/database.rs:12:44 [INFO] [stdout] 21: 0x613dc4670377 - std::sync::once_lock::OnceLock::get_or_init::{{closure}}::h420b0876029c6394 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sync/once_lock.rs:310:50 [INFO] [stdout] 22: 0x613dc46702c5 - std::sync::once_lock::OnceLock::initialize::{{closure}}::h910d73bc9c4e150d [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sync/once_lock.rs:518:19 [INFO] [stdout] 23: 0x613dc46813de - std::sync::poison::once::Once::call_once_force::{{closure}}::h4a72cd2c3eca402f [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sync/poison/once.rs:214:40 [INFO] [stdout] 24: 0x613dc465a414 - std::sys::sync::once::futex::Once::call::hba97699ec60164cd [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/sync/once/futex.rs:176:21 [INFO] [stdout] 25: 0x613dc4681315 - std::sync::poison::once::Once::call_once_force::h658b508f698b3188 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sync/poison/once.rs:214:9 [INFO] [stdout] 26: 0x613dc4670277 - std::sync::once_lock::OnceLock::initialize::hbedaf6d476a389da [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sync/once_lock.rs:517:9 [INFO] [stdout] 27: 0x613dc467042a - std::sync::once_lock::OnceLock::get_or_try_init::hf633918e7cdbea4f [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sync/once_lock.rs:396:9 [INFO] [stdout] 28: 0x613dc467033e - std::sync::once_lock::OnceLock::get_or_init::hc7051741322f50e1 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sync/once_lock.rs:310:15 [INFO] [stdout] 29: 0x613dc467577d - startup_machine_91::tool::database::数据库连接池::get_instance::h747c8de5256b8e1f [INFO] [stdout] at /opt/rustwide/workdir/src/tool/database.rs:12:9 [INFO] [stdout] 30: 0x613dc4667b7c - startup_machine_91::login::test::测试连接mysql数据库::h2ad36e419d1c016d [INFO] [stdout] at /opt/rustwide/workdir/src/login.rs:120:24 [INFO] [stdout] 31: 0x613dc4667b27 - startup_machine_91::login::test::测试连接mysql数据库::{{closure}}::h719f8a395a34db47 [INFO] [stdout] at /opt/rustwide/workdir/src/login.rs:119:36 [INFO] [stdout] 32: 0x613dc46790c6 - core::ops::function::FnOnce::call_once::h3a99845e663f3e41 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 33: 0x613dc46da26b - core::ops::function::FnOnce::call_once::h1dfa20b1ec1f6e08 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 34: 0x613dc46da26b - test::__rust_begin_short_backtrace::h7b10906492afc420 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:637:18 [INFO] [stdout] 35: 0x613dc46d9158 - test::run_test_in_process::{{closure}}::h51c1c0d319f72c0a [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:660:60 [INFO] [stdout] 36: 0x613dc46d9158 - as core::ops::function::FnOnce<()>>::call_once::h5fadb750f3dbe714 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x613dc46d9158 - std::panicking::try::do_call::h1ca5071cef82bb40 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:587:40 [INFO] [stdout] 38: 0x613dc46d9158 - std::panicking::try::h6931de76fb9a61b1 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:550:19 [INFO] [stdout] 39: 0x613dc46d9158 - std::panic::catch_unwind::h67fc9dccf413f4e5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panic.rs:358:14 [INFO] [stdout] 40: 0x613dc46d9158 - test::run_test_in_process::ha966dfbb1d048be5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:660:27 [INFO] [stdout] 41: 0x613dc46d9158 - test::run_test::{{closure}}::he209928ac5e8a3b8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:581:43 [INFO] [stdout] 42: 0x613dc469d0e5 - test::run_test::{{closure}}::h34c6289e0b5ed5a5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:611:41 [INFO] [stdout] 43: 0x613dc469d0e5 - std::sys::backtrace::__rust_begin_short_backtrace::h365aabf21799e6fc [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 44: 0x613dc46a0b5a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3d5e582cba74b1c3 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 45: 0x613dc46a0b5a - as core::ops::function::FnOnce<()>>::call_once::h1214c75c3f73f94f [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 46: 0x613dc46a0b5a - std::panicking::try::do_call::h73540336a45c0cec [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:587:40 [INFO] [stdout] 47: 0x613dc46a0b5a - std::panicking::try::h428956564307af63 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:550:19 [INFO] [stdout] 48: 0x613dc46a0b5a - std::panic::catch_unwind::h1a53a6ea2f2041e3 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panic.rs:358:14 [INFO] [stdout] 49: 0x613dc46a0b5a - std::thread::Builder::spawn_unchecked_::{{closure}}::hac66cbb88d807e14 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 50: 0x613dc46a0b5a - core::ops::function::FnOnce::call_once{{vtable.shim}}::had7e2d02878d3212 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 51: 0x613dc4e2ce3b - as core::ops::function::FnOnce>::call_once::h292d1663b0785fda [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1976:9 [INFO] [stdout] 52: 0x613dc4e2ce3b - as core::ops::function::FnOnce>::call_once::h9d4af7b531852d72 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1976:9 [INFO] [stdout] 53: 0x613dc4e2ce3b - std::sys::pal::unix::thread::Thread::new::thread_start::hcc5ed016d554f327 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/pal/unix/thread.rs:106:17 [INFO] [stdout] 54: 0x7fd68e98baa4 - [INFO] [stdout] 55: 0x7fd68ea18a34 - clone [INFO] [stdout] 56: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- url::ai::test::测试deepseek连接是否成功 stdout ---- [INFO] [stdout] deepseek请求json体类 { model: "deepseek-chat", messages: [请求体类 { role: "user", content: "wer" }], stream: false } [INFO] [stdout] [INFO] [stdout] thread 'url::ai::test::测试deepseek连接是否成功' panicked at src/url/ai.rs:158:9: [INFO] [stdout] assertion failed: 根据信息请求deepseek报文(json请求).is_ok() [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x613dc4e27060 - std::backtrace_rs::backtrace::libunwind::trace::h2b8934d68a0c74cb [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x613dc4e27060 - std::backtrace_rs::backtrace::trace_unsynchronized::h72d137991fa6eab8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x613dc4e27060 - std::sys::backtrace::_print_fmt::h3e831e32e6da920b [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x613dc4e27060 - ::fmt::h6d42cc84fc840290 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x613dc4e517a3 - core::fmt::rt::Argument::fmt::h7239af9e2199f2a8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/fmt/rt.rs:177:76 [INFO] [stdout] 5: 0x613dc4e517a3 - core::fmt::write::h5af61a909e3ec64d [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/fmt/mod.rs:1449:21 [INFO] [stdout] 6: 0x613dc4e23363 - std::io::Write::write_fmt::h64baa9197d9a3b04 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/io/mod.rs:1890:15 [INFO] [stdout] 7: 0x613dc4e26eb2 - std::sys::backtrace::BacktraceLock::print::h555579e7396c26ac [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 8: 0x613dc4e2848f - std::panicking::default_hook::{{closure}}::h9128866118196224 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:298:22 [INFO] [stdout] 9: 0x613dc4e282a8 - std::panicking::default_hook::h52e9e7314e0255f6 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:322:9 [INFO] [stdout] 10: 0x613dc46d4ae5 - as core::ops::function::Fn>::call::hb86f691850cc3c26 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1990:9 [INFO] [stdout] 11: 0x613dc46d4ae5 - test::test_main::{{closure}}::h903d8079e3c94d93 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:135:21 [INFO] [stdout] 12: 0x613dc4e28f03 - as core::ops::function::Fn>::call::h7c356b28a03897d7 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1990:9 [INFO] [stdout] 13: 0x613dc4e28f03 - std::panicking::rust_panic_with_hook::h541791bcc774ef34 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:839:13 [INFO] [stdout] 14: 0x613dc4e28ba6 - std::panicking::begin_panic_handler::{{closure}}::h6479a2f0137c7d19 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:697:13 [INFO] [stdout] 15: 0x613dc4e27579 - std::sys::backtrace::__rust_end_short_backtrace::ha04e7c0fc61ded91 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 16: 0x613dc4e2886d - rust_begin_unwind [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5 [INFO] [stdout] 17: 0x613dc465b520 - core::panicking::panic_fmt::h5764ee7030b7a73d [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14 [INFO] [stdout] 18: 0x613dc465b5ac - core::panicking::panic::had768957450a0f86 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:145:5 [INFO] [stdout] 19: 0x613dc4676bcd - startup_machine_91::url::ai::test::测试deepseek连接是否成功::hb5f3b85b5135b2b2 [INFO] [stdout] at /opt/rustwide/workdir/src/url/ai.rs:158:9 [INFO] [stdout] 20: 0x613dc4676827 - startup_machine_91::url::ai::test::测试deepseek连接是否成功::{{closure}}::hf717d7258a90b6cc [INFO] [stdout] at /opt/rustwide/workdir/src/url/ai.rs:150:46 [INFO] [stdout] 21: 0x613dc4679276 - core::ops::function::FnOnce::call_once::hb1c84c058f9b8d8b [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 22: 0x613dc46da26b - core::ops::function::FnOnce::call_once::h1dfa20b1ec1f6e08 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x613dc46da26b - test::__rust_begin_short_backtrace::h7b10906492afc420 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:637:18 [INFO] [stdout] 24: 0x613dc46d9158 - test::run_test_in_process::{{closure}}::h51c1c0d319f72c0a [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:660:60 [INFO] [stdout] 25: 0x613dc46d9158 - as core::ops::function::FnOnce<()>>::call_once::h5fadb750f3dbe714 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 26: 0x613dc46d9158 - std::panicking::try::do_call::h1ca5071cef82bb40 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:587:40 [INFO] [stdout] 27: 0x613dc46d9158 - std::panicking::try::h6931de76fb9a61b1 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:550:19 [INFO] [stdout] 28: 0x613dc46d9158 - std::panic::catch_unwind::h67fc9dccf413f4e5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panic.rs:358:14 [INFO] [stdout] 29: 0x613dc46d9158 - test::run_test_in_process::ha966dfbb1d048be5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:660:27 [INFO] [stdout] 30: 0x613dc46d9158 - test::run_test::{{closure}}::he209928ac5e8a3b8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:581:43 [INFO] [stdout] 31: 0x613dc469d0e5 - test::run_test::{{closure}}::h34c6289e0b5ed5a5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:611:41 [INFO] [stdout] 32: 0x613dc469d0e5 - std::sys::backtrace::__rust_begin_short_backtrace::h365aabf21799e6fc [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 33: 0x613dc46a0b5a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3d5e582cba74b1c3 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 34: 0x613dc46a0b5a - as core::ops::function::FnOnce<()>>::call_once::h1214c75c3f73f94f [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 35: 0x613dc46a0b5a - std::panicking::try::do_call::h73540336a45c0cec [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:587:40 [INFO] [stdout] 36: 0x613dc46a0b5a - std::panicking::try::h428956564307af63 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:550:19 [INFO] [stdout] 37: 0x613dc46a0b5a - std::panic::catch_unwind::h1a53a6ea2f2041e3 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panic.rs:358:14 [INFO] [stdout] 38: 0x613dc46a0b5a - std::thread::Builder::spawn_unchecked_::{{closure}}::hac66cbb88d807e14 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 39: 0x613dc46a0b5a - core::ops::function::FnOnce::call_once{{vtable.shim}}::had7e2d02878d3212 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 40: 0x613dc4e2ce3b - as core::ops::function::FnOnce>::call_once::h292d1663b0785fda [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1976:9 [INFO] [stdout] 41: 0x613dc4e2ce3b - as core::ops::function::FnOnce>::call_once::h9d4af7b531852d72 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1976:9 [INFO] [stdout] 42: 0x613dc4e2ce3b - std::sys::pal::unix::thread::Thread::new::thread_start::hcc5ed016d554f327 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/pal/unix/thread.rs:106:17 [INFO] [stdout] 43: 0x7fd68e98baa4 - [INFO] [stdout] 44: 0x7fd68ea18a34 - clone [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] login::test::测试连接mysql数据库 [INFO] [stdout] url::ai::test::测试deepseek连接是否成功 [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "b3025aeb13b7c3f62479108f3bc42ee036d8b25c30cd122e0dff6c1c17fbf50c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3025aeb13b7c3f62479108f3bc42ee036d8b25c30cd122e0dff6c1c17fbf50c", kill_on_drop: false }` [INFO] [stdout] b3025aeb13b7c3f62479108f3bc42ee036d8b25c30cd122e0dff6c1c17fbf50c