[INFO] fetching crate bitoku-sdk-agent-native 0.1.8... [INFO] linting bitoku-sdk-agent-native-0.1.8 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate bitoku-sdk-agent-native 0.1.8 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate bitoku-sdk-agent-native 0.1.8 [INFO] finished tweaking crates.io crate bitoku-sdk-agent-native 0.1.8 [INFO] tweaked toml for crates.io crate bitoku-sdk-agent-native 0.1.8 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate bitoku-sdk-agent-native 0.1.8 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 168 packages to latest compatible versions [INFO] [stderr] Adding borsh v0.9.3 (available: v1.6.1) [INFO] [stderr] Adding crypto-common v0.1.6 (available: v0.1.7) [INFO] [stderr] Adding solana-program v1.18.26 (available: v4.0.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.18) [INFO] [stderr] Adding zeroize v1.3.0 (available: v1.8.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5121eccea7d0f5245b9e77684ea1b317a0b60ac5af4623c805ee8fe230b093cb [INFO] running `Command { std: "docker" "start" "-a" "5121eccea7d0f5245b9e77684ea1b317a0b60ac5af4623c805ee8fe230b093cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5121eccea7d0f5245b9e77684ea1b317a0b60ac5af4623c805ee8fe230b093cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5121eccea7d0f5245b9e77684ea1b317a0b60ac5af4623c805ee8fe230b093cb", kill_on_drop: false }` [INFO] [stdout] 5121eccea7d0f5245b9e77684ea1b317a0b60ac5af4623c805ee8fe230b093cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72c18f382217571a227e78b636f2acffd80004bd0d4878ce4e79dc4449d8af3e [INFO] running `Command { std: "docker" "start" "-a" "72c18f382217571a227e78b636f2acffd80004bd0d4878ce4e79dc4449d8af3e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zeroize_derive v1.4.3 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.114 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling winnow v1.0.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling toml_datetime v1.0.1+spec-1.1.0 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.18.26 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling bumpalo v3.20.2 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling borsh v1.6.1 [INFO] [stderr] Checking tinyvec v1.11.0 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.114 [INFO] [stderr] Compiling wasm-bindgen v0.2.114 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling solana-frozen-abi v1.18.26 [INFO] [stderr] Checking unicode-normalization v0.1.25 [INFO] [stderr] Compiling toml_parser v1.0.10+spec-1.1.0 [INFO] [stderr] Compiling cc v1.2.57 [INFO] [stderr] Checking sized-chunks v0.6.5 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking bv v0.11.1 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Compiling toml_edit v0.25.5+spec-1.1.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking pbkdf2 v0.4.0 [INFO] [stderr] Checking hmac-drbg v0.3.0 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Checking serde_bytes v0.11.19 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking keccak v0.1.6 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Compiling solana-sdk-macro v1.18.26 [INFO] [stderr] Compiling proc-macro-crate v3.5.0 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling blake3 v1.8.3 [INFO] [stderr] Compiling solana-program v1.18.26 [INFO] [stderr] Compiling borsh-derive v1.6.1 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ahash v0.7.8 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.114 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Checking borsh v0.10.4 [INFO] [stderr] Checking borsh v0.9.3 [INFO] [stderr] Checking ark-std v0.4.0 [INFO] [stderr] Checking ark-serialize v0.4.2 [INFO] [stderr] Checking tiny-bip39 v0.8.2 [INFO] [stderr] Checking ark-ff v0.4.2 [INFO] [stderr] Checking ark-poly v0.4.2 [INFO] [stderr] Checking ark-ec v0.4.2 [INFO] [stderr] Checking ark-bn254 v0.4.0 [INFO] [stderr] Checking light-poseidon v0.2.0 [INFO] [stderr] Checking bitoku-sdk-agent-native v0.1.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> src/entrypoint.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `no-entrypoint` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> src/entrypoint.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `helenos`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `managarm`, `motor`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `qurt`, `redox`, `rtems`, `solaris`, and `solid_asp3` and 14 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> src/entrypoint.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `no-entrypoint` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> src/entrypoint.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `helenos`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `managarm`, `motor`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `qurt`, `redox`, `rtems`, `solaris`, and `solid_asp3` and 14 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::msg` [INFO] [stdout] --> src/instruction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use solana_program::msg; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `msg` [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | msg, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/state.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | requester: requester, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `requester` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> src/entrypoint.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `no-entrypoint` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> src/entrypoint.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `helenos`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `managarm`, `motor`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `qurt`, `redox`, `rtems`, `solaris`, and `solid_asp3` and 14 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> src/entrypoint.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `no-entrypoint` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> src/entrypoint.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | entrypoint!(process_instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `helenos`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `managarm`, `motor`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `qurt`, `redox`, `rtems`, `solaris`, and `solid_asp3` and 14 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the macro `entrypoint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::msg` [INFO] [stdout] --> src/instruction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use solana_program::msg; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `msg` [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | msg, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_program::pubkey::Pubkey::new`: Please use 'Pubkey::from' or 'Pubkey::try_from' instead [INFO] [stdout] --> src/state.rs:71:33 [INFO] [stdout] | [INFO] [stdout] 71 | let requester = Pubkey::new(&src[1..33]); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `solana_program::pubkey::Pubkey::new`: Please use 'Pubkey::from' or 'Pubkey::try_from' instead [INFO] [stdout] --> src/state.rs:71:33 [INFO] [stdout] | [INFO] [stdout] 71 | let requester = Pubkey::new(&src[1..33]); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/instruction.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | /// 2.`[]` system_program account [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 27 | /// 2.`[]` system_program account [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/instruction.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | /// 3.`[]` sys_var program [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 28 | /// 3.`[]` sys_var program [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/instruction.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | /// 3.`[]` system_program account [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 33 | /// 3.`[]` system_program account [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/instruction.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | /// 4.`[]` sys_var program [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 34 | /// 4.`[]` sys_var program [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/instruction.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | /// 2.`[]` system_program account [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 27 | /// 2.`[]` system_program account [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/instruction.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | /// 3.`[]` sys_var program [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 28 | /// 3.`[]` sys_var program [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/instruction.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | /// 3.`[]` system_program account [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 33 | /// 3.`[]` system_program account [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/instruction.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | /// 4.`[]` sys_var program [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 34 | /// 4.`[]` sys_var program [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | &fee_payer.key, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `fee_payer.key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | &program_id, [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `program_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | &fee_payer.key, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `fee_payer.key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | &program_id, [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `program_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:166:20 [INFO] [stdout] | [INFO] [stdout] 166 | sol_memset(&mut *request.try_borrow_mut_data()?, 0, account_data_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `*request.try_borrow_mut_data()?` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/processor.rs:166:20 [INFO] [stdout] | [INFO] [stdout] 166 | sol_memset(&mut *request.try_borrow_mut_data()?, 0, account_data_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&request.try_borrow_mut_data()?` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/processor.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | if validate_name(&name.as_bytes()) == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!validate_name(&name.as_bytes())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:187:26 [INFO] [stdout] | [INFO] [stdout] 187 | if validate_name(&name.as_bytes()) == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `name.as_bytes()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | &fee_payer.key, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `fee_payer.key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | &program_id, [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `program_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | &fee_payer.key, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `fee_payer.key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | &program_id, [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `program_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `u8` [INFO] [stdout] --> src/state.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let next_id = u8::from_le_bytes(src[32..33].try_into().unwrap()) [INFO] [stdout] | _______________________^ [INFO] [stdout] 38 | | .try_into() [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: consider removing `.try_into()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | / for i in 0..32 { [INFO] [stdout] 49 | | dst[i] = status[i]; [INFO] [stdout] 50 | | } [INFO] [stdout] | |_________^ help: try replacing the loop by: `dst[..32].copy_from_slice(&status);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] = note: `#[warn(clippy::manual_memcpy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `dst` [INFO] [stdout] --> src/state.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | for i in 32..33 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 52 - for i in 32..33 { [INFO] [stdout] 52 + for in dst.iter_mut().take(33).skip(32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `u8` [INFO] [stdout] --> src/state.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | let client_id = u8::from_le_bytes(src[..1].try_into().unwrap()) [INFO] [stdout] | _________________________^ [INFO] [stdout] 69 | | .try_into() [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: consider removing `.try_into()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | / for i in 1..33 { [INFO] [stdout] 90 | | dst[i] = requester[i - 1] [INFO] [stdout] 91 | | } [INFO] [stdout] | |_________^ help: try replacing the loop by: `dst[1..33].copy_from_slice(&requester);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:166:20 [INFO] [stdout] | [INFO] [stdout] 166 | sol_memset(&mut *request.try_borrow_mut_data()?, 0, account_data_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `*request.try_borrow_mut_data()?` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/processor.rs:166:20 [INFO] [stdout] | [INFO] [stdout] 166 | sol_memset(&mut *request.try_borrow_mut_data()?, 0, account_data_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&request.try_borrow_mut_data()?` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/processor.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | if validate_name(&name.as_bytes()) == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!validate_name(&name.as_bytes())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor.rs:187:26 [INFO] [stdout] | [INFO] [stdout] 187 | if validate_name(&name.as_bytes()) == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `name.as_bytes()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | / for i in 34..162 { [INFO] [stdout] 97 | | dst[i] = name[i - 34]; [INFO] [stdout] 98 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | / for i in 34..162 { [INFO] [stdout] 103 | | dst[i] = name[i - 34]; [INFO] [stdout] 104 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | / for i in 34..162 { [INFO] [stdout] 109 | | dst[i] = name[i - 34]; [INFO] [stdout] 110 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | / for i in 34..162 { [INFO] [stdout] 116 | | dst[i] = name[i - 34]; [INFO] [stdout] 117 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | / for i in 34..162 { [INFO] [stdout] 123 | | dst[i] = name[i - 34]; [INFO] [stdout] 124 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | / for i in 34..162 { [INFO] [stdout] 130 | | dst[i] = name[i - 34]; [INFO] [stdout] 131 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | / for i in 34..162 { [INFO] [stdout] 137 | | dst[i] = name[i - 34]; [INFO] [stdout] 138 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 143 | / for i in 34..162 { [INFO] [stdout] 144 | | dst[i] = name[i - 34]; [INFO] [stdout] 145 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/state.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | if !(b >= b'a' && b <= b'z') [INFO] [stdout] | ____________^ [INFO] [stdout] 184 | | && !(b >= b'A' && b <= b'Z') [INFO] [stdout] | |________________________________________^ help: try: `!(b >= b'a' && b <= b'z' || b >= b'A' && b <= b'Z')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `u8` [INFO] [stdout] --> src/state.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let next_id = u8::from_le_bytes(src[32..33].try_into().unwrap()) [INFO] [stdout] | _______________________^ [INFO] [stdout] 38 | | .try_into() [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: consider removing `.try_into()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `usize` is unnecessary [INFO] [stdout] --> src/state.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | if name.len() > 128 as usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `128_usize` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/state.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | if !(b >= b'a' && b <= b'z') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(b'a'..=b'z').contains(&b)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/state.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | && !(b >= b'A' && b <= b'Z') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(b'A'..=b'Z').contains(&b)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/state.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | && !(b >= b'0' && b <= b'9') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(b'0'..=b'9').contains(&b)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | / for i in 0..32 { [INFO] [stdout] 49 | | dst[i] = status[i]; [INFO] [stdout] 50 | | } [INFO] [stdout] | |_________^ help: try replacing the loop by: `dst[..32].copy_from_slice(&status);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] = note: `#[warn(clippy::manual_memcpy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `dst` [INFO] [stdout] --> src/state.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | for i in 32..33 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 52 - for i in 32..33 { [INFO] [stdout] 52 + for in dst.iter_mut().take(33).skip(32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `u8` [INFO] [stdout] --> src/state.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | let client_id = u8::from_le_bytes(src[..1].try_into().unwrap()) [INFO] [stdout] | _________________________^ [INFO] [stdout] 69 | | .try_into() [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: consider removing `.try_into()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | / for i in 1..33 { [INFO] [stdout] 90 | | dst[i] = requester[i - 1] [INFO] [stdout] 91 | | } [INFO] [stdout] | |_________^ help: try replacing the loop by: `dst[1..33].copy_from_slice(&requester);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | / for i in 34..162 { [INFO] [stdout] 97 | | dst[i] = name[i - 34]; [INFO] [stdout] 98 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | / for i in 34..162 { [INFO] [stdout] 103 | | dst[i] = name[i - 34]; [INFO] [stdout] 104 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/state.rs:223:34 [INFO] [stdout] | [INFO] [stdout] 223 | let bool = validate_name(&name); [INFO] [stdout] | ^^^^^ help: change this to: `name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | / for i in 34..162 { [INFO] [stdout] 109 | | dst[i] = name[i - 34]; [INFO] [stdout] 110 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | / for i in 34..162 { [INFO] [stdout] 116 | | dst[i] = name[i - 34]; [INFO] [stdout] 117 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | / for i in 34..162 { [INFO] [stdout] 123 | | dst[i] = name[i - 34]; [INFO] [stdout] 124 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | / for i in 34..162 { [INFO] [stdout] 130 | | dst[i] = name[i - 34]; [INFO] [stdout] 131 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | / for i in 34..162 { [INFO] [stdout] 137 | | dst[i] = name[i - 34]; [INFO] [stdout] 138 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: it looks like you're manually copying between slices [INFO] [stdout] --> src/state.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 143 | / for i in 34..162 { [INFO] [stdout] 144 | | dst[i] = name[i - 34]; [INFO] [stdout] 145 | | } [INFO] [stdout] | |_________________^ help: try replacing the loop by: `dst[34..162].copy_from_slice(&name);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/state.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | if !(b >= b'a' && b <= b'z') [INFO] [stdout] | ____________^ [INFO] [stdout] 184 | | && !(b >= b'A' && b <= b'Z') [INFO] [stdout] | |________________________________________^ help: try: `!(b >= b'a' && b <= b'z' || b >= b'A' && b <= b'Z')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `usize` is unnecessary [INFO] [stdout] --> src/state.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | if name.len() > 128 as usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `128_usize` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/state.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | if !(b >= b'a' && b <= b'z') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(b'a'..=b'z').contains(&b)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/state.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | && !(b >= b'A' && b <= b'Z') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(b'A'..=b'Z').contains(&b)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/state.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | && !(b >= b'0' && b <= b'9') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(b'0'..=b'9').contains(&b)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.55s [INFO] running `Command { std: "docker" "inspect" "72c18f382217571a227e78b636f2acffd80004bd0d4878ce4e79dc4449d8af3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72c18f382217571a227e78b636f2acffd80004bd0d4878ce4e79dc4449d8af3e", kill_on_drop: false }` [INFO] [stdout] 72c18f382217571a227e78b636f2acffd80004bd0d4878ce4e79dc4449d8af3e