[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] 67c16c4cff29f538623ebaaf95441083ed12e343 [INFO] checking sldpzshdwz/web-server-by-rust against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsldpzshdwz%2Fweb-server-by-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [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-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sldpzshdwz/web-server-by-rust on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded twox-hash v2.1.0 [INFO] [stderr] Downloaded mysql-common-derive v0.32.0 [INFO] [stderr] Downloaded mysql v26.0.0 [INFO] [stderr] Downloaded winnow v0.7.3 [INFO] [stderr] Downloaded project-root v0.2.2 [INFO] [stderr] Downloaded uuid v1.15.1 [INFO] [stderr] Downloaded mysql_common v0.34.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81b9fa7e0f1625a16c8e4d8ffd201bb40cc19a1235469484cbf7f9b80b24d095 [INFO] running `Command { std: "docker" "start" "-a" "81b9fa7e0f1625a16c8e4d8ffd201bb40cc19a1235469484cbf7f9b80b24d095", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81b9fa7e0f1625a16c8e4d8ffd201bb40cc19a1235469484cbf7f9b80b24d095", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81b9fa7e0f1625a16c8e4d8ffd201bb40cc19a1235469484cbf7f9b80b24d095", kill_on_drop: false }` [INFO] [stdout] 81b9fa7e0f1625a16c8e4d8ffd201bb40cc19a1235469484cbf7f9b80b24d095 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 908e83b4d79771461769891f2df19840519f631dd9cb0fe018f64bc660e2f6ea [INFO] running `Command { std: "docker" "start" "-a" "908e83b4d79771461769891f2df19840519f631dd9cb0fe018f64bc660e2f6ea", kill_on_drop: false }` [INFO] [stderr] Checking litemap v0.7.5 [INFO] [stderr] Checking once_cell v1.21.1 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling winnow v0.7.3 [INFO] [stderr] Compiling zstd-safe v7.2.3 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking deranged v0.4.1 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking iana-time-zone v0.1.62 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking pem v3.0.5 [INFO] [stderr] Checking btoi v0.4.3 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking uuid v1.15.1 [INFO] [stderr] Checking rustls-pki-types v1.11.0 [INFO] [stderr] Checking tokio v1.44.1 [INFO] [stderr] Checking saturating v0.1.0 [INFO] [stderr] Compiling mysql v26.0.0 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Checking twox-hash v2.1.0 [INFO] [stderr] Checking project-root v0.2.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling cmake v0.1.54 [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] Checking flate2 v1.1.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Checking h2 v0.4.9 [INFO] [stderr] Compiling derive_utils v0.15.0 [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 darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling mysql-common-derive v0.32.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking hyper-util v0.1.11 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking reqwest v0.12.15 [INFO] [stderr] Checking 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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, 调整计划}, long_work, 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请求, 数据库登录查询信息,解析cookie中的jwt令牌}}; [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 | use crate::{network::http请求::{http请求}, tool::{database::{数据库连接池, 用户数据}, 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)]` (part of `#[warn(unused)]`) 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: unused import: `result` [INFO] [stdout] --> src/url/long_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: `FromRow` [INFO] [stdout] --> src/url/long_work.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use mysql::{params, prelude::{FromRow, Queryable}, Row}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/url/long_work.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `数据库连接url` and `用户数据` [INFO] [stdout] --> src/url/long_work.rs:7:66 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{network::http请求::{http请求}, tool::{database::{数据库连接池, 用户数据}, log::{日志生产者, 日志级别}, tool::解析请求体json数据为结构体}, 数据库连接url}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/long_work.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 154 - if (查询结果.len()==0){ [INFO] [stdout] 154 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/long_work.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - if (查询结果.len()==0){ [INFO] [stdout] 174 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/url/long_work.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | use super::*; [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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, 调整计划}, long_work, 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请求, 数据库登录查询信息,解析cookie中的jwt令牌}}; [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 | use crate::{network::http请求::{http请求}, tool::{database::{数据库连接池, 用户数据}, 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)]` (part of `#[warn(unused)]`) 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: unused import: `result` [INFO] [stdout] --> src/url/long_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: `FromRow` [INFO] [stdout] --> src/url/long_work.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use mysql::{params, prelude::{FromRow, Queryable}, Row}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/url/long_work.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `数据库连接url` and `用户数据` [INFO] [stdout] --> src/url/long_work.rs:7:66 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{network::http请求::{http请求}, tool::{database::{数据库连接池, 用户数据}, log::{日志生产者, 日志级别}, tool::解析请求体json数据为结构体}, 数据库连接url}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/long_work.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 154 - if (查询结果.len()==0){ [INFO] [stdout] 154 + if 查询结果.len()==0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/url/long_work.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | if (查询结果.len()==0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - if (查询结果.len()==0){ [INFO] [stdout] 174 + if 查询结果.len()==0 { [INFO] [stdout] | [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: 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)]` (part of `#[warn(unused)]`) on by default [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:59:51 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn router_post_long_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: `用户` [INFO] [stdout] --> src/network/router.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn router_post_long_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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:69:50 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn router_get_long_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:69:71 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn router_get_long_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:79:44 [INFO] [stdout] | [INFO] [stdout] 79 | 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: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:85:43 [INFO] [stdout] | [INFO] [stdout] 85 | 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: `用户` [INFO] [stdout] --> src/network/router.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | 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] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:85:64 [INFO] [stdout] | [INFO] [stdout] 85 | 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:90:44 [INFO] [stdout] | [INFO] [stdout] 90 | 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: `http请求` [INFO] [stdout] --> src/network/router.rs:90:65 [INFO] [stdout] | [INFO] [stdout] 90 | 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:97:52 [INFO] [stdout] | [INFO] [stdout] 97 | 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: `用户` [INFO] [stdout] --> src/network/router.rs:97:31 [INFO] [stdout] | [INFO] [stdout] 97 | 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:111:51 [INFO] [stdout] | [INFO] [stdout] 111 | 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: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:111:72 [INFO] [stdout] | [INFO] [stdout] 111 | 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:121:48 [INFO] [stdout] | [INFO] [stdout] 121 | 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: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:130:47 [INFO] [stdout] | [INFO] [stdout] 130 | 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: 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | 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:130:68 [INFO] [stdout] | [INFO] [stdout] 130 | 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:59:51 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn router_post_long_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: `用户` [INFO] [stdout] --> src/network/router.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn router_post_long_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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | 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: unused variable: `用户信息` [INFO] [stdout] --> src/network/router.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | Ok((用户信息,jwt_token))=>{ [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:69:50 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn router_get_long_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:69:71 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn router_get_long_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:79:44 [INFO] [stdout] | [INFO] [stdout] 79 | 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: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:85:43 [INFO] [stdout] | [INFO] [stdout] 85 | 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: `用户` [INFO] [stdout] --> src/network/router.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | 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] [INFO] [stdout] warning: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:85:64 [INFO] [stdout] | [INFO] [stdout] 85 | 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:90:44 [INFO] [stdout] | [INFO] [stdout] 90 | 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: `http请求` [INFO] [stdout] --> src/network/router.rs:90:65 [INFO] [stdout] | [INFO] [stdout] 90 | 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:179:37 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn 判断是否是一级url并处理(切割结果:Vec<&str>,mut stream:TcpStream,http请求:http请求,用户:Option<数据库登录查询信息>,状态行:&str,正文路径:&str,执行下级路由:fn(Option<数据库登录查询信息>,T ... [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:186:74 [INFO] [stdout] | [INFO] [stdout] 186 | 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: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:97:52 [INFO] [stdout] | [INFO] [stdout] 97 | 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: `用户` [INFO] [stdout] --> src/network/router.rs:97:31 [INFO] [stdout] | [INFO] [stdout] 97 | 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:111:51 [INFO] [stdout] | [INFO] [stdout] 111 | 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: unused variable: `http请求` [INFO] [stdout] --> src/network/router.rs:111:72 [INFO] [stdout] | [INFO] [stdout] 111 | 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:121:48 [INFO] [stdout] | [INFO] [stdout] 121 | 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: variable does not need to be mutable [INFO] [stdout] --> src/network/router.rs:130:47 [INFO] [stdout] | [INFO] [stdout] 130 | 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:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | 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:130:68 [INFO] [stdout] | [INFO] [stdout] 130 | 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: unused variable: `用户` [INFO] [stdout] --> src/network/router.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | 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: unused variable: `用户信息` [INFO] [stdout] --> src/network/router.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | Ok((用户信息,jwt_token))=>{ [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:179:37 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn 判断是否是一级url并处理(切割结果:Vec<&str>,mut stream:TcpStream,http请求:http请求,用户:Option<数据库登录查询信息>,状态行:&str,正文路径:&str,执行下级路由:fn(Option<数据库登录查询信息>,T ... [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:186:74 [INFO] [stdout] | [INFO] [stdout] 186 | 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: `当前时间戳` [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: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: `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: `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: `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: 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: `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: `完成的计划克隆` [INFO] [stdout] --> src/url/long_work.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let 完成的计划克隆=完成的计划.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_完成的计划克隆` [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: 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: type `deepseek请求json体类` is more private than the item `根据信息请求deepseek报文` [INFO] [stdout] --> src/url/ai.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | 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:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | 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)]` (part of `#[warn(unused)]`) 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] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - static 数据库连接url: &str = "mysql://root:aA147741@localhost:3306/rust91"; [INFO] [stdout] 10 + static 数据库连接URL: &str = "mysql://root:aA147741@localhost:3306/rust91"; [INFO] [stdout] | [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] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 12 - static deepseek_api:&str="sk-b0b8e26ba39040f690e56e2ad892b7f5"; [INFO] [stdout] 12 + static DEEPSEEK_API:&str="sk-b0b8e26ba39040f690e56e2ad892b7f5"; [INFO] [stdout] | [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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 `Result` that must be used [INFO] [stdout] --> src/url/long_work.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | 增加计划(解析结果); [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] 40 | let _ = 增加计划(解析结果); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `完成的计划克隆` [INFO] [stdout] --> src/url/long_work.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let 完成的计划克隆=完成的计划.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_完成的计划克隆` [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:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | 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:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | 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)]` (part of `#[warn(unused)]`) 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] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - static 数据库连接url: &str = "mysql://root:aA147741@localhost:3306/rust91"; [INFO] [stdout] 10 + static 数据库连接URL: &str = "mysql://root:aA147741@localhost:3306/rust91"; [INFO] [stdout] | [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] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 12 - static deepseek_api:&str="sk-b0b8e26ba39040f690e56e2ad892b7f5"; [INFO] [stdout] 12 + static DEEPSEEK_API:&str="sk-b0b8e26ba39040f690e56e2ad892b7f5"; [INFO] [stdout] | [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [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 [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] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/url/long_work.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | 增加计划(解析结果); [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] 40 | let _ = 增加计划(解析结果); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.25s [INFO] running `Command { std: "docker" "inspect" "908e83b4d79771461769891f2df19840519f631dd9cb0fe018f64bc660e2f6ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "908e83b4d79771461769891f2df19840519f631dd9cb0fe018f64bc660e2f6ea", kill_on_drop: false }` [INFO] [stdout] 908e83b4d79771461769891f2df19840519f631dd9cb0fe018f64bc660e2f6ea