[INFO] cloning repository https://github.com/0xLozi/testing
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0xLozi/testing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xLozi%2Ftesting", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xLozi%2Ftesting'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 956a5c1ec5c3285151b57f7b478a8f733f80c369
[INFO] checking 0xLozi/testing against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6 for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xLozi%2Ftesting" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/0xLozi/testing
[INFO] finished tweaking git repo https://github.com/0xLozi/testing
[INFO] tweaked toml for git repo https://github.com/0xLozi/testing written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/0xLozi/testing on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/0xLozi/testing already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2
[INFO] running `Command { std: "docker" "start" "6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking typenum v1.20.1
[INFO] [stderr]    Compiling glob v0.3.4
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]    Compiling prettyplease v0.2.37
[INFO] [stderr]    Compiling regex-syntax v0.8.11
[INFO] [stderr]    Compiling memchr v2.8.3
[INFO] [stderr]    Compiling cfg-if v1.0.4
[INFO] [stderr]    Compiling either v1.17.0
[INFO] [stderr]    Compiling libloading v0.8.9
[INFO] [stderr]    Compiling bindgen v0.72.1
[INFO] [stderr]    Compiling autocfg v1.5.1
[INFO] [stderr]    Compiling itertools v0.13.0
[INFO] [stderr]    Compiling clang-sys v1.9.1
[INFO] [stderr]    Compiling log v0.4.33
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling find-msvc-tools v0.1.10
[INFO] [stderr]    Compiling shlex v2.0.1
[INFO] [stderr]    Compiling rustc-hash v2.1.3
[INFO] [stderr]    Compiling bitflags v2.13.1
[INFO] [stderr]    Compiling cc v1.4.2
[INFO] [stderr]     Checking subtle v2.6.1
[INFO] [stderr]     Checking simd-adler32 v0.3.9
[INFO] [stderr]     Checking const-oid v0.10.2
[INFO] [stderr]     Checking miniz_oxide v0.8.9
[INFO] [stderr]    Compiling regex-automata v0.4.18
[INFO] [stderr]     Checking clap_builder v4.6.0
[INFO] [stderr]     Checking generic-array v0.14.7
[INFO] [stderr]     Checking hybrid-array v0.4.12
[INFO] [stderr]     Checking block-padding v0.3.3
[INFO] [stderr]     Checking crypto-common v0.1.7
[INFO] [stderr]     Checking inout v0.1.4
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking cipher v0.4.4
[INFO] [stderr]     Checking dbl v0.3.2
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking crc32fast v1.5.0
[INFO] [stderr]     Checking cpufeatures v0.3.0
[INFO] [stderr]     Checking aes v0.8.4
[INFO] [stderr]     Checking crypto-common v0.2.2
[INFO] [stderr]     Checking block-buffer v0.12.0
[INFO] [stderr]     Checking flate2 v1.1.9
[INFO] [stderr]     Checking cmac v0.7.2
[INFO] [stderr]     Checking des v0.8.1
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]     Checking cbc v0.1.2
[INFO] [stderr]     Checking atoi v3.1.0
[INFO] [stderr]     Checking zlib-rs v0.6.7
[INFO] [stderr]     Checking digest v0.11.3
[INFO] [stderr]    Compiling regex v1.13.1
[INFO] [stderr]     Checking sha1 v0.11.0
[INFO] [stderr]     Checking clap v4.6.1
[INFO] [stderr]    Compiling r-psp-decrypter v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: r-psp-decrypter@0.1.0: c_libraries/kl4e.c: In function 'decompress_kle':
[INFO] [stderr] warning: r-psp-decrypter@0.1.0: c_libraries/kl4e.c:219:39: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 's32' {aka 'int'} [-Wsign-compare]
[INFO] [stderr] warning: r-psp-decrypter@0.1.0:   219 |                     for (u32 i = 5; i < copyCountBits; i++) {
[INFO] [stderr] warning: r-psp-decrypter@0.1.0:       |                                       ^
[INFO] [stdout] error: expected type, found `,`
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:294:20
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub struct kirk_ctx {
[INFO] [stdout]     |            -------- while parsing this struct
[INFO] [stdout] 293 |     pub is_kirk_initialized: u8,
[INFO] [stdout] 294 |     pub aes_kirk1: ,
[INFO] [stdout]     |                    ^ expected type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected type, found `,`
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:294:20
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub struct kirk_ctx {
[INFO] [stdout]     |            -------- while parsing this struct
[INFO] [stdout] 293 |     pub is_kirk_initialized: u8,
[INFO] [stdout] 294 |     pub aes_kirk1: ,
[INFO] [stdout]     |                    ^ expected type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `decrypt_ipl` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:17
[INFO] [stdout]     |
[INFO] [stdout] 366 | ...   decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, ...
[INFO] [stdout]     |       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: similarly named function `decrypt_prx` defined here
[INFO] [stdout]    --> src/prx_types.rs:853:1
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: a function with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 366 -                 decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout] 366 +                 decrypt_prx(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout]   1 + use crate::psp_decrypt_lib::decrypt_ipl;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `preipl` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:102
[INFO] [stdout]     |
[INFO] [stdout] 366 | ...   decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, ...
[INFO] [stdout]     |                                                                                            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `preipl_size` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:110
[INFO] [stdout]     |
[INFO] [stdout] 366 | ...z_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |                                                  ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `verbose` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:123
[INFO] [stdout]     |
[INFO] [stdout] 366 | ..., out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |                                                    ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `keep_all` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:132
[INFO] [stdout]     |
[INFO] [stdout] 366 | ... + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::task`
[INFO] [stdout]  --> src/keys.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use core::task;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TAG_INFO` should have an upper camel case name
[INFO] [stdout]  --> src/tag_info.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct TAG_INFO {
[INFO] [stdout]   |            ^^^^^^^^ help: convert the identifier to upper camel case: `TagInfo`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TAG_INFO2` should have an upper camel case name
[INFO] [stdout]   --> src/tag_info.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct TAG_INFO2 {
[INFO] [stdout]    |            ^^^^^^^^^ help: convert the identifier to upper camel case: `TagInfo2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `cipher`
[INFO] [stdout]  --> src/kirk_lib/kirk_engine.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use aes::{Aes128, cipher};
[INFO] [stdout]   |                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `decrypt_ipl` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:17
[INFO] [stdout]     |
[INFO] [stdout] 366 | ...   decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, ...
[INFO] [stdout]     |       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: similarly named function `decrypt_prx` defined here
[INFO] [stdout]    --> src/prx_types.rs:853:1
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: a function with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 366 -                 decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout] 366 +                 decrypt_prx(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout]   1 + use crate::psp_decrypt_lib::decrypt_ipl;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `preipl` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:102
[INFO] [stdout]     |
[INFO] [stdout] 366 | ...   decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, ...
[INFO] [stdout]     |                                                                                            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PspError`
[INFO] [stdout]  --> src/kirk_lib/kirk_engine.rs:4:48
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::error_handling::errors::{KirkError, PspError};
[INFO] [stdout]   |                                                ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `KirkModeCmd1`, `KirkModeCmd2`, `KirkModeCmd3`, and `KirkModeDecryptCbc`
[INFO] [stdout]  --> src/kirk_lib/kirk_engine.rs:5:47
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::kirk_lib::kirk_engine::KirkModes::{KirkModeCmd1, KirkModeCmd2, KirkModeCmd3, KirkModeDecryptCbc};
[INFO] [stdout]   |                                               ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `preipl_size` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:110
[INFO] [stdout]     |
[INFO] [stdout] 366 | ...z_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |                                                  ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::kirk_lib::kirk_engine::KirkReturnValues::KirkInvalidMode`
[INFO] [stdout]  --> src/kirk_lib/kirk_engine.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::kirk_lib::kirk_engine::KirkReturnValues::KirkInvalidMode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `verbose` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:123
[INFO] [stdout]     |
[INFO] [stdout] 366 | ..., out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |                                                    ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `keep_all` in this scope
[INFO] [stdout]    --> src/psar_decrypter.rs:366:132
[INFO] [stdout]     |
[INFO] [stdout] 366 | ... + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `kirk_lib::kirk_engine::KirkReturnValues`
[INFO] [stdout]  --> src/kirk_lib/kirk_headers.rs:1:48
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::{error_handling::errors::KirkError, kirk_lib::kirk_engine::KirkReturnValues};
[INFO] [stdout]   |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Kirk_SHA1_HEADER` should have an upper camel case name
[INFO] [stdout]   --> src/kirk_lib/kirk_headers.rs:98:12
[INFO] [stdout]    |
[INFO] [stdout] 98 | pub struct Kirk_SHA1_HEADER {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `KirkSha1Header`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `ECDSA_POINT` should have an upper camel case name
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:111:12
[INFO] [stdout]     |
[INFO] [stdout] 111 | pub struct ECDSA_POINT <'steve> {
[INFO] [stdout]     |            ^^^^^^^^^^^ help: convert the identifier to upper camel case: `EcdsaPoint`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Kirk_CMD12_BUFFER` should have an upper camel case name
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub struct Kirk_CMD12_BUFFER <'axel>{
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `KirkCmd12Buffer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Kirk_Aes128CBC_Header` should have an upper camel case name
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:229:12
[INFO] [stdout]     |
[INFO] [stdout] 229 | pub struct Kirk_Aes128CBC_Header {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `KirkAes128cbcHeader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `kirk_ctx` should have an upper camel case name
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:292:12
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub struct kirk_ctx {
[INFO] [stdout]     |            ^^^^^^^^ help: convert the identifier to upper camel case: `KirkCtx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ptr::hash`
[INFO] [stdout]  --> src/prx_types.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ptr::hash;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::result`
[INFO] [stdout]  --> src/prx_types.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::result;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::task`
[INFO] [stdout]  --> src/keys.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use core::task;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TAG_INFO` should have an upper camel case name
[INFO] [stdout]  --> src/tag_info.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct TAG_INFO {
[INFO] [stdout]   |            ^^^^^^^^ help: convert the identifier to upper camel case: `TagInfo`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TAG_INFO2` should have an upper camel case name
[INFO] [stdout]   --> src/tag_info.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct TAG_INFO2 {
[INFO] [stdout]    |            ^^^^^^^^^ help: convert the identifier to upper camel case: `TagInfo2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `cipher`
[INFO] [stdout]  --> src/kirk_lib/kirk_engine.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use aes::{Aes128, cipher};
[INFO] [stdout]   |                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PspError`
[INFO] [stdout]  --> src/kirk_lib/kirk_engine.rs:4:48
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::error_handling::errors::{KirkError, PspError};
[INFO] [stdout]   |                                                ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TAG_INFO2` and `TAG_INFO`
[INFO] [stdout]    --> src/prx_types.rs:883:32
[INFO] [stdout]     |
[INFO] [stdout] 883 | use crate::tag_info::{KeyType, TAG_INFO, TAG_INFO2};
[INFO] [stdout]     |                                ^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `clap::Error`
[INFO] [stdout]  --> src/psp_decrypt_lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use clap::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `empty`
[INFO] [stdout]  --> src/psar_decrypter.rs:3:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{self, Read, empty};
[INFO] [stdout]   |                           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]  --> src/common.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{Read, Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deflate`
[INFO] [stdout]  --> src/common.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use zlib_rs::{Deflate, Inflate, InflateFlush, Status};
[INFO] [stdout]   |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GzDecoder` and `ZlibDecoder`
[INFO] [stdout]  --> src/common.rs:5:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | use flate2::bufread::{GzDecoder, ZlibDecoder};
[INFO] [stdout]   |                       ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `KirkModeCmd1`, `KirkModeCmd2`, `KirkModeCmd3`, and `KirkModeDecryptCbc`
[INFO] [stdout]  --> src/kirk_lib/kirk_engine.rs:5:47
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::kirk_lib::kirk_engine::KirkModes::{KirkModeCmd1, KirkModeCmd2, KirkModeCmd3, KirkModeDecryptCbc};
[INFO] [stdout]   |                                               ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::kirk_lib::kirk_engine::KirkReturnValues::KirkInvalidMode`
[INFO] [stdout]  --> src/kirk_lib/kirk_engine.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::kirk_lib::kirk_engine::KirkReturnValues::KirkInvalidMode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `kirk_lib::kirk_engine::KirkReturnValues`
[INFO] [stdout]  --> src/kirk_lib/kirk_headers.rs:1:48
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::{error_handling::errors::KirkError, kirk_lib::kirk_engine::KirkReturnValues};
[INFO] [stdout]   |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Kirk_SHA1_HEADER` should have an upper camel case name
[INFO] [stdout]   --> src/kirk_lib/kirk_headers.rs:98:12
[INFO] [stdout]    |
[INFO] [stdout] 98 | pub struct Kirk_SHA1_HEADER {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `KirkSha1Header`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `ECDSA_POINT` should have an upper camel case name
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:111:12
[INFO] [stdout]     |
[INFO] [stdout] 111 | pub struct ECDSA_POINT <'steve> {
[INFO] [stdout]     |            ^^^^^^^^^^^ help: convert the identifier to upper camel case: `EcdsaPoint`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Kirk_CMD12_BUFFER` should have an upper camel case name
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub struct Kirk_CMD12_BUFFER <'axel>{
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `KirkCmd12Buffer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Kirk_Aes128CBC_Header` should have an upper camel case name
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:229:12
[INFO] [stdout]     |
[INFO] [stdout] 229 | pub struct Kirk_Aes128CBC_Header {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `KirkAes128cbcHeader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `kirk_ctx` should have an upper camel case name
[INFO] [stdout]    --> src/kirk_lib/kirk_headers.rs:292:12
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub struct kirk_ctx {
[INFO] [stdout]     |            ^^^^^^^^ help: convert the identifier to upper camel case: `KirkCtx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ptr::hash`
[INFO] [stdout]  --> src/prx_types.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ptr::hash;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::result`
[INFO] [stdout]  --> src/prx_types.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::result;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TAG_INFO2` and `TAG_INFO`
[INFO] [stdout]    --> src/prx_types.rs:883:32
[INFO] [stdout]     |
[INFO] [stdout] 883 | use crate::tag_info::{KeyType, TAG_INFO, TAG_INFO2};
[INFO] [stdout]     |                                ^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]    --> src/prx_types.rs:888:25
[INFO] [stdout]     |
[INFO] [stdout] 888 |     use std::io::{Read, Write};
[INFO] [stdout]     |                         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `clap::Error`
[INFO] [stdout]  --> src/psp_decrypt_lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use clap::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `empty`
[INFO] [stdout]  --> src/psar_decrypter.rs:3:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{self, Read, empty};
[INFO] [stdout]   |                           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]  --> src/common.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{Read, Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deflate`
[INFO] [stdout]  --> src/common.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use zlib_rs::{Deflate, Inflate, InflateFlush, Status};
[INFO] [stdout]   |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GzDecoder` and `ZlibDecoder`
[INFO] [stdout]  --> src/common.rs:5:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | use flate2::bufread::{GzDecoder, ZlibDecoder};
[INFO] [stdout]   |                       ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:511:16
[INFO] [stdout]     |
[INFO] [stdout] 511 |             Ok(1)
[INFO] [stdout]     |             -- ^ expected `KirkReturnValues`, found integer
[INFO] [stdout]     |             |
[INFO] [stdout]     |             arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:511:13
[INFO] [stdout]     |
[INFO] [stdout] 511 |             Ok(1)
[INFO] [stdout]     |             ^^^-^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/result.rs:562:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:514:16
[INFO] [stdout]     |
[INFO] [stdout] 514 |             Ok(1)
[INFO] [stdout]     |             -- ^ expected `KirkReturnValues`, found integer
[INFO] [stdout]     |             |
[INFO] [stdout]     |             arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:514:13
[INFO] [stdout]     |
[INFO] [stdout] 514 |             Ok(1)
[INFO] [stdout]     |             ^^^-^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/result.rs:562:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:517:16
[INFO] [stdout]     |
[INFO] [stdout] 517 |             Ok(1)
[INFO] [stdout]     |             -- ^ expected `KirkReturnValues`, found integer
[INFO] [stdout]     |             |
[INFO] [stdout]     |             arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:517:13
[INFO] [stdout]     |
[INFO] [stdout] 517 |             Ok(1)
[INFO] [stdout]     |             ^^^-^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/result.rs:562:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:520:16
[INFO] [stdout]     |
[INFO] [stdout] 520 |             Ok(1)
[INFO] [stdout]     |             -- ^ expected `KirkReturnValues`, found integer
[INFO] [stdout]     |             |
[INFO] [stdout]     |             arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:520:13
[INFO] [stdout]     |
[INFO] [stdout] 520 |             Ok(1)
[INFO] [stdout]     |             ^^^-^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/result.rs:562:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:511:16
[INFO] [stdout]     |
[INFO] [stdout] 511 |             Ok(1)
[INFO] [stdout]     |             -- ^ expected `KirkReturnValues`, found integer
[INFO] [stdout]     |             |
[INFO] [stdout]     |             arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:511:13
[INFO] [stdout]     |
[INFO] [stdout] 511 |             Ok(1)
[INFO] [stdout]     |             ^^^-^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/result.rs:562:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:514:16
[INFO] [stdout]     |
[INFO] [stdout] 514 |             Ok(1)
[INFO] [stdout]     |             -- ^ expected `KirkReturnValues`, found integer
[INFO] [stdout]     |             |
[INFO] [stdout]     |             arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:514:13
[INFO] [stdout]     |
[INFO] [stdout] 514 |             Ok(1)
[INFO] [stdout]     |             ^^^-^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/result.rs:562:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:517:16
[INFO] [stdout]     |
[INFO] [stdout] 517 |             Ok(1)
[INFO] [stdout]     |             -- ^ expected `KirkReturnValues`, found integer
[INFO] [stdout]     |             |
[INFO] [stdout]     |             arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:517:13
[INFO] [stdout]     |
[INFO] [stdout] 517 |             Ok(1)
[INFO] [stdout]     |             ^^^-^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/result.rs:562:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:520:16
[INFO] [stdout]     |
[INFO] [stdout] 520 |             Ok(1)
[INFO] [stdout]     |             -- ^ expected `KirkReturnValues`, found integer
[INFO] [stdout]     |             |
[INFO] [stdout]     |             arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:520:13
[INFO] [stdout]     |
[INFO] [stdout] 520 |             Ok(1)
[INFO] [stdout]     |             ^^^-^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/result.rs:562:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:89:20
[INFO] [stdout]     |
[INFO] [stdout]  89 |         ret_size = decrypt_prx(buf2, None).unwrap_or(0);
[INFO] [stdout]     |                    ^^^^^^^^^^^------------ argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<_>`
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:89:38
[INFO] [stdout]     |
[INFO] [stdout]  89 |         ret_size = decrypt_prx(buf2, None).unwrap_or(0);
[INFO] [stdout]     |                                      ^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: consider mutably borrowing here
[INFO] [stdout]     |
[INFO] [stdout]  89 |         ret_size = decrypt_prx(buf2, &mut None).unwrap_or(0);
[INFO] [stdout]     |                                      ++++
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout]  89 -         ret_size = decrypt_prx(buf2, None).unwrap_or(0);
[INFO] [stdout]  89 +         ret_size = decrypt_prx(buf2, /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */).unwrap_or(0);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:183:20
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, tmp_data, in_data_size, &mut log_str);
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^                    ------------  ------------ expected `&mut [u8]`, found `&mut &mut String`
[INFO] [stdout]     |                                                        |
[INFO] [stdout]     |                                                        expected `u32`, found `usize`
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&[u8]`, found `Vec<u8>`
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:183:46
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, tmp_data, in_data_size, &mut log_str);
[INFO] [stdout]     |                                              ^^^^^^^^
[INFO] [stdout]     = note: expected reference `&[u8]`
[INFO] [stdout]                   found struct `Vec<u8>`
[INFO] [stdout]     = note: expected mutable reference `&mut [u8]`
[INFO] [stdout]                found mutable reference `&mut &mut std::string::String`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:193:8
[INFO] [stdout]     |
[INFO] [stdout] 193 | pub fn psp_decrypt_ipl1(pb_in: &[u8], pb_out: &[u8], cb_in: u32, log_str: &mut [u8]) -> Result<(), PspError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^               -------------  ----------  ------------------
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, &tmp_data, in_data_size, &mut log_str);
[INFO] [stdout]     |                                              +
[INFO] [stdout] help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, tmp_data, in_data_size.try_into().unwrap(), &mut log_str);
[INFO] [stdout]     |                                                                    ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:183:20
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, tmp_data, in_data_size, &mut log_str);
[INFO] [stdout]     |              ---   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `Result<(), PspError>`
[INFO] [stdout]     |              |
[INFO] [stdout]     |              expected due to this
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `i32`
[INFO] [stdout]                found enum `Result<(), PspError>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:215:47
[INFO] [stdout]     |
[INFO] [stdout] 215 |                     let ret: u32 = kirk1block(dec_data, pb_out);
[INFO] [stdout]     |                                    ---------- ^^^^^^^^ expected `&[u8]`, found `[u8; 4096]`
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |                                    arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:226:4
[INFO] [stdout]     |
[INFO] [stdout] 226 | fn kirk1block(pb_in: &[u8], pb_out: &[u8]) -> Result<(), PspError> {
[INFO] [stdout]     |    ^^^^^^^^^^ ------------
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]     |
[INFO] [stdout] 215 |                     let ret: u32 = kirk1block(&dec_data, pb_out);
[INFO] [stdout]     |                                               +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:215:36
[INFO] [stdout]     |
[INFO] [stdout] 215 |                     let ret: u32 = kirk1block(dec_data, pb_out);
[INFO] [stdout]     |                              ---   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `Result<(), PspError>`
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              expected due to this
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `u32`
[INFO] [stdout]                found enum `Result<(), PspError>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied
[INFO] [stdout]    --> src/prx_types.rs:900:3
[INFO] [stdout]     |
[INFO] [stdout] 900 |         psp_decrypt_type0(&mut eboot_data)?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^----------------- argument #2 of type `&mut Option<&mut [u8]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:439:8
[INFO] [stdout]     |
[INFO] [stdout] 439 | pub fn psp_decrypt_type0(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>) -> Result<usize, PspError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^                   ------------------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 900 |         psp_decrypt_type0(&mut eboot_data, /* &mut Option<&mut [u8]> */)?;
[INFO] [stdout]     |                                          ++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/psar_decrypter.rs:261:35
[INFO] [stdout]     |
[INFO] [stdout] 261 |                     cb_expanded = decrypt_prx(&mut data_1, Some(&key_array))?;
[INFO] [stdout]     |                                   ^^^^^^^^^^^------------------------------- argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<&[u8; 16]>`
[INFO] [stdout]    --> src/psar_decrypter.rs:261:60
[INFO] [stdout]     |
[INFO] [stdout] 261 |                     cb_expanded = decrypt_prx(&mut data_1, Some(&key_array))?;
[INFO] [stdout]     |                                                            ^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<&[u8; 16]>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 261 -                     cb_expanded = decrypt_prx(&mut data_1, Some(&key_array))?;
[INFO] [stdout] 261 +                     cb_expanded = decrypt_prx(&mut data_1, /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */)?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied
[INFO] [stdout]    --> src/prx_types.rs:931:3
[INFO] [stdout]     |
[INFO] [stdout] 931 |         psp_decrypt_type1(&mut eboot_data)?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^----------------- argument #2 of type `&mut Option<&mut [u8]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:506:8
[INFO] [stdout]     |
[INFO] [stdout] 506 | pub fn psp_decrypt_type1(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>) -> Result<usize, PspError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^                   ------------------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 931 |         psp_decrypt_type1(&mut eboot_data, /* &mut Option<&mut [u8]> */)?;
[INFO] [stdout]     |                                          ++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: cannot add `&str` to `&str`
[INFO] [stdout]    --> src/psar_decrypter.rs:366:85
[INFO] [stdout]     |
[INFO] [stdout] 366 | ...   decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, ...
[INFO] [stdout]     |                                                                   ------- ^ ------------- &str
[INFO] [stdout]     |                                                                   |       |
[INFO] [stdout]     |                                                                   |       `+` cannot be used to concatenate two `&str` strings
[INFO] [stdout]     |                                                                   &str
[INFO] [stdout]     |
[INFO] [stdout]     = note: string concatenation requires an owned `String` on the left
[INFO] [stdout] help: create an owned `String` from a string reference
[INFO] [stdout]     |
[INFO] [stdout] 366 |                 decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir.to_owned() + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |                                                                                    +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied
[INFO] [stdout]    --> src/prx_types.rs:957:9
[INFO] [stdout]     |
[INFO] [stdout] 957 |         psp_decrypt_type2(&mut eboot_data)?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^----------------- argument #2 of type `&mut Option<&mut [u8]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:609:8
[INFO] [stdout]     |
[INFO] [stdout] 609 | pub fn psp_decrypt_type2(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>) -> Result<usize, PspError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^                   ------------------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 957 |         psp_decrypt_type2(&mut eboot_data, /* &mut Option<&mut [u8]> */)?;
[INFO] [stdout]     |                                          ++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/psar_decrypter.rs:492:18
[INFO] [stdout]     |
[INFO] [stdout] 492 |     let cb_out = decrypt_prx(&mut p_out[..cb_in], None)?;
[INFO] [stdout]     |                  ^^^^^^^^^^^--------------------------- argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<_>`
[INFO] [stdout]    --> src/psar_decrypter.rs:492:51
[INFO] [stdout]     |
[INFO] [stdout] 492 |     let cb_out = decrypt_prx(&mut p_out[..cb_in], None)?;
[INFO] [stdout]     |                                                   ^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: consider mutably borrowing here
[INFO] [stdout]     |
[INFO] [stdout] 492 |     let cb_out = decrypt_prx(&mut p_out[..cb_in], &mut None)?;
[INFO] [stdout]     |                                                   ++++
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 492 -     let cb_out = decrypt_prx(&mut p_out[..cb_in], None)?;
[INFO] [stdout] 492 +     let cb_out = decrypt_prx(&mut p_out[..cb_in], /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */)?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:89:20
[INFO] [stdout]     |
[INFO] [stdout]  89 |         ret_size = decrypt_prx(buf2, None).unwrap_or(0);
[INFO] [stdout]     |                    ^^^^^^^^^^^------------ argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<_>`
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:89:38
[INFO] [stdout]     |
[INFO] [stdout]  89 |         ret_size = decrypt_prx(buf2, None).unwrap_or(0);
[INFO] [stdout]     |                                      ^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: consider mutably borrowing here
[INFO] [stdout]     |
[INFO] [stdout]  89 |         ret_size = decrypt_prx(buf2, &mut None).unwrap_or(0);
[INFO] [stdout]     |                                      ++++
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout]  89 -         ret_size = decrypt_prx(buf2, None).unwrap_or(0);
[INFO] [stdout]  89 +         ret_size = decrypt_prx(buf2, /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */).unwrap_or(0);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/psar_decrypter.rs:867:26
[INFO] [stdout]     |
[INFO] [stdout] 867 |     let s_usize: usize = decrypt_prx(data_1, None).unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^-------------- argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<_>`
[INFO] [stdout]    --> src/psar_decrypter.rs:867:46
[INFO] [stdout]     |
[INFO] [stdout] 867 |     let s_usize: usize = decrypt_prx(data_1, None).unwrap();
[INFO] [stdout]     |                                              ^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: consider mutably borrowing here
[INFO] [stdout]     |
[INFO] [stdout] 867 |     let s_usize: usize = decrypt_prx(data_1, &mut None).unwrap();
[INFO] [stdout]     |                                              ++++
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 867 -     let s_usize: usize = decrypt_prx(data_1, None).unwrap();
[INFO] [stdout] 867 +     let s_usize: usize = decrypt_prx(data_1, /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */).unwrap();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:183:20
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, tmp_data, in_data_size, &mut log_str);
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^                    ------------  ------------ expected `&mut [u8]`, found `&mut &mut String`
[INFO] [stdout]     |                                                        |
[INFO] [stdout]     |                                                        expected `u32`, found `usize`
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&[u8]`, found `Vec<u8>`
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:183:46
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, tmp_data, in_data_size, &mut log_str);
[INFO] [stdout]     |                                              ^^^^^^^^
[INFO] [stdout]     = note: expected reference `&[u8]`
[INFO] [stdout]                   found struct `Vec<u8>`
[INFO] [stdout]     = note: expected mutable reference `&mut [u8]`
[INFO] [stdout]                found mutable reference `&mut &mut std::string::String`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:193:8
[INFO] [stdout]     |
[INFO] [stdout] 193 | pub fn psp_decrypt_ipl1(pb_in: &[u8], pb_out: &[u8], cb_in: u32, log_str: &mut [u8]) -> Result<(), PspError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^               -------------  ----------  ------------------
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, &tmp_data, in_data_size, &mut log_str);
[INFO] [stdout]     |                                              +
[INFO] [stdout] help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, tmp_data, in_data_size.try_into().unwrap(), &mut log_str);
[INFO] [stdout]     |                                                                    ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/main.rs:85:15
[INFO] [stdout]     |
[INFO] [stdout]  85 |         match decrypt_prx(&mut eboot_data, None) {
[INFO] [stdout]     |               ^^^^^^^^^^^----------------------- argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<_>`
[INFO] [stdout]    --> src/main.rs:85:44
[INFO] [stdout]     |
[INFO] [stdout]  85 |         match decrypt_prx(&mut eboot_data, None) {
[INFO] [stdout]     |                                            ^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: consider mutably borrowing here
[INFO] [stdout]     |
[INFO] [stdout]  85 |         match decrypt_prx(&mut eboot_data, &mut None) {
[INFO] [stdout]     |                                            ++++
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout]  85 -         match decrypt_prx(&mut eboot_data, None) {
[INFO] [stdout]  85 +         match decrypt_prx(&mut eboot_data, /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:183:20
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let cb1: i32 = psp_decrypt_ipl1(in_data, tmp_data, in_data_size, &mut log_str);
[INFO] [stdout]     |              ---   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `Result<(), PspError>`
[INFO] [stdout]     |              |
[INFO] [stdout]     |              expected due to this
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `i32`
[INFO] [stdout]                found enum `Result<(), errors::PspError>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:215:47
[INFO] [stdout]     |
[INFO] [stdout] 215 |                     let ret: u32 = kirk1block(dec_data, pb_out);
[INFO] [stdout]     |                                    ---------- ^^^^^^^^ expected `&[u8]`, found `[u8; 4096]`
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |                                    arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:226:4
[INFO] [stdout]     |
[INFO] [stdout] 226 | fn kirk1block(pb_in: &[u8], pb_out: &[u8]) -> Result<(), PspError> {
[INFO] [stdout]     |    ^^^^^^^^^^ ------------
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]     |
[INFO] [stdout] 215 |                     let ret: u32 = kirk1block(&dec_data, pb_out);
[INFO] [stdout]     |                                               +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:215:36
[INFO] [stdout]     |
[INFO] [stdout] 215 |                     let ret: u32 = kirk1block(dec_data, pb_out);
[INFO] [stdout]     |                              ---   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `Result<(), PspError>`
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              expected due to this
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `u32`
[INFO] [stdout]                found enum `Result<(), errors::PspError>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                     let mut hasher = Sha1::new();
[INFO] [stdout]     |                         ----^^^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `outbuff`
[INFO] [stdout]   --> src/kirk_lib/kirk_engine.rs:84:29
[INFO] [stdout]    |
[INFO] [stdout] 84 |     pub fn kirk_cmd1(&self, outbuff: &mut [u8], inbuff: &[u8], size: usize) -> Result<KirkReturnValues, KirkError> {
[INFO] [stdout]    |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outbuff`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `clean_aes_key`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:104:17
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let clean_aes_key = &keys_buffer[0..16];
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clean_aes_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `clean_cmac_key`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:105:17
[INFO] [stdout]     |
[INFO] [stdout] 105 |             let clean_cmac_key = &keys_buffer[16..32];
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clean_cmac_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hasher`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                     let mut hasher = Sha1::new();
[INFO] [stdout]     |                         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hasher`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eheader`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:112:25
[INFO] [stdout]     |
[INFO] [stdout] 112 |                     let eheader = KirkCmd1EcdsaHeader::new(inbuff);
[INFO] [stdout]     |                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eheader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `kirk1_pub`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:113:25
[INFO] [stdout]     |
[INFO] [stdout] 113 |                     let kirk1_pub = [0u8;0x28];
[INFO] [stdout]     |                         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kirk1_pub`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `header_hash`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:114:25
[INFO] [stdout]     |
[INFO] [stdout] 114 |                     let header_hash = [0u8;0x14];
[INFO] [stdout]     |                         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_header_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `in_size`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:173:45
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn kirk_cmd10(&self, inbuff: &[u8], in_size: usize) -> Result<KirkReturnValues, KirkError> {
[INFO] [stdout]     |                                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `out_size`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:249:50
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn kirk_cmd12(&self, outbuff: &mut [u8], out_size: usize) -> Result<KirkReturnValues, KirkError> {
[INFO] [stdout]     |                                                  ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:250:13
[INFO] [stdout]     |
[INFO] [stdout] 250 |         let k: [u8;0x15];
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key_pair`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:251:13
[INFO] [stdout]     |
[INFO] [stdout] 251 |         let key_pair = Kirk_CMD12_BUFFER::new(outbuff);
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_pair`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/psar_decrypter.rs:261:35
[INFO] [stdout]     |
[INFO] [stdout] 261 |                     cb_expanded = decrypt_prx(&mut data_1, Some(&key_array))?;
[INFO] [stdout]     |                                   ^^^^^^^^^^^------------------------------- argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<&[u8; 16]>`
[INFO] [stdout]    --> src/psar_decrypter.rs:261:60
[INFO] [stdout]     |
[INFO] [stdout] 261 |                     cb_expanded = decrypt_prx(&mut data_1, Some(&key_array))?;
[INFO] [stdout]     |                                                            ^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<&[u8; 16]>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 261 -                     cb_expanded = decrypt_prx(&mut data_1, Some(&key_array))?;
[INFO] [stdout] 261 +                     cb_expanded = decrypt_prx(&mut data_1, /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */)?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: cannot add `&str` to `&str`
[INFO] [stdout]    --> src/psar_decrypter.rs:366:85
[INFO] [stdout]     |
[INFO] [stdout] 366 | ...   decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, ...
[INFO] [stdout]     |                                                                   ------- ^ ------------- &str
[INFO] [stdout]     |                                                                   |       |
[INFO] [stdout]     |                                                                   |       `+` cannot be used to concatenate two `&str` strings
[INFO] [stdout]     |                                                                   &str
[INFO] [stdout]     |
[INFO] [stdout]     = note: string concatenation requires an owned `String` on the left
[INFO] [stdout] help: create an owned `String` from a string reference
[INFO] [stdout]     |
[INFO] [stdout] 366 |                 decrypt_ipl(data_2, cb_expanded, int_version, sz_file_base, out_dir.to_owned() + "/PSARDUMPER", preipl, preipl_size, verbose, keep_all, log_str);
[INFO] [stdout]     |                                                                                    +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/psar_decrypter.rs:492:18
[INFO] [stdout]     |
[INFO] [stdout] 492 |     let cb_out = decrypt_prx(&mut p_out[..cb_in], None)?;
[INFO] [stdout]     |                  ^^^^^^^^^^^--------------------------- argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<_>`
[INFO] [stdout]    --> src/psar_decrypter.rs:492:51
[INFO] [stdout]     |
[INFO] [stdout] 492 |     let cb_out = decrypt_prx(&mut p_out[..cb_in], None)?;
[INFO] [stdout]     |                                                   ^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: consider mutably borrowing here
[INFO] [stdout]     |
[INFO] [stdout] 492 |     let cb_out = decrypt_prx(&mut p_out[..cb_in], &mut None)?;
[INFO] [stdout]     |                                                   ++++
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 492 -     let cb_out = decrypt_prx(&mut p_out[..cb_in], None)?;
[INFO] [stdout] 492 +     let cb_out = decrypt_prx(&mut p_out[..cb_in], /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */)?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/prx_types.rs:625:9
[INFO] [stdout]     |
[INFO] [stdout] 625 |     let mut xorbuf = expanded_seed(key_info, key_id, None)
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/prx_types.rs:657:9
[INFO] [stdout]     |
[INFO] [stdout] 657 |     let mut kirk_cmd = KirkCmd1Header::new(&final_kirk_header);
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/psar_decrypter.rs:867:26
[INFO] [stdout]     |
[INFO] [stdout] 867 |     let s_usize: usize = decrypt_prx(data_1, None).unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^-------------- argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<_>`
[INFO] [stdout]    --> src/psar_decrypter.rs:867:46
[INFO] [stdout]     |
[INFO] [stdout] 867 |     let s_usize: usize = decrypt_prx(data_1, None).unwrap();
[INFO] [stdout]     |                                              ^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: consider mutably borrowing here
[INFO] [stdout]     |
[INFO] [stdout] 867 |     let s_usize: usize = decrypt_prx(data_1, &mut None).unwrap();
[INFO] [stdout]     |                                              ++++
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 867 -     let s_usize: usize = decrypt_prx(data_1, None).unwrap();
[INFO] [stdout] 867 +     let s_usize: usize = decrypt_prx(data_1, /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */).unwrap();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/prx_types.rs:724:9
[INFO] [stdout]     |
[INFO] [stdout] 724 |     let mut xorbuff = expanded_seed(
[INFO] [stdout]     |         ----^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `ret_size` is never read
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:109:29
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let mut ret_size: i32 = 0; // idk
[INFO] [stdout]     |                             ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 170 |         ret_size = -1;
[INFO] [stdout]     |         ------------- `ret_size` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pb_in`
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:226:15
[INFO] [stdout]     |
[INFO] [stdout] 226 | fn kirk1block(pb_in: &[u8], pb_out: &[u8]) -> Result<(), PspError> {
[INFO] [stdout]     |               ^^^^^ help: if this is intentional, prefix it with an underscore: `_pb_in`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pb_out`
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:226:29
[INFO] [stdout]     |
[INFO] [stdout] 226 | fn kirk1block(pb_in: &[u8], pb_out: &[u8]) -> Result<(), PspError> {
[INFO] [stdout]     |                             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pb_out`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/main.rs:85:15
[INFO] [stdout]     |
[INFO] [stdout]  85 |         match decrypt_prx(&mut eboot_data, None) {
[INFO] [stdout]     |               ^^^^^^^^^^^----------------------- argument #3 of type `&mut Option<&[u8; 16]>` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&mut Option<&mut [u8]>`, found `Option<_>`
[INFO] [stdout]    --> src/main.rs:85:44
[INFO] [stdout]     |
[INFO] [stdout]  85 |         match decrypt_prx(&mut eboot_data, None) {
[INFO] [stdout]     |                                            ^^^^
[INFO] [stdout]     = note: expected mutable reference `&mut Option<&mut [u8]>`
[INFO] [stdout]                             found enum `Option<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/prx_types.rs:853:8
[INFO] [stdout]     |
[INFO] [stdout] 853 | pub fn decrypt_prx(inbuf: &mut [u8], outbuf: &mut Option<&mut [u8]>, seed: &mut Option<&[u8; 16]>) -> Result<usize, PspError>{
[INFO] [stdout]     |        ^^^^^^^^^^^                   ------------------------------  ----------------------------
[INFO] [stdout] help: consider mutably borrowing here
[INFO] [stdout]     |
[INFO] [stdout]  85 |         match decrypt_prx(&mut eboot_data, &mut None) {
[INFO] [stdout]     |                                            ++++
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout]  85 -         match decrypt_prx(&mut eboot_data, None) {
[INFO] [stdout]  85 +         match decrypt_prx(&mut eboot_data, /* &mut Option<&mut [u8]> */, /* &mut Option<&[u8; 16]> */) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/psar_decrypter.rs:689:9
[INFO] [stdout]     |
[INFO] [stdout] 689 |     let mut cb_expanded: u32 = u32::from_le_bytes(data_out[0x108..0x108+4].try_into().unwrap());
[INFO] [stdout]     |         ----^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `len`
[INFO] [stdout]    --> src/psar_decrypter.rs:745:5
[INFO] [stdout]     |
[INFO] [stdout] 745 |     len: usize,
[INFO] [stdout]     |     ^^^ help: if this is intentional, prefix it with an underscore: `_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/psar_decrypter.rs:905:17
[INFO] [stdout]     |
[INFO] [stdout] 905 |             let mut filename : &[u8] = b"reboot_00g.bin";
[INFO] [stdout]     |                 ----^^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pb_to_save`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:38
[INFO] [stdout]     |
[INFO] [stdout] 900 | fn check_extract_reboot(name: &[u8], pb_to_save: &[u8], cb_to_save: u32, data_1: &mut [u8], data_2: &mut [u8], out_dir: &str, extra...
[INFO] [stdout]     |                                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pb_to_save`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cb_to_save`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:57
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...], pb_to_save: &[u8], cb_to_save: u32, data_1: &mut [u8], data_2: &mut [u8], out_dir: &str, extract_only: bool, log_str: &mut St...
[INFO] [stdout]     |                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cb_to_save`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_1`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:74
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...: &[u8], cb_to_save: u32, data_1: &mut [u8], data_2: &mut [u8], out_dir: &str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                              ^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_2`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:93
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...: u32, data_1: &mut [u8], data_2: &mut [u8], out_dir: &str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                              ^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `out_dir`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:112
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...[u8], data_2: &mut [u8], out_dir: &str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `extract_only`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:127
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...u8], out_dir: &str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                        ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extract_only`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `log_str`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:147
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `filename`
[INFO] [stdout]    --> src/psar_decrypter.rs:905:17
[INFO] [stdout]     |
[INFO] [stdout] 905 |             let mut filename : &[u8] = b"reboot_00g.bin";
[INFO] [stdout]     |                 ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                     let mut hasher = Sha1::new();
[INFO] [stdout]     |                         ----^^^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `outbuff`
[INFO] [stdout]   --> src/kirk_lib/kirk_engine.rs:84:29
[INFO] [stdout]    |
[INFO] [stdout] 84 |     pub fn kirk_cmd1(&self, outbuff: &mut [u8], inbuff: &[u8], size: usize) -> Result<KirkReturnValues, KirkError> {
[INFO] [stdout]    |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outbuff`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `clean_aes_key`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:104:17
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let clean_aes_key = &keys_buffer[0..16];
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clean_aes_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `clean_cmac_key`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:105:17
[INFO] [stdout]     |
[INFO] [stdout] 105 |             let clean_cmac_key = &keys_buffer[16..32];
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clean_cmac_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hasher`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                     let mut hasher = Sha1::new();
[INFO] [stdout]     |                         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hasher`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eheader`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:112:25
[INFO] [stdout]     |
[INFO] [stdout] 112 |                     let eheader = KirkCmd1EcdsaHeader::new(inbuff);
[INFO] [stdout]     |                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eheader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `kirk1_pub`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:113:25
[INFO] [stdout]     |
[INFO] [stdout] 113 |                     let kirk1_pub = [0u8;0x28];
[INFO] [stdout]     |                         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kirk1_pub`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `header_hash`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:114:25
[INFO] [stdout]     |
[INFO] [stdout] 114 |                     let header_hash = [0u8;0x14];
[INFO] [stdout]     |                         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_header_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0369, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `in_size`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:173:45
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn kirk_cmd10(&self, inbuff: &[u8], in_size: usize) -> Result<KirkReturnValues, KirkError> {
[INFO] [stdout]     |                                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `out_size`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:249:50
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn kirk_cmd12(&self, outbuff: &mut [u8], out_size: usize) -> Result<KirkReturnValues, KirkError> {
[INFO] [stdout]     |                                                  ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:250:13
[INFO] [stdout]     |
[INFO] [stdout] 250 |         let k: [u8;0x15];
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key_pair`
[INFO] [stdout]    --> src/kirk_lib/kirk_engine.rs:251:13
[INFO] [stdout]     |
[INFO] [stdout] 251 |         let key_pair = Kirk_CMD12_BUFFER::new(outbuff);
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_pair`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: r-psp-decrypter@0.1.0: c_libraries/kl4e.c: In function 'decompress_kle':
[INFO] [stderr] warning: r-psp-decrypter@0.1.0: c_libraries/kl4e.c:219:39: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 's32' {aka 'int'} [-Wsign-compare]
[INFO] [stderr] warning: r-psp-decrypter@0.1.0:   219 |                     for (u32 i = 5; i < copyCountBits; i++) {
[INFO] [stderr] warning: r-psp-decrypter@0.1.0:       |                                       ^
[INFO] [stderr] error: could not compile `r-psp-decrypter` (bin "r-psp-decrypter") due to 20 previous errors; 50 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/prx_types.rs:625:9
[INFO] [stdout]     |
[INFO] [stdout] 625 |     let mut xorbuf = expanded_seed(key_info, key_id, None)
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/prx_types.rs:657:9
[INFO] [stdout]     |
[INFO] [stdout] 657 |     let mut kirk_cmd = KirkCmd1Header::new(&final_kirk_header);
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/prx_types.rs:724:9
[INFO] [stdout]     |
[INFO] [stdout] 724 |     let mut xorbuff = expanded_seed(
[INFO] [stdout]     |         ----^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `ret_size` is never read
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:109:29
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let mut ret_size: i32 = 0; // idk
[INFO] [stdout]     |                             ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 170 |         ret_size = -1;
[INFO] [stdout]     |         ------------- `ret_size` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pb_in`
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:226:15
[INFO] [stdout]     |
[INFO] [stdout] 226 | fn kirk1block(pb_in: &[u8], pb_out: &[u8]) -> Result<(), PspError> {
[INFO] [stdout]     |               ^^^^^ help: if this is intentional, prefix it with an underscore: `_pb_in`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pb_out`
[INFO] [stdout]    --> src/psp_decrypt_lib.rs:226:29
[INFO] [stdout]     |
[INFO] [stdout] 226 | fn kirk1block(pb_in: &[u8], pb_out: &[u8]) -> Result<(), PspError> {
[INFO] [stdout]     |                             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pb_out`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/psar_decrypter.rs:689:9
[INFO] [stdout]     |
[INFO] [stdout] 689 |     let mut cb_expanded: u32 = u32::from_le_bytes(data_out[0x108..0x108+4].try_into().unwrap());
[INFO] [stdout]     |         ----^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `len`
[INFO] [stdout]    --> src/psar_decrypter.rs:745:5
[INFO] [stdout]     |
[INFO] [stdout] 745 |     len: usize,
[INFO] [stdout]     |     ^^^ help: if this is intentional, prefix it with an underscore: `_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/psar_decrypter.rs:905:17
[INFO] [stdout]     |
[INFO] [stdout] 905 |             let mut filename : &[u8] = b"reboot_00g.bin";
[INFO] [stdout]     |                 ----^^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pb_to_save`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:38
[INFO] [stdout]     |
[INFO] [stdout] 900 | fn check_extract_reboot(name: &[u8], pb_to_save: &[u8], cb_to_save: u32, data_1: &mut [u8], data_2: &mut [u8], out_dir: &str, extra...
[INFO] [stdout]     |                                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pb_to_save`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cb_to_save`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:57
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...], pb_to_save: &[u8], cb_to_save: u32, data_1: &mut [u8], data_2: &mut [u8], out_dir: &str, extract_only: bool, log_str: &mut St...
[INFO] [stdout]     |                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cb_to_save`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_1`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:74
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...: &[u8], cb_to_save: u32, data_1: &mut [u8], data_2: &mut [u8], out_dir: &str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                              ^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_2`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:93
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...: u32, data_1: &mut [u8], data_2: &mut [u8], out_dir: &str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                              ^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `out_dir`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:112
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...[u8], data_2: &mut [u8], out_dir: &str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `extract_only`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:127
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...u8], out_dir: &str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                        ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extract_only`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `log_str`
[INFO] [stdout]    --> src/psar_decrypter.rs:900:147
[INFO] [stdout]     |
[INFO] [stdout] 900 | ...str, extract_only: bool, log_str: &mut String) -> i32 {
[INFO] [stdout]     |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `filename`
[INFO] [stdout]    --> src/psar_decrypter.rs:905:17
[INFO] [stdout]     |
[INFO] [stdout] 905 |             let mut filename : &[u8] = b"reboot_00g.bin";
[INFO] [stdout]     |                 ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0369, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] warning: r-psp-decrypter@0.1.0: c_libraries/kl4e.c: In function 'decompress_kle':
[INFO] [stderr] warning: r-psp-decrypter@0.1.0: c_libraries/kl4e.c:219:39: warning: comparison of integer expressions of different signedness: 'u32' {aka 'unsigned int'} and 's32' {aka 'int'} [-Wsign-compare]
[INFO] [stderr] warning: r-psp-decrypter@0.1.0:   219 |                     for (u32 i = 5; i < copyCountBits; i++) {
[INFO] [stderr] warning: r-psp-decrypter@0.1.0:       |                                       ^
[INFO] [stderr] error: could not compile `r-psp-decrypter` (bin "r-psp-decrypter" test) due to 23 previous errors; 51 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2", kill_on_drop: false }`
[INFO] [stdout] 6340d0237a1fe030d4dcfe4af12f6c006fdefbdd54f88a50ef425352a2d31ec2
