[INFO] cloning repository https://github.com/Tiqur/Crypt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tiqur/Crypt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTiqur%2FCrypt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTiqur%2FCrypt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce7831ee25f77bd13520dac30035dda94e16197d [INFO] checking Tiqur/Crypt against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTiqur%2FCrypt" "/workspace/builds/worker-33/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-33/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tiqur/Crypt on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Tiqur/Crypt [INFO] finished tweaking git repo https://github.com/Tiqur/Crypt [INFO] tweaked toml for git repo https://github.com/Tiqur/Crypt written to /workspace/builds/worker-33/source/Cargo.toml [INFO] crate git repo https://github.com/Tiqur/Crypt already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libdeflate-sys v0.7.1 [INFO] [stderr] Downloaded libdeflater v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be5012808b44efd8ec958ec2423b71d927bd7b402d452a21a183e13fd3facb8a [INFO] running `Command { std: "docker" "start" "-a" "be5012808b44efd8ec958ec2423b71d927bd7b402d452a21a183e13fd3facb8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be5012808b44efd8ec958ec2423b71d927bd7b402d452a21a183e13fd3facb8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be5012808b44efd8ec958ec2423b71d927bd7b402d452a21a183e13fd3facb8a", kill_on_drop: false }` [INFO] [stdout] be5012808b44efd8ec958ec2423b71d927bd7b402d452a21a183e13fd3facb8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-33/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9abe37e2b98a4b2b4bea0b14a34b8a40fe0ce9f82d94af0a1e9d837d2ed97421 [INFO] running `Command { std: "docker" "start" "-a" "9abe37e2b98a4b2b4bea0b14a34b8a40fe0ce9f82d94af0a1e9d837d2ed97421", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling libdeflate-sys v0.7.1 [INFO] [stderr] Checking libdeflater v0.7.1 [INFO] [stderr] Checking Crypt v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (4 fixes) [INFO] [stderr] Fixed src/Functions/encodeFile.rs (3 fixes) [INFO] [stderr] Fixed src/Functions/enterDir.rs (5 fixes) [INFO] [stderr] Fixed src/Functions/decodeFile.rs (2 fixes) [INFO] [stdout] warning: type `fileType` should have an upper camel case name [INFO] [stdout] --> src/Functions/enterDir.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum fileType { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `FileType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `fileType` should have an upper camel case name [INFO] [stdout] --> src/Functions/enterDir.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum fileType { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `FileType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `fileType` [INFO] [stdout] --> src/Functions/enterDir.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum fileType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Crypt` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `crypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Functions` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod Functions; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `functions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressionLevel` should have a snake case name [INFO] [stdout] --> src/main.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | let compressionLevel = CompressionLvl::best(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compression_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempPath` should have a snake case name [INFO] [stdout] --> src/main.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | let tempPath = "protected.crypt"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `temp_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `enterDir` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod enterDir; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enter_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `compressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod compressBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `decompressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod decompressBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `decompress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `encodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod encodeFile; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `encode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `decodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod decodeFile; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enterDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enter_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pathDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `path_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mergeFile` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let fileName = path.as_ref().unwrap().clone().file_name().into_string().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isFile` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let isFile = path.as_ref().unwrap().clone().file_type().unwrap().is_file(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let isDir = path.as_ref().unwrap().clone().file_type().unwrap().is_dir(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/enterDir.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | fs::remove_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/compressBuffer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compressBuffer(bytes: Vec, compLevel: CompressionLvl) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compLevel` should have a snake case name [INFO] [stdout] --> src/Functions/compressBuffer.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compressBuffer(bytes: Vec, compLevel: CompressionLvl) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `comp_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decompressBuffer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn decompressBuffer(bytes: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `decompress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `encode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mergeFile` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_fileName` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:55 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dataBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut dataBuffer = fs::read(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_dirDelimiter` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let _dirDelimiter = if path == "" {""} else {"/"}; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `_dir_delimiter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let compressedBuffer = compressBuffer(dataBuffer.clone(), compress); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedCompressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let encodedCompressedBuffer = base64::encode(compressedBuffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/encodeFile.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | mergeFile.write_all(format!("{},", encodedCompressedBuffer).as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn decodeFile(path: String) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileString` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut fileString = fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFiles` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let encodedFiles = fileString.split(","); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_files` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFile` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | for encodedFile in encodedFiles { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFileBytes` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let encodedFileBytes = encodedFile.as_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_file_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `fileType` [INFO] [stdout] --> src/Functions/enterDir.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum fileType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let compressedBuffer = base64::decode(&encodedFileBytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dataBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let mut dataBuffer = decompressBuffer(compressedBuffer); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexOfComma` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let indexOfComma = dataBuffer.iter().rposition(|r| r == &b',').unwrap()+1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `index_of_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let filePath = &dataBuffer.clone()[indexOfComma..dataBuffer.len()]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileNameDelimiterIndex` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let fileNameDelimiterIndex = filePath.iter().rposition(|r| r == &b'/').unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_name_delimiter_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePathWithoutName` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let filePathWithoutName = String::from_utf8(Vec::from(&filePath.clone()[0..fileNameDelimiterIndex])).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_path_without_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `strPath` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let strPath = std::str::from_utf8(filePath).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `str_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/decodeFile.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | fs::create_dir_all(filePathWithoutName); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/decodeFile.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | fs::write(strPath, dataBuffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Crypt` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `crypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Functions` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod Functions; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `functions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressionLevel` should have a snake case name [INFO] [stdout] --> src/main.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | let compressionLevel = CompressionLvl::best(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compression_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempPath` should have a snake case name [INFO] [stdout] --> src/main.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | let tempPath = "protected.crypt"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `temp_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `enterDir` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod enterDir; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enter_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `compressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod compressBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `decompressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod decompressBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `decompress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `encodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod encodeFile; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `encode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `decodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod decodeFile; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enterDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enter_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pathDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `path_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mergeFile` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let fileName = path.as_ref().unwrap().clone().file_name().into_string().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isFile` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let isFile = path.as_ref().unwrap().clone().file_type().unwrap().is_file(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let isDir = path.as_ref().unwrap().clone().file_type().unwrap().is_dir(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/enterDir.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | fs::remove_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/compressBuffer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compressBuffer(bytes: Vec, compLevel: CompressionLvl) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compLevel` should have a snake case name [INFO] [stdout] --> src/Functions/compressBuffer.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compressBuffer(bytes: Vec, compLevel: CompressionLvl) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `comp_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decompressBuffer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn decompressBuffer(bytes: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `decompress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `encode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mergeFile` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_fileName` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:55 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dataBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut dataBuffer = fs::read(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_dirDelimiter` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let _dirDelimiter = if path == "" {""} else {"/"}; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `_dir_delimiter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let compressedBuffer = compressBuffer(dataBuffer.clone(), compress); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedCompressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let encodedCompressedBuffer = base64::encode(compressedBuffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/encodeFile.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | mergeFile.write_all(format!("{},", encodedCompressedBuffer).as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn decodeFile(path: String) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileString` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut fileString = fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFiles` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let encodedFiles = fileString.split(","); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_files` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFile` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | for encodedFile in encodedFiles { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFileBytes` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let encodedFileBytes = encodedFile.as_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_file_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let compressedBuffer = base64::decode(&encodedFileBytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dataBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let mut dataBuffer = decompressBuffer(compressedBuffer); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexOfComma` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let indexOfComma = dataBuffer.iter().rposition(|r| r == &b',').unwrap()+1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `index_of_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let filePath = &dataBuffer.clone()[indexOfComma..dataBuffer.len()]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileNameDelimiterIndex` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let fileNameDelimiterIndex = filePath.iter().rposition(|r| r == &b'/').unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_name_delimiter_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePathWithoutName` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let filePathWithoutName = String::from_utf8(Vec::from(&filePath.clone()[0..fileNameDelimiterIndex])).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_path_without_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `strPath` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let strPath = std::str::from_utf8(filePath).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `str_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/decodeFile.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | fs::create_dir_all(filePathWithoutName); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/decodeFile.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | fs::write(strPath, dataBuffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.15s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking Crypt v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: type `fileType` should have an upper camel case name [INFO] [stdout] --> src/Functions/enterDir.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum fileType { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `FileType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `fileType` should have an upper camel case name [INFO] [stdout] --> src/Functions/enterDir.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum fileType { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `FileType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `fileType` [INFO] [stdout] --> src/Functions/enterDir.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum fileType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `fileType` [INFO] [stdout] --> src/Functions/enterDir.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum fileType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Crypt` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `crypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Functions` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod Functions; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `functions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressionLevel` should have a snake case name [INFO] [stdout] --> src/main.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | let compressionLevel = CompressionLvl::best(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compression_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempPath` should have a snake case name [INFO] [stdout] --> src/main.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | let tempPath = "protected.crypt"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `temp_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `enterDir` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod enterDir; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enter_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `compressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod compressBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `decompressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod decompressBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `decompress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `encodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod encodeFile; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `encode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `decodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod decodeFile; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enterDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enter_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pathDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `path_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mergeFile` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let fileName = path.as_ref().unwrap().clone().file_name().into_string().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isFile` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let isFile = path.as_ref().unwrap().clone().file_type().unwrap().is_file(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let isDir = path.as_ref().unwrap().clone().file_type().unwrap().is_dir(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/enterDir.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | fs::remove_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/compressBuffer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compressBuffer(bytes: Vec, compLevel: CompressionLvl) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compLevel` should have a snake case name [INFO] [stdout] --> src/Functions/compressBuffer.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compressBuffer(bytes: Vec, compLevel: CompressionLvl) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `comp_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decompressBuffer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn decompressBuffer(bytes: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `decompress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `encode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mergeFile` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_fileName` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:55 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dataBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut dataBuffer = fs::read(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_dirDelimiter` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let _dirDelimiter = if path == "" {""} else {"/"}; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `_dir_delimiter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let compressedBuffer = compressBuffer(dataBuffer.clone(), compress); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedCompressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let encodedCompressedBuffer = base64::encode(compressedBuffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/encodeFile.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | mergeFile.write_all(format!("{},", encodedCompressedBuffer).as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn decodeFile(path: String) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileString` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut fileString = fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFiles` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let encodedFiles = fileString.split(","); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_files` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFile` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | for encodedFile in encodedFiles { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFileBytes` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let encodedFileBytes = encodedFile.as_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_file_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let compressedBuffer = base64::decode(&encodedFileBytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dataBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let mut dataBuffer = decompressBuffer(compressedBuffer); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexOfComma` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let indexOfComma = dataBuffer.iter().rposition(|r| r == &b',').unwrap()+1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `index_of_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let filePath = &dataBuffer.clone()[indexOfComma..dataBuffer.len()]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileNameDelimiterIndex` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let fileNameDelimiterIndex = filePath.iter().rposition(|r| r == &b'/').unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_name_delimiter_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePathWithoutName` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let filePathWithoutName = String::from_utf8(Vec::from(&filePath.clone()[0..fileNameDelimiterIndex])).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_path_without_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `strPath` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let strPath = std::str::from_utf8(filePath).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `str_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/decodeFile.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | fs::create_dir_all(filePathWithoutName); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/decodeFile.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | fs::write(strPath, dataBuffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Crypt` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `crypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Functions` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod Functions; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `functions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressionLevel` should have a snake case name [INFO] [stdout] --> src/main.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | let compressionLevel = CompressionLvl::best(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compression_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempPath` should have a snake case name [INFO] [stdout] --> src/main.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | let tempPath = "protected.crypt"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `temp_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `enterDir` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod enterDir; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enter_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `compressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod compressBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `decompressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod decompressBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `decompress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `encodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod encodeFile; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `encode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `decodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod decodeFile; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enterDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `enter_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pathDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `path_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mergeFile` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enterDir(pathDir: String, mergeFile: &mut File, compress: CompressionLvl, depth: i32, mode: Mode) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let fileName = path.as_ref().unwrap().clone().file_name().into_string().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isFile` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let isFile = path.as_ref().unwrap().clone().file_type().unwrap().is_file(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isDir` should have a snake case name [INFO] [stdout] --> src/Functions/enterDir.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let isDir = path.as_ref().unwrap().clone().file_type().unwrap().is_dir(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `is_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/enterDir.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | fs::remove_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/compressBuffer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compressBuffer(bytes: Vec, compLevel: CompressionLvl) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compLevel` should have a snake case name [INFO] [stdout] --> src/Functions/compressBuffer.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compressBuffer(bytes: Vec, compLevel: CompressionLvl) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `comp_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompressBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decompressBuffer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn decompressBuffer(bytes: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `decompress_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `encode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mergeFile` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `merge_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_fileName` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:19:55 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn encodeFile(path: String, mergeFile: &mut File, _fileName: String, compress: CompressionLvl) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dataBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut dataBuffer = fs::read(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_dirDelimiter` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let _dirDelimiter = if path == "" {""} else {"/"}; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `_dir_delimiter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let compressedBuffer = compressBuffer(dataBuffer.clone(), compress); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedCompressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/encodeFile.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let encodedCompressedBuffer = base64::encode(compressedBuffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/encodeFile.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | mergeFile.write_all(format!("{},", encodedCompressedBuffer).as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decodeFile` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn decodeFile(path: String) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decode_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileString` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut fileString = fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFiles` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let encodedFiles = fileString.split(","); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_files` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFile` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | for encodedFile in encodedFiles { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `encodedFileBytes` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let encodedFileBytes = encodedFile.as_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `encoded_file_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `compressedBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let compressedBuffer = base64::decode(&encodedFileBytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `compressed_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dataBuffer` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let mut dataBuffer = decompressBuffer(compressedBuffer); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `data_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `indexOfComma` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let indexOfComma = dataBuffer.iter().rposition(|r| r == &b',').unwrap()+1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `index_of_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let filePath = &dataBuffer.clone()[indexOfComma..dataBuffer.len()]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileNameDelimiterIndex` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let fileNameDelimiterIndex = filePath.iter().rposition(|r| r == &b'/').unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_name_delimiter_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePathWithoutName` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let filePathWithoutName = String::from_utf8(Vec::from(&filePath.clone()[0..fileNameDelimiterIndex])).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_path_without_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `strPath` should have a snake case name [INFO] [stdout] --> src/Functions/decodeFile.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let strPath = std::str::from_utf8(filePath).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `str_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/decodeFile.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | fs::create_dir_all(filePathWithoutName); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Functions/decodeFile.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | fs::write(strPath, dataBuffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.29s [INFO] running `Command { std: "docker" "inspect" "9abe37e2b98a4b2b4bea0b14a34b8a40fe0ce9f82d94af0a1e9d837d2ed97421", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9abe37e2b98a4b2b4bea0b14a34b8a40fe0ce9f82d94af0a1e9d837d2ed97421", kill_on_drop: false }` [INFO] [stdout] 9abe37e2b98a4b2b4bea0b14a34b8a40fe0ce9f82d94af0a1e9d837d2ed97421