[INFO] cloning repository https://github.com/savechina/hello-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/savechina/hello-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavechina%2Fhello-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavechina%2Fhello-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f259bf0a59b9bcdcf5d29e0d336a61568eca501 [INFO] checking savechina/hello-rust against try#2b41547e41f63ea0ca9cb25417ddd569b19e6a50 for pr-134273 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavechina%2Fhello-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/savechina/hello-rust on toolchain 2b41547e41f63ea0ca9cb25417ddd569b19e6a50 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b41547e41f63ea0ca9cb25417ddd569b19e6a50" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/savechina/hello-rust [INFO] finished tweaking git repo https://github.com/savechina/hello-rust [INFO] tweaked toml for git repo https://github.com/savechina/hello-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/savechina/hello-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" "+2b41547e41f63ea0ca9cb25417ddd569b19e6a50" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2b41547e41f63ea0ca9cb25417ddd569b19e6a50" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3655596c74343da5c358b838fcc60fee6159e40410de787684111e036d88c420 [INFO] running `Command { std: "docker" "start" "-a" "3655596c74343da5c358b838fcc60fee6159e40410de787684111e036d88c420", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3655596c74343da5c358b838fcc60fee6159e40410de787684111e036d88c420", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3655596c74343da5c358b838fcc60fee6159e40410de787684111e036d88c420", kill_on_drop: false }` [INFO] [stdout] 3655596c74343da5c358b838fcc60fee6159e40410de787684111e036d88c420 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2b41547e41f63ea0ca9cb25417ddd569b19e6a50" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1785d519209e35002641b025e9b407bfbfc2768e2ca8b1eff412e0a5ff32ae2 [INFO] running `Command { std: "docker" "start" "-a" "d1785d519209e35002641b025e9b407bfbfc2768e2ca8b1eff412e0a5ff32ae2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.62 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling tokio v1.38.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling bytecheck v0.6.12 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling rend v0.4.2 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking simdutf8 v0.1.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking sqlformat v0.2.6 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling rkyv v0.7.44 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling bigdecimal v0.4.5 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking seahash v4.1.0 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking ipnet v2.10.1 [INFO] [stderr] Checking clap_builder v4.5.9 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking wyhash v0.5.0 [INFO] [stderr] Checking memmap2 v0.9.4 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking page_size v0.6.0 [INFO] [stderr] Checking awesome v0.1.0 (/opt/rustwide/workdir/crates/awesome) [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir/crates/leetcode) [INFO] [stdout] warning: function `main_awesome` is never used [INFO] [stdout] --> crates/awesome/src/lib.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main_awesome() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/leetcode/src/solution_0002.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> crates/leetcode/src/solution_0002.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/leetcode/src/solution_0002.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> crates/leetcode/src/solution_0002.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_awesome` is never used [INFO] [stdout] --> crates/awesome/src/lib.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main_awesome() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l1` [INFO] [stdout] --> crates/leetcode/src/solution_0002.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | l1: Option>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l2` [INFO] [stdout] --> crates/leetcode/src/solution_0002.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | l2: Option>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l1` [INFO] [stdout] --> crates/leetcode/src/solution_0002.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | l1: Option>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l2` [INFO] [stdout] --> crates/leetcode/src/solution_0002.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | l2: Option>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Compiling bytecheck_derive v0.6.12 [INFO] [stderr] Compiling rkyv_derive v0.7.44 [INFO] [stderr] Checking ptr_meta v0.1.4 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.62 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling clap_derive v4.5.8 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking clap v4.5.9 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking hyper v1.5.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking serde-transcode v1.1.1 [INFO] [stderr] Checking sqlx-core v0.8.2 [INFO] [stderr] Checking mmap-sync v1.0.3 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.9 [INFO] [stderr] Checking ollama-rs v0.2.1 [INFO] [stderr] Checking sqlx-sqlite v0.8.2 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stderr] Checking hello-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Subcommand` [INFO] [stdout] --> src/bin/basic.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{Parser, Subcommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Subcommand` [INFO] [stdout] --> src/bin/basic.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{Parser, Subcommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/advance/memmap_sample.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/advance/memmap_sample.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Seek, SeekFrom, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/advance/memmap_sample.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/advance/futures_sample.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Buf` [INFO] [stdout] --> src/advance/bytes_sample.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::executor::block_on` [INFO] [stdout] --> src/advance/ollama_sample.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::executor::block_on; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::sqlite::SqlitePool` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::sqlite::SqlitePool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Sqlite` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Sqlite; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Pointer` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::Pointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/advance/memmap_sample.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/advance/memmap_sample.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Seek, SeekFrom, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/advance/memmap_sample.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/advance/futures_sample.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/advance/tokio_sample.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Buf` [INFO] [stdout] --> src/advance/bytes_sample.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::executor::block_on` [INFO] [stdout] --> src/advance/ollama_sample.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::executor::block_on; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior may be unexpected on Windows. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/advance/tempfile_sample.rs:41:45 [INFO] [stdout] | [INFO] [stdout] 41 | let home_dir: std::path::PathBuf = env::home_dir().expect("Failed to get home directory"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::sqlite::SqlitePool` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::sqlite::SqlitePool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Sqlite` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Sqlite; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Pointer` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::Pointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior may be unexpected on Windows. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/advance/tempfile_sample.rs:41:45 [INFO] [stdout] | [INFO] [stdout] 41 | let home_dir: std::path::PathBuf = env::home_dir().expect("Failed to get home directory"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/advance/tokio_sample.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 13 | / loop { [INFO] [stdout] ... | [INFO] [stdout] 55 | | println!(" tokio_server_main ...connection done"); [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 57 | [INFO] [stdout] 58 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/advance/tokio_sample.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 13 | / loop { [INFO] [stdout] ... | [INFO] [stdout] 55 | | println!(" tokio_server_main ...connection done"); [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 57 | [INFO] [stdout] 58 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Engine` [INFO] [stdout] --> src/advance/bytes_sample.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use base64::{engine::general_purpose::URL_SAFE, Engine as _}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/advance/futures_sample.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let r1 = block_on(blocks()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/advance/futures_sample.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let r2 = block_on(move_block()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/advance/tokio_sample.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut running = AtomicBool::new(true); [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: unused variable: `hello` [INFO] [stdout] --> src/advance/bytes_sample.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let hello = Bytes::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/advance/bytes_sample.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let arr = bitarr![u32, Lsb0; 0; 80]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bits` [INFO] [stdout] --> src/advance/bytes_sample.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let bits = bits![u16, Msb0; 0; 40]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bits` [INFO] [stdout] --> src/advance/bytes_sample.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let bits = data.view_bits::(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Engine` [INFO] [stdout] --> src/advance/bytes_sample.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use base64::{engine::general_purpose::URL_SAFE, Engine as _}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combined` [INFO] [stdout] --> src/basic/datatype_sample.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let combined = hello + world; // 注意:hello 被移动,不能再使用 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combined` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/advance/futures_sample.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let r1 = block_on(blocks()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/advance/futures_sample.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let r2 = block_on(move_block()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/advance/tokio_sample.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut running = AtomicBool::new(true); [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: unused variable: `hello` [INFO] [stdout] --> src/advance/bytes_sample.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let hello = Bytes::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/advance/bytes_sample.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let arr = bitarr![u32, Lsb0; 0; 80]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bits` [INFO] [stdout] --> src/advance/bytes_sample.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let bits = bits![u16, Msb0; 0; 40]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bits` [INFO] [stdout] --> src/advance/bytes_sample.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let bits = data.view_bits::(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combined` [INFO] [stdout] --> src/basic/datatype_sample.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let combined = hello + world; // 注意:hello 被移动,不能再使用 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combined` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokio_server_main` is never used [INFO] [stdout] --> src/advance/tokio_sample.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) async fn tokio_server_main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokio_client_main` is never used [INFO] [stdout] --> src/advance/tokio_sample.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | pub(crate) async fn tokio_client_main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokio_client_sample` is never used [INFO] [stdout] --> src/advance/tokio_sample.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | pub(crate) async fn tokio_client_sample() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_create` is never used [INFO] [stdout] --> src/advance/bytes_sample.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn bytes_create() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_buffer` is never used [INFO] [stdout] --> src/advance/bytes_sample.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn bytes_buffer() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_search` is never used [INFO] [stdout] --> src/advance/bytes_sample.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn bytes_search() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_order` is never used [INFO] [stdout] --> src/advance/bytes_sample.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn bytes_order() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_bitvets` is never used [INFO] [stdout] --> src/advance/bytes_sample.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn bytes_bitvets() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_base64` is never used [INFO] [stdout] --> src/advance/bytes_sample.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn bytes_base64() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_base64_write` is never used [INFO] [stdout] --> src/advance/bytes_sample.rs:177:4 [INFO] [stdout] | [INFO] [stdout] 177 | fn bytes_base64_write() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chatbot` is never used [INFO] [stdout] --> src/advance/ollama_sample.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | async fn chatbot() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `email` are never read [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sqlx_sqlite_example` is never used [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | async fn sqlx_sqlite_example() -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `peek`, `into_iter`, and `len` are never used [INFO] [stdout] --> src/algo/linked_list.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 38 | impl List { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn push(&mut self, elem: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn peek(&self) -> Option<&i32> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `peek`, `into_iter`, and `len` are never used [INFO] [stdout] --> src/algo/linked_list.rs:276:16 [INFO] [stdout] | [INFO] [stdout] 271 | impl List { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 276 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 338 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 342 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/algo/linked_list.rs:375:16 [INFO] [stdout] | [INFO] [stdout] 374 | impl List { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 375 | pub fn iter<'a>(&'a self) -> Iter<'a, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter_mut` is never used [INFO] [stdout] --> src/algo/linked_list.rs:401:16 [INFO] [stdout] | [INFO] [stdout] 400 | impl List { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 401 | pub fn iter_mut(&mut self) -> IterMut<'_, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decimal_sample` is never used [INFO] [stdout] --> src/basic/datatype_sample.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | pub(crate) fn decimal_sample() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fib` is never used [INFO] [stdout] --> src/basic/datatype_sample.rs:170:4 [INFO] [stdout] | [INFO] [stdout] 170 | fn fib(n: usize) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigint_sample` is never used [INFO] [stdout] --> src/basic/datatype_sample.rs:181:15 [INFO] [stdout] | [INFO] [stdout] 181 | pub(crate) fn bigint_sample() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/basic/generic_sample.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Post { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 103 | pub content: String, // 内容 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_memory_location` is never used [INFO] [stdout] --> src/basic/pointer_sample.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_memory_location() -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_str_at_location` is never used [INFO] [stdout] --> src/basic/pointer_sample.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn get_str_at_location(pointer: usize, length: usize) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_str_raw_sample` is never used [INFO] [stdout] --> src/basic/pointer_sample.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn get_str_raw_sample() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/advance/tokio_sample.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | tokio_server_main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/advance/tokio_sample.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | tokio_client_main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/basic/threads_sample.rs:246:41 [INFO] [stdout] | [INFO] [stdout] 246 | println!("call once val is {}", VAL); [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/basic/threads_sample.rs:253:45 [INFO] [stdout] | [INFO] [stdout] 253 | println!("call once val is {}", VAL); [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: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/basic/threads_sample.rs:260:45 [INFO] [stdout] | [INFO] [stdout] 260 | println!("call once val is {}", VAL); [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: function `tokio_client_sample` is never used [INFO] [stdout] --> src/advance/tokio_sample.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | pub(crate) async fn tokio_client_sample() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/algo/linked_list.rs:342:16 [INFO] [stdout] | [INFO] [stdout] 271 | impl List { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 342 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/basic/generic_sample.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Post { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 103 | pub content: String, // 内容 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/advance/tokio_sample.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | tokio_server_main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/advance/tokio_sample.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | tokio_client_main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/advance/tokio_sample.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | tokio_server_main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/advance/tokio_sample.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | tokio_client_main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/advance/bytes_sample.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | bytes_base64(); [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] 224 | let _ = bytes_base64(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/advance/ollama_sample.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | chatbot(); [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] 36 | let _ = chatbot(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/advance/sqlx_sqmple.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | sqlx_sqlite_example(); [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] 91 | let _ = sqlx_sqlite_example(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/basic/threads_sample.rs:246:41 [INFO] [stdout] | [INFO] [stdout] 246 | println!("call once val is {}", VAL); [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/basic/threads_sample.rs:253:45 [INFO] [stdout] | [INFO] [stdout] 253 | println!("call once val is {}", VAL); [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: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/basic/threads_sample.rs:260:45 [INFO] [stdout] | [INFO] [stdout] 260 | println!("call once val is {}", VAL); [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "d1785d519209e35002641b025e9b407bfbfc2768e2ca8b1eff412e0a5ff32ae2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1785d519209e35002641b025e9b407bfbfc2768e2ca8b1eff412e0a5ff32ae2", kill_on_drop: false }` [INFO] [stdout] d1785d519209e35002641b025e9b407bfbfc2768e2ca8b1eff412e0a5ff32ae2