[INFO] cloning repository https://github.com/mengyou658/hutool-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mengyou658/hutool-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmengyou658%2Fhutool-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmengyou658%2Fhutool-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7e6e851f0e550288dbeb8e3fabede874c5c245a2 [INFO] checking mengyou658/hutool-rust against try#cac44d9528e3bbbdaa1537d187bd489ccc5de18c for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmengyou658%2Fhutool-rust" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mengyou658/hutool-rust on toolchain cac44d9528e3bbbdaa1537d187bd489ccc5de18c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mengyou658/hutool-rust [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/mengyou658/hutool-rust [INFO] tweaked toml for git repo https://github.com/mengyou658/hutool-rust written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/mengyou658/hutool-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded murmur3 v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 307988f77a73f38953a03eb71a99c719e3f4c223ca6a4606b2749cc774766360 [INFO] running `Command { std: "docker" "start" "-a" "307988f77a73f38953a03eb71a99c719e3f4c223ca6a4606b2749cc774766360", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "307988f77a73f38953a03eb71a99c719e3f4c223ca6a4606b2749cc774766360", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "307988f77a73f38953a03eb71a99c719e3f4c223ca6a4606b2749cc774766360", kill_on_drop: false }` [INFO] [stdout] 307988f77a73f38953a03eb71a99c719e3f4c223ca6a4606b2749cc774766360 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f46960d44fb452232299099c314028a73329f59fc50cc2c6642201f0a1e52535 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f46960d44fb452232299099c314028a73329f59fc50cc2c6642201f0a1e52535", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.105 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling siphasher v0.3.7 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling encoding_rs v0.8.29 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking murmur3 v0.5.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Checking phf_shared v0.10.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Checking phf v0.10.0 [INFO] [stderr] Checking hutool_core v0.1.0 (/opt/rustwide/workdir/crates/hutool_core) [INFO] [stderr] Checking fixedbitset v0.4.0 [INFO] [stderr] Checking serde_json v1.0.68 [INFO] [stdout] warning: unused import: `encoding_rs::*` [INFO] [stdout] --> crates/hutool_core/src/core_io/file.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use encoding_rs::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `murmur3_x86_128` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | use murmur3::{murmur3_32, murmur3_x64_128, murmur3_x86_128}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | hash += (hash << 10); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - hash += (hash << 10); [INFO] [stdout] 43 + hash += hash << 10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | hash ^= (hash >> 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - hash ^= (hash >> 6); [INFO] [stdout] 44 + hash ^= hash >> 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encoding_rs::*` [INFO] [stdout] --> crates/hutool_core/src/core_io/file.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use encoding_rs::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `murmur3_x86_128` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | use murmur3::{murmur3_32, murmur3_x64_128, murmur3_x86_128}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | hash += (hash << 10); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - hash += (hash << 10); [INFO] [stdout] 43 + hash += hash << 10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | hash ^= (hash >> 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - hash ^= (hash >> 6); [INFO] [stdout] 44 + hash ^= hash >> 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | hash += (hash << 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - hash += (hash << 3); [INFO] [stdout] 46 + hash += hash << 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | hash ^= (hash >> 11); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - hash ^= (hash >> 11); [INFO] [stdout] 47 + hash ^= hash >> 11; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | hash += (hash << 15); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - hash += (hash << 15); [INFO] [stdout] 48 + hash += hash << 15; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:157:16 [INFO] [stdout] | [INFO] [stdout] 157 | key ^= (key >> 10); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 157 - key ^= (key >> 10); [INFO] [stdout] 157 + key ^= key >> 10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 158 | key += (key << 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - key += (key << 3); [INFO] [stdout] 158 + key += key << 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | key ^= (key >> 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - key ^= (key >> 6); [INFO] [stdout] 159 + key ^= key >> 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | key ^= (key >> 16); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - key ^= (key >> 16); [INFO] [stdout] 161 + key ^= key >> 16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:174:56 [INFO] [stdout] | [INFO] [stdout] 174 | hash = (hash.wrapping_mul(a)).wrapping_add((i as u64)) as u64; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - hash = (hash.wrapping_mul(a)).wrapping_add((i as u64)) as u64; [INFO] [stdout] 174 + hash = (hash.wrapping_mul(a)).wrapping_add(i as u64) as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | hash ^= ((hash << 5) + i as usize + (hash >> 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 186 - hash ^= ((hash << 5) + i as usize + (hash >> 2)); [INFO] [stdout] 186 + hash ^= (hash << 5) + i as usize + (hash >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:205:24 [INFO] [stdout] | [INFO] [stdout] 205 | hash = ((hash ^ (test >> threeQuarters)) & (!highBits)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 205 - hash = ((hash ^ (test >> threeQuarters)) & (!highBits)); [INFO] [stdout] 205 + hash = (hash ^ (test >> threeQuarters)) & (!highBits); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:223:25 [INFO] [stdout] | [INFO] [stdout] 223 | hash ^= (x >> 24); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 223 - hash ^= (x >> 24); [INFO] [stdout] 223 + hash ^= x >> 24; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:254:70 [INFO] [stdout] | [INFO] [stdout] 254 | hash = (i as u64).wrapping_add((hash << 6)).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 254 - hash = (i as u64).wrapping_add((hash << 6)).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] 254 + hash = (i as u64).wrapping_add((hash << 6)).wrapping_add(hash << 16).wrapping_sub(hash) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:254:44 [INFO] [stdout] | [INFO] [stdout] 254 | hash = (i as u64).wrapping_add((hash << 6)).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 254 - hash = (i as u64).wrapping_add((hash << 6)).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] 254 + hash = (i as u64).wrapping_add(hash << 6).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:299:39 [INFO] [stdout] | [INFO] [stdout] 299 | ... hash ^= if (i & 1) == 0 { ((hash << 7) ^ (data[i] as usize) ^ (hash >> 3)) } else { !((hash << 11) ^ data[i] as usize ^ (hash >> 5))}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 299 - hash ^= if (i & 1) == 0 { ((hash << 7) ^ (data[i] as usize) ^ (hash >> 3)) } else { !((hash << 11) ^ data[i] as usize ^ (hash >> 5))}; [INFO] [stdout] 299 + hash ^= if (i & 1) == 0 { (hash << 7) ^ (data[i] as usize) ^ (hash >> 3) } else { !((hash << 11) ^ data[i] as usize ^ (hash >> 5))}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:328:20 [INFO] [stdout] | [INFO] [stdout] 328 | if (ucChar <= 90 && ucChar >= 65) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 328 - if (ucChar <= 90 && ucChar >= 65) { [INFO] [stdout] 328 + if ucChar <= 90 && ucChar >= 65 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> crates/hutool_core/src/core_util/array.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core_util::ArrayUtil` [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core_util::ArrayUtil; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | bcd = (asc - X0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - bcd = (asc - X0); [INFO] [stdout] 98 + bcd = asc - X0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | bcd = (asc - XA + 10); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 100 - bcd = (asc - XA + 10); [INFO] [stdout] 100 + bcd = asc - XA + 10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | bcd = (asc - Xa + 10); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - bcd = (asc - Xa + 10); [INFO] [stdout] 102 + bcd = asc - Xa + 10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 104 | bcd = (asc - 48); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - bcd = (asc - 48); [INFO] [stdout] 104 + bcd = asc - 48; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:119:19 [INFO] [stdout] | [INFO] [stdout] 119 | val = (((bytes[i] & 0xf0) >> 4) & 0x0f); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - val = (((bytes[i] & 0xf0) >> 4) & 0x0f); [INFO] [stdout] 119 + val = ((bytes[i] & 0xf0) >> 4) & 0x0f; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | val = (bytes[i] & 0x0f); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - val = (bytes[i] & 0x0f); [INFO] [stdout] 122 + val = bytes[i] & 0x0f; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> crates/hutool_core/src/core_util/vec.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | hash += (hash << 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - hash += (hash << 3); [INFO] [stdout] 46 + hash += hash << 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | hash ^= (hash >> 11); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - hash ^= (hash >> 11); [INFO] [stdout] 47 + hash ^= hash >> 11; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | hash += (hash << 15); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - hash += (hash << 15); [INFO] [stdout] 48 + hash += hash << 15; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:157:16 [INFO] [stdout] | [INFO] [stdout] 157 | key ^= (key >> 10); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 157 - key ^= (key >> 10); [INFO] [stdout] 157 + key ^= key >> 10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 158 | key += (key << 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - key += (key << 3); [INFO] [stdout] 158 + key += key << 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | key ^= (key >> 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - key ^= (key >> 6); [INFO] [stdout] 159 + key ^= key >> 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | key ^= (key >> 16); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - key ^= (key >> 16); [INFO] [stdout] 161 + key ^= key >> 16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:174:56 [INFO] [stdout] | [INFO] [stdout] 174 | hash = (hash.wrapping_mul(a)).wrapping_add((i as u64)) as u64; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - hash = (hash.wrapping_mul(a)).wrapping_add((i as u64)) as u64; [INFO] [stdout] 174 + hash = (hash.wrapping_mul(a)).wrapping_add(i as u64) as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | hash ^= ((hash << 5) + i as usize + (hash >> 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 186 - hash ^= ((hash << 5) + i as usize + (hash >> 2)); [INFO] [stdout] 186 + hash ^= (hash << 5) + i as usize + (hash >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:205:24 [INFO] [stdout] | [INFO] [stdout] 205 | hash = ((hash ^ (test >> threeQuarters)) & (!highBits)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 205 - hash = ((hash ^ (test >> threeQuarters)) & (!highBits)); [INFO] [stdout] 205 + hash = (hash ^ (test >> threeQuarters)) & (!highBits); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:223:25 [INFO] [stdout] | [INFO] [stdout] 223 | hash ^= (x >> 24); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 223 - hash ^= (x >> 24); [INFO] [stdout] 223 + hash ^= x >> 24; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:254:70 [INFO] [stdout] | [INFO] [stdout] 254 | hash = (i as u64).wrapping_add((hash << 6)).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 254 - hash = (i as u64).wrapping_add((hash << 6)).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] 254 + hash = (i as u64).wrapping_add((hash << 6)).wrapping_add(hash << 16).wrapping_sub(hash) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:254:44 [INFO] [stdout] | [INFO] [stdout] 254 | hash = (i as u64).wrapping_add((hash << 6)).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 254 - hash = (i as u64).wrapping_add((hash << 6)).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] 254 + hash = (i as u64).wrapping_add(hash << 6).wrapping_add((hash << 16)).wrapping_sub(hash) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:299:39 [INFO] [stdout] | [INFO] [stdout] 299 | ... hash ^= if (i & 1) == 0 { ((hash << 7) ^ (data[i] as usize) ^ (hash >> 3)) } else { !((hash << 11) ^ data[i] as usize ^ (hash >> 5))}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 299 - hash ^= if (i & 1) == 0 { ((hash << 7) ^ (data[i] as usize) ^ (hash >> 3)) } else { !((hash << 11) ^ data[i] as usize ^ (hash >> 5))}; [INFO] [stdout] 299 + hash ^= if (i & 1) == 0 { (hash << 7) ^ (data[i] as usize) ^ (hash >> 3) } else { !((hash << 11) ^ data[i] as usize ^ (hash >> 5))}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:328:20 [INFO] [stdout] | [INFO] [stdout] 328 | if (ucChar <= 90 && ucChar >= 65) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 328 - if (ucChar <= 90 && ucChar >= 65) { [INFO] [stdout] 328 + if ucChar <= 90 && ucChar >= 65 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> crates/hutool_core/src/core_util/array.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core_util::ArrayUtil` [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core_util::ArrayUtil; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | bcd = (asc - X0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - bcd = (asc - X0); [INFO] [stdout] 98 + bcd = asc - X0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | bcd = (asc - XA + 10); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 100 - bcd = (asc - XA + 10); [INFO] [stdout] 100 + bcd = asc - XA + 10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | bcd = (asc - Xa + 10); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - bcd = (asc - Xa + 10); [INFO] [stdout] 102 + bcd = asc - Xa + 10; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 104 | bcd = (asc - 48); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - bcd = (asc - 48); [INFO] [stdout] 104 + bcd = asc - 48; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:119:19 [INFO] [stdout] | [INFO] [stdout] 119 | val = (((bytes[i] & 0xf0) >> 4) & 0x0f); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - val = (((bytes[i] & 0xf0) >> 4) & 0x0f); [INFO] [stdout] 119 + val = ((bytes[i] & 0xf0) >> 4) & 0x0f; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | val = (bytes[i] & 0x0f); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - val = (bytes[i] & 0x0f); [INFO] [stdout] 122 + val = bytes[i] & 0x0f; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> crates/hutool_core/src/core_util/vec.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prime` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:39:36 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn oneByOneHash(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prime` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:55:33 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn bernstein(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `test` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let mut test = 0 as usize; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | let mut x = 0 as usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `hash` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:311:17 [INFO] [stdout] | [INFO] [stdout] 311 | let mut hash = 0 as u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | for i in 0..len { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:386:21 [INFO] [stdout] | [INFO] [stdout] 386 | pub fn murmur64(str: &[u8]) -> u128 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:400:23 [INFO] [stdout] | [INFO] [stdout] 400 | pub fn cityHash32(str: &[u8]) -> u128 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bcd` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut bcd = 0u8; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let mut val = 0u8; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `codepoint` is never read [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | let mut codepoint = "".to_string(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut len = hash << 3; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut asciiLen = ascLength.unwrap_or(data.len()); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prime` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:39:36 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn oneByOneHash(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prime` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:55:33 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn bernstein(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `test` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let mut test = 0 as usize; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | let mut x = 0 as usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `hash` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:311:17 [INFO] [stdout] | [INFO] [stdout] 311 | let mut hash = 0 as u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | for i in 0..len { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:386:21 [INFO] [stdout] | [INFO] [stdout] 386 | pub fn murmur64(str: &[u8]) -> u128 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:400:23 [INFO] [stdout] | [INFO] [stdout] 400 | pub fn cityHash32(str: &[u8]) -> u128 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bcd` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut bcd = 0u8; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let mut val = 0u8; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `codepoint` is never read [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | let mut codepoint = "".to_string(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut len = hash << 3; [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: static is never used: `Xz` [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | static Xz: u8 = 'z' as u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut asciiLen = ascLength.unwrap_or(data.len()); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `XZ` [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | static XZ: u8 = 'Z' as u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SPACE` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub const SPACE: char = ' '; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TAB` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub const TAB: char = '\t'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BACKSLASH` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const BACKSLASH: char = '\\'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LF` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub const LF: char = '\n'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UNDERLINE` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const UNDERLINE: char = '_'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COMMA` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub const COMMA: char = ','; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DELIM_START` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub const DELIM_START: char = '{'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DELIM_END` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub const DELIM_END: char = '}'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BRACKET_START` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub const BRACKET_START: char = '['; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BRACKET_END` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub const BRACKET_END: char = ']'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DOUBLE_QUOTES` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub const DOUBLE_QUOTES: char = '"'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SINGLE_QUOTE` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub const SINGLE_QUOTE: char = '\''; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AMP` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub const AMP: char = '&'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COLON` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub const COLON: char = ':'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AT` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub const AT: char = '@'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getReader` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_io/file.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn getReader(path: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `additiveHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn additiveHash(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `additive_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotatingHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn rotatingHash(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `rotating_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `oneByOneHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn oneByOneHash(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `one_by_one_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fnvHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn fnvHash(data: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `fnv_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fnvHashStr` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn fnvHashStr(data: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `fnv_hash_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `intHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn intHash(data: usize) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `int_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rsHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn rsHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `rs_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `jsHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn jsHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `js_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pjwHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn pjwHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pjw_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bitsInUnsignedInt` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let bitsInUnsignedInt = 32 as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bits_in_unsigned_int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threeQuarters` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let threeQuarters = (bitsInUnsignedInt * 3) / 4; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `three_quarters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oneEighth` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | let oneEighth = bitsInUnsignedInt / 8; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `one_eighth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `highBits` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let highBits = 0xFFFFFFFF << (bitsInUnsignedInt - oneEighth); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `high_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elfHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn elfHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `elf_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bkdrHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn bkdrHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `bkdr_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sdbmHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn sdbmHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sdbm_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `djbHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn djbHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `djb_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dekHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn dekHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `dek_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:293:12 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn apHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ap_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tianlHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 310 | pub fn tianlHash(str: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tianl_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `iLength` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | let iLength = data.len(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `i_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ucChar` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:327:25 [INFO] [stdout] | [INFO] [stdout] 327 | let mut ucChar = data[i - 1]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `uc_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ucChar` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:335:25 [INFO] [stdout] | [INFO] [stdout] 335 | let mut ucChar = data[i + iLength - 96 - 1]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `uc_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `javaDefaultHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:350:12 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn javaDefaultHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `java_default_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mixHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn mixHash(str: &str) -> u64 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `mix_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cityHash32` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:400:12 [INFO] [stdout] | [INFO] [stdout] 400 | pub fn cityHash32(str: &[u8]) -> u128 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `city_hash32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `charsetName` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/charset.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn charset(charsetName: &str) -> &'static Encoding { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `charset_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn isEmpty(str: &str) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isNotEmpty` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn isNotEmpty(str: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_not_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `containsOnly` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn containsOnly(str: &str, testChars: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `contains_only` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testChars` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn containsOnly(str: &str, testChars: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `test_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Xa` should have an upper case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | static Xa: u8 = 'a' as u8; [INFO] [stdout] | ^^ help: convert the identifier to upper case: `XA` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Xz` should have an upper case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | static Xz: u8 = 'z' as u8; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `XZ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Xf` should have an upper case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | static Xf: u8 = 'f' as u8; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `XF` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `strToBcd` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn strToBcd(data: T) -> String; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `str_to_bcd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `bcdToStr` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn bcdToStr(data: T) -> String; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `bcd_to_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `strToBcdLen` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn strToBcdLen(data: &[u8], ascLength: Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `str_to_bcd_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ascLength` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn strToBcdLen(data: &[u8], ascLength: Option) -> String { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `asc_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `asciiLen` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut asciiLen = ascLength.unwrap_or(data.len()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `ascii_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tmpRes` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let tmpRes = BCD::ascToBcdByte(data[j]); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tmp_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `strToBcdCharset` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn strToBcdCharset(asc: &str, charset: Option<&'static Encoding>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `str_to_bcd_charset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ascToBcdByte` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn ascToBcdByte(asc: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `asc_to_bcd_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bcdToStrCharset` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn bcdToStrCharset<'a>(bytes: &'a [u8], charset: &'static Encoding) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bcd_to_str_charset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tmpText` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let tmpText = text.to_uppercase(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tmp_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `codePoint` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | for codePoint in tmpText.chars() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `code_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `CURRENT_VEC` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let CURRENT_VEC: Vec = vec![dah, dit, split]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `toBinaryString` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core/integer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn toBinaryString(word: char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `to_binary_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 111 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `Xz` [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | static Xz: u8 = 'z' as u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `XZ` [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | static XZ: u8 = 'Z' as u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SPACE` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub const SPACE: char = ' '; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TAB` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub const TAB: char = '\t'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BACKSLASH` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const BACKSLASH: char = '\\'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LF` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub const LF: char = '\n'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UNDERLINE` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const UNDERLINE: char = '_'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COMMA` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub const COMMA: char = ','; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DELIM_START` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub const DELIM_START: char = '{'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DELIM_END` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub const DELIM_END: char = '}'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BRACKET_START` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub const BRACKET_START: char = '['; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BRACKET_END` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub const BRACKET_END: char = ']'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DOUBLE_QUOTES` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub const DOUBLE_QUOTES: char = '"'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SINGLE_QUOTE` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub const SINGLE_QUOTE: char = '\''; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AMP` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub const AMP: char = '&'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COLON` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub const COLON: char = ':'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AT` [INFO] [stdout] --> crates/hutool_core/src/core_text/char_pool.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub const AT: char = '@'; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getReader` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_io/file.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn getReader(path: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `additiveHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn additiveHash(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `additive_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotatingHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn rotatingHash(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `rotating_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `oneByOneHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn oneByOneHash(key: &str, prime: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `one_by_one_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fnvHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn fnvHash(data: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `fnv_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fnvHashStr` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn fnvHashStr(data: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `fnv_hash_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `intHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn intHash(data: usize) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `int_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rsHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn rsHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `rs_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `jsHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn jsHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `js_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pjwHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn pjwHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pjw_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bitsInUnsignedInt` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let bitsInUnsignedInt = 32 as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bits_in_unsigned_int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threeQuarters` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let threeQuarters = (bitsInUnsignedInt * 3) / 4; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `three_quarters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oneEighth` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | let oneEighth = bitsInUnsignedInt / 8; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `one_eighth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `highBits` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let highBits = 0xFFFFFFFF << (bitsInUnsignedInt - oneEighth); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `high_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elfHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn elfHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `elf_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bkdrHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn bkdrHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `bkdr_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sdbmHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn sdbmHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sdbm_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `djbHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn djbHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `djb_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dekHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn dekHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `dek_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:293:12 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn apHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ap_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tianlHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 310 | pub fn tianlHash(str: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tianl_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `iLength` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | let iLength = data.len(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `i_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ucChar` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:327:25 [INFO] [stdout] | [INFO] [stdout] 327 | let mut ucChar = data[i - 1]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `uc_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ucChar` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:335:25 [INFO] [stdout] | [INFO] [stdout] 335 | let mut ucChar = data[i + iLength - 96 - 1]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `uc_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `javaDefaultHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:350:12 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn javaDefaultHash(str: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `java_default_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mixHash` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn mixHash(str: &str) -> u64 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `mix_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cityHash32` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/hash.rs:400:12 [INFO] [stdout] | [INFO] [stdout] 400 | pub fn cityHash32(str: &[u8]) -> u128 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `city_hash32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `charsetName` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/charset.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn charset(charsetName: &str) -> &'static Encoding { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `charset_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn isEmpty(str: &str) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isNotEmpty` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn isNotEmpty(str: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_not_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `containsOnly` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn containsOnly(str: &str, testChars: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `contains_only` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testChars` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/string.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn containsOnly(str: &str, testChars: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `test_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Xa` should have an upper case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | static Xa: u8 = 'a' as u8; [INFO] [stdout] | ^^ help: convert the identifier to upper case: `XA` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Xz` should have an upper case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | static Xz: u8 = 'z' as u8; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `XZ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Xf` should have an upper case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | static Xf: u8 = 'f' as u8; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `XF` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `strToBcd` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn strToBcd(data: T) -> String; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `str_to_bcd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `bcdToStr` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn bcdToStr(data: T) -> String; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `bcd_to_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `strToBcdLen` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn strToBcdLen(data: &[u8], ascLength: Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `str_to_bcd_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ascLength` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn strToBcdLen(data: &[u8], ascLength: Option) -> String { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `asc_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `asciiLen` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut asciiLen = ascLength.unwrap_or(data.len()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `ascii_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tmpRes` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let tmpRes = BCD::ascToBcdByte(data[j]); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tmp_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `strToBcdCharset` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn strToBcdCharset(asc: &str, charset: Option<&'static Encoding>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `str_to_bcd_charset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ascToBcdByte` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn ascToBcdByte(asc: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `asc_to_bcd_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bcdToStrCharset` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_util/bcd.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn bcdToStrCharset<'a>(bytes: &'a [u8], charset: &'static Encoding) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bcd_to_str_charset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tmpText` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let tmpText = text.to_uppercase(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tmp_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `codePoint` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | for codePoint in tmpText.chars() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `code_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `CURRENT_VEC` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core_codec/morse.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let CURRENT_VEC: Vec = vec![dah, dit, split]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `toBinaryString` should have a snake case name [INFO] [stdout] --> crates/hutool_core/src/core/integer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn toBinaryString(word: char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `to_binary_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 111 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GBK` [INFO] [stdout] --> crates/hutool_core/tests/bcd_test.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use encoding_rs::{GBK, UTF_8}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Base32` [INFO] [stdout] --> crates/hutool_core/tests/morse_test.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use hutool_core::core_codec::{Base32, Base32Trait, Morse}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Base64` [INFO] [stdout] --> crates/hutool_core/tests/morse_test.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use hutool_core::core_codec::{Base64, Base64Trait}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encoding_rs::GBK` [INFO] [stdout] --> crates/hutool_core/tests/morse_test.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use encoding_rs::GBK; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Base32Trait` [INFO] [stdout] --> crates/hutool_core/tests/morse_test.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | use hutool_core::core_codec::{Base32, Base32Trait, Morse}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Base64Trait` [INFO] [stdout] --> crates/hutool_core/tests/morse_test.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | use hutool_core::core_codec::{Base64, Base64Trait}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testMorse` should have a snake case name [INFO] [stdout] --> crates/hutool_core/tests/morse_test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn testMorse() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `test_morse` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `morseCoder` should have a snake case name [INFO] [stdout] --> crates/hutool_core/tests/morse_test.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let morseCoder = Morse::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `morse_coder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testBase64` should have a snake case name [INFO] [stdout] --> crates/hutool_core/tests/codec_test.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn testBase64() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `test_base64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking hutool_bloom_filter v0.1.0 (/opt/rustwide/workdir/crates/hutool_bloom_filter) [INFO] [stdout] warning: unused import: `bit_vec::BitVec` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bit_vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bit_vec::BitVec` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bit_vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitMapBloom.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new(m: u32) -> BitMapBloomFilter { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | let x = self.add(&str); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn init(&mut self, path: &str, encoding: &Encoding) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut res = 0 as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut bitSet = FixedBitSet::with_capacity(bitSetSize); [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 import: `std::hash::Hash` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitMapBloom.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new(m: u32) -> BitMapBloomFilter { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | let x = self.add(&str); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding` [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn init(&mut self, path: &str, encoding: &Encoding) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut res = 0 as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut bitSet = FixedBitSet::with_capacity(bitSetSize); [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: method `createBitSet` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn createBitSet(c: usize, n: usize, k: usize) -> BitSetBloomFilter { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_bit_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createBitMap` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/lib.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn createBitMap(m: u32) -> BitMapBloomFilter { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_bit_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `BitMapBloom` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod BitMapBloom; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `bit_map_bloom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `BitSetBloom` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod BitSetBloom; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `bit_set_bloom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Bloom` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Bloom; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `bloom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bitSet` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | bitSet: FixedBitSet, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `bit_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createBitSet` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn createBitSet(c: usize, n: usize, k: usize) -> BitSetBloomFilter { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_bit_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bitSetSize` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | bitSetSize: usize, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `bit_set_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createBitMap` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/lib.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn createBitMap(m: u32) -> BitMapBloomFilter { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_bit_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `addedElements` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | addedElements: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `added_elements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `BitMapBloom` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod BitMapBloom; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `bit_map_bloom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `BitSetBloom` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod BitSetBloom; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `bit_set_bloom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hashFunctionNumber` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | hashFunctionNumber: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hash_function_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Bloom` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Bloom; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `bloom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bitSet` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | bitSet: FixedBitSet, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `bit_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bitSetSize` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | bitSetSize: usize, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `bit_set_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `addedElements` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | addedElements: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `added_elements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hashFunctionNumber` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | hashFunctionNumber: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hash_function_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bitSetSize` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let bitSetSize = (c as f64 * k as f64).ceil() as usize; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `bit_set_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bitSetSize` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let bitSetSize = (c as f64 * k as f64).ceil() as usize; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `bit_set_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bitSet` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut bitSet = FixedBitSet::with_capacity(bitSetSize); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `bit_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bitSet` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut bitSet = FixedBitSet::with_capacity(bitSetSize); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `bit_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createHashes` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn createHashes(str: &str, hashNumber: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashNumber` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn createHashes(str: &str, hashNumber: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `createHashes` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn createHashes(str: &str, hashNumber: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashNumber` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/src/bloomfilter/BitSetBloom.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn createHashes(str: &str, hashNumber: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking hutool-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Encoding` [INFO] [stdout] --> crates/hutool_bloom_filter/tests/test.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | use encoding_rs::{Encoding, UTF_8}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> crates/hutool_bloom_filter/tests/test.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> crates/hutool_bloom_filter/tests/test.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> crates/hutool_bloom_filter/tests/test.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `format` [INFO] [stdout] --> examples/E0716-01.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | format: &'a dyn Fn(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `E0716_01` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `e0716_01` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> crates/hutool_bloom_filter/tests/test.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | Ok(str)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createBitSet` should have a snake case name [INFO] [stdout] --> crates/hutool_bloom_filter/tests/test.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn createBitSet() { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_bit_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 50.56s [INFO] running `Command { std: "docker" "inspect" "f46960d44fb452232299099c314028a73329f59fc50cc2c6642201f0a1e52535", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f46960d44fb452232299099c314028a73329f59fc50cc2c6642201f0a1e52535", kill_on_drop: false }` [INFO] [stdout] f46960d44fb452232299099c314028a73329f59fc50cc2c6642201f0a1e52535