[INFO] cloning repository https://github.com/ISRAEL-DUFF/tfs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ISRAEL-DUFF/tfs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FISRAEL-DUFF%2Ftfs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FISRAEL-DUFF%2Ftfs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f789f2f3b43776982f61a9245c09b6055a5566ab
[INFO] testing ISRAEL-DUFF/tfs against try#33835004928d3bf65db4d4712e1330766263b0bd for pr-155739
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FISRAEL-DUFF%2Ftfs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ISRAEL-DUFF/tfs
[INFO] finished tweaking git repo https://github.com/ISRAEL-DUFF/tfs
[INFO] tweaked toml for git repo https://github.com/ISRAEL-DUFF/tfs written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ISRAEL-DUFF/tfs on toolchain 33835004928d3bf65db4d4712e1330766263b0bd
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ISRAEL-DUFF/tfs 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" "+33835004928d3bf65db4d4712e1330766263b0bd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] efb48aaa3ade29f0b07a75253672e0edfd2831399351e2496d68702bb979b6e0
[INFO] running `Command { std: "docker" "start" "-a" "efb48aaa3ade29f0b07a75253672e0edfd2831399351e2496d68702bb979b6e0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "efb48aaa3ade29f0b07a75253672e0edfd2831399351e2496d68702bb979b6e0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "efb48aaa3ade29f0b07a75253672e0edfd2831399351e2496d68702bb979b6e0", kill_on_drop: false }`
[INFO] [stdout] efb48aaa3ade29f0b07a75253672e0edfd2831399351e2496d68702bb979b6e0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 63676ebf9c8c0e226614f84e3a7723f876d7208a9d2e9243e18566d2bbdee380
[INFO] running `Command { std: "docker" "start" "-a" "63676ebf9c8c0e226614f84e3a7723f876d7208a9d2e9243e18566d2bbdee380", kill_on_drop: false }`
[INFO] [stderr]    Compiling disk v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `super::utility`
[INFO] [stdout]  --> src/tfs/types.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use super::utility;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/tfs/mod.rs:407:9
[INFO] [stdout]     |
[INFO] [stdout] 353 | /         loop {
[INFO] [stdout] 354 | |             if bytes_read == length || j == length {
[INFO] [stdout] 355 | |                 return bytes_read as i64;
[INFO] [stdout] ...   |
[INFO] [stdout] 404 | |             println!("BYTES INDEX: {}, {}", block_index, block_offset);
[INFO] [stdout] 405 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 406 |
[INFO] [stdout] 407 |           -1
[INFO] [stdout]     |           ^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/tfs/mod.rs:533:9
[INFO] [stdout]     |
[INFO] [stdout] 507 | /         loop {
[INFO] [stdout] 508 | |             if bytes_writen < length && (offset + bytes_writen) < data.len() {
[INFO] [stdout] 509 | |                 let bytes_wr = self.write_to_block(block_num, block_offset, data, length - bytes_writen, offset + bytes_writen);
[INFO] [stdout] 510 | |                 println!("bytes_writen: {}", bytes_wr);
[INFO] [stdout] ...   |
[INFO] [stdout] 531 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 532 |
[INFO] [stdout] 533 |           bytes_writen as i64
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/tfs/disk.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let mut file = OpenOptions::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: variable does not need to be mutable
[INFO] [stdout]    --> src/tfs/disk.rs:104:18
[INFO] [stdout]     |
[INFO] [stdout] 104 |             Some(mut file) => {
[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/tfs/disk.rs:116:18
[INFO] [stdout]     |
[INFO] [stdout] 116 |             Some(mut file) => {
[INFO] [stdout]     |                  ----^^^^
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/tfs/types.rs:90:9
[INFO] [stdout]    |
[INFO] [stdout] 90 |         unsafe {
[INFO] [stdout]    |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/tfs/types.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         unsafe {
[INFO] [stdout]    |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/tfs/types.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         unsafe {
[INFO] [stdout]     |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/tfs/types.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |         unsafe {
[INFO] [stdout]     |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/tfs/mod.rs:140:13
[INFO] [stdout]     |
[INFO] [stdout] 140 |         for i in 0..nBlocks - inodeBlocks - 1 {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `metaData`
[INFO] [stdout]    --> src/tfs/mod.rs:225:18
[INFO] [stdout]     |
[INFO] [stdout] 225 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metaData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `disk`
[INFO] [stdout]    --> src/tfs/mod.rs:227:26
[INFO] [stdout]     |
[INFO] [stdout] 227 |                     Some(disk) => {
[INFO] [stdout]     |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_disk`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tfs/mod.rs:345:13
[INFO] [stdout]     |
[INFO] [stdout] 345 |         let mut block_index = (offset as f64 / Disk::BLOCK_SIZE as f64).floor() as usize;
[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/tfs/mod.rs:450:13
[INFO] [stdout]     |
[INFO] [stdout] 450 |         let mut disc = match &mut self.disk {
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `ptrs` is never read
[INFO] [stdout]    --> src/tfs/mod.rs:499:17
[INFO] [stdout]     |
[INFO] [stdout] 499 |                 ptrs[block_index - POINTERS_PER_INODE] = blk as u32;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tfs/mod.rs:684:13
[INFO] [stdout]     |
[INFO] [stdout] 684 |         let mut disk = match &mut self.disk {
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32_be` is never used
[INFO] [stdout]  --> src/tfs/utility.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn as_u32_be(array: &[u8; 4]) -> u32 {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32_le` is never used
[INFO] [stdout]  --> src/tfs/utility.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn as_u32_le(array: &[u8; 4]) -> u32 {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32` is never used
[INFO] [stdout]   --> src/tfs/utility.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn as_u32(array: &[u8]) -> u32 {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `metaData` should have a snake case name
[INFO] [stdout]  --> src/tfs/mod.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub metaData: Option<MetaData>,
[INFO] [stdout]   |         ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `inodeBitMap` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub inodeBitMap: Option<Vec<bool>>,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `dataBitMap` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub dataBitMap: Option<Vec<bool>>,
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:54:18
[INFO] [stdout]    |
[INFO] [stdout] 54 |             Some(metaData) => Self::debug_print(metaData),
[INFO] [stdout]    |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let metaData = Self::read_meta_data(disk);
[INFO] [stdout]    |             ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeTable` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 |         let inodeTable = &meta_data.inodeTable;
[INFO] [stdout]    |             ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |         let metaData = Self::read_meta_data(disk);
[INFO] [stdout]     |             ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData2` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |         let metaData2 = Self::read_meta_data(disk); // ...have no idea how to make a copy
[INFO] [stdout]     |             ^^^^^^^^^ help: convert the identifier to snake case: `meta_data2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nBlocks` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:133:13
[INFO] [stdout]     |
[INFO] [stdout] 133 |         let nBlocks = metaData.superBlock.Blocks;
[INFO] [stdout]     |             ^^^^^^^ help: convert the identifier to snake case: `n_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeBlocks` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:134:13
[INFO] [stdout]     |
[INFO] [stdout] 134 |         let inodeBlocks = metaData.superBlock.InodeBlocks;
[INFO] [stdout]     |             ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:200:38
[INFO] [stdout]     |
[INFO] [stdout] 200 | ...                   Some(metaData) => {
[INFO] [stdout]     |                            ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:225:18
[INFO] [stdout]     |
[INFO] [stdout] 225 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:248:22
[INFO] [stdout]     |
[INFO] [stdout] 248 |                 Some(metaData) => {
[INFO] [stdout]     |                      ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ibitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:257:22
[INFO] [stdout]     |
[INFO] [stdout] 257 |                 Some(ibitMap)=> {
[INFO] [stdout]     |                      ^^^^^^^ help: convert the identifier to snake case: `ibit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `superBlock` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:544:13
[INFO] [stdout]     |
[INFO] [stdout] 544 |         let superBlock = block.superblock();
[INFO] [stdout]     |             ^^^^^^^^^^ help: convert the identifier to snake case: `super_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeTable` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:547:17
[INFO] [stdout]     |
[INFO] [stdout] 547 |         let mut inodeTable = Vec::new();
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:563:18
[INFO] [stdout]     |
[INFO] [stdout] 563 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:581:18
[INFO] [stdout]     |
[INFO] [stdout] 581 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:658:26
[INFO] [stdout]     |
[INFO] [stdout] 658 |                     Some(metaData) => {
[INFO] [stdout]     |                          ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:693:31
[INFO] [stdout]     |
[INFO] [stdout] 693 |         let get_free_block = |dataBitMap: Option<&Vec<bool>>| {
[INFO] [stdout]     |                               ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:695:22
[INFO] [stdout]     |
[INFO] [stdout] 695 |                 Some(dataBitMap) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:718:22
[INFO] [stdout]     |
[INFO] [stdout] 718 |                 Some(dataBitMap) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:725:22
[INFO] [stdout]     |
[INFO] [stdout] 725 |                 Some(metaData) => {
[INFO] [stdout]     |                      ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `FileDescriptor` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     FileDescriptor: Option<File>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_descriptor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Blocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     Blocks: usize,  // Number of blocks in disk image
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case: `blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Reads` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     Reads: usize,   // Number of reads performed
[INFO] [stdout]    |     ^^^^^ help: convert the identifier to snake case: `reads`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Writes` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     Writes: usize,  // Number of writes performed
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `writes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Mounts` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     Mounts: usize,  // Number of mounts
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case: `mounts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Path` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Path: &'a str  // file path for the disk
[INFO] [stdout]    |     ^^^^ help: convert the identifier to snake case: `path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/tfs/disk.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |         if blocknum < 0 {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/tfs/disk.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 f.set_len((nblocks as u64) * (Self::BLOCK_SIZE as u64));
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 let _ = f.set_len((nblocks as u64) * (Self::BLOCK_SIZE as u64));
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:105:17
[INFO] [stdout]     |
[INFO] [stdout] 105 |                 file.seek(SeekFrom::Start( blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 105 |                 let _ = file.seek(SeekFrom::Start( blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:106:17
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 file.read(data);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 let _ = file.read(data);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:117:17
[INFO] [stdout]     |
[INFO] [stdout] 117 |                 file.seek(SeekFrom::Start(blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 117 |                 let _ = file.seek(SeekFrom::Start(blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:118:17
[INFO] [stdout]     |
[INFO] [stdout] 118 |                 file.write(data);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 118 |                 let _ = file.write(data);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `MagicNumber` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     pub MagicNumber: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `magic_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Blocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     pub Blocks: u32,
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `InodeBlocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     pub InodeBlocks: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Inodes` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub Inodes: u32
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `inodes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Valid` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub Valid: u32, // whether or not inode is valid (or allocated)
[INFO] [stdout]    |         ^^^^^ help: convert the identifier to snake case (notice the capitalization): `valid`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Size` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub Size: u32,  // size of file
[INFO] [stdout]    |         ^^^^ help: convert the identifier to snake case (notice the capitalization): `size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Direct` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub Direct: [u32; POINTERS_PER_INODE],
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `direct`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Indirect` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub Indirect: u32
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `indirect`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Super` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     pub Super: Superblock,
[INFO] [stdout]    |         ^^^^^ help: rename the identifier
[INFO] [stdout]    |
[INFO] [stdout]    = note: `super` cannot be used as a raw identifier
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Inodes` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub Inodes: [Inode; INODES_PER_BLOCK],
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `inodes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Pointers` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub Pointers: [u32; POINTERS_PER_BLOCK],
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `pointers`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Data` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub Data: [u8; Disk::BLOCK_SIZE]
[INFO] [stdout]    |         ^^^^ help: convert the identifier to snake case: `data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `superBlock` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub superBlock: Superblock,
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `super_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `inodeTable` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub inodeTable: Vec<[Inode; INODES_PER_BLOCK]>
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `File`
[INFO] [stdout]    --> src/main.rs:251:19
[INFO] [stdout]     |
[INFO] [stdout] 251 |     use std::fs::{File, OpenOptions};
[INFO] [stdout]     |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `File`
[INFO] [stdout]    --> src/main.rs:294:19
[INFO] [stdout]     |
[INFO] [stdout] 294 |     use std::fs::{File, OpenOptions};
[INFO] [stdout]     |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bytes_read`
[INFO] [stdout]   --> src/main.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let bytes_read = stdin().read_line(&mut line).unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_read`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:150:18
[INFO] [stdout]     |
[INFO] [stdout] 150 | fn do_create<'a>(mut disk: Disk<'a>, 
[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: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:167:18
[INFO] [stdout]     |
[INFO] [stdout] 167 | fn do_remove<'a>(mut disk: Disk<'a>, 
[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/main.rs:185:16
[INFO] [stdout]     |
[INFO] [stdout] 185 | fn do_stat<'a>(mut disk: Disk<'a>, 
[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/main.rs:204:18
[INFO] [stdout]     |
[INFO] [stdout] 204 | fn do_copyin<'a>(mut disk: Disk<'a>, 
[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/main.rs:205:5
[INFO] [stdout]     |
[INFO] [stdout] 205 |     mut fs: FileSystem<'a>,  args: Vec<&str>) 
[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/main.rs:222:19
[INFO] [stdout]     |
[INFO] [stdout] 222 | fn do_copyout<'a>(mut disk: Disk<'a>, 
[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/main.rs:223:5
[INFO] [stdout]     |
[INFO] [stdout] 223 |     mut fs: FileSystem<'a>,  args: Vec<&str>) 
[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/main.rs:262:9
[INFO] [stdout]     |
[INFO] [stdout] 262 |     let mut offset = 0;
[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/main.rs:325:15
[INFO] [stdout]     |
[INFO] [stdout] 325 | fn do_cat<'a>(mut fs: FileSystem<'a>, args: Vec<&str>) -> FileSystem<'a> {
[INFO] [stdout]     |               ----^^
[INFO] [stdout]     |               |
[INFO] [stdout]     |               help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/main.rs:95:48
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn parse_command <'a>(command: &'a str) -> Vec<&str> {
[INFO] [stdout]    |                                 --             ^^^^ the same lifetime is elided here
[INFO] [stdout]    |                                 |
[INFO] [stdout]    |                                 the lifetime is named here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn parse_command <'a>(command: &'a str) -> Vec<&'a str> {
[INFO] [stdout]    |                                                 ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/main.rs:157:16
[INFO] [stdout]     |
[INFO] [stdout] 157 |             if inumber >= 0 {
[INFO] [stdout]     |                ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |         file.seek(SeekFrom::Start( n as u64 * Disk::BLOCK_SIZE as u64));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 282 |         let _ = file.seek(SeekFrom::Start( n as u64 * Disk::BLOCK_SIZE as u64));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:315:13
[INFO] [stdout]     |
[INFO] [stdout] 315 |             file.write(&mut buff);            
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 315 |             let _ = file.write(&mut buff);            
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:317:13
[INFO] [stdout]     |
[INFO] [stdout] 317 |             file.write(&mut buffer);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 317 |             let _ = file.write(&mut buffer);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.71s
[INFO] running `Command { std: "docker" "inspect" "63676ebf9c8c0e226614f84e3a7723f876d7208a9d2e9243e18566d2bbdee380", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "63676ebf9c8c0e226614f84e3a7723f876d7208a9d2e9243e18566d2bbdee380", kill_on_drop: false }`
[INFO] [stdout] 63676ebf9c8c0e226614f84e3a7723f876d7208a9d2e9243e18566d2bbdee380
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6d7d7c4137613b4dd924c877d1aecae79d61f13e0068807be72c5b71a81bbb04
[INFO] running `Command { std: "docker" "start" "-a" "6d7d7c4137613b4dd924c877d1aecae79d61f13e0068807be72c5b71a81bbb04", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `super::utility`
[INFO] [stdout]  --> src/tfs/types.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use super::utility;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/tfs/mod.rs:407:9
[INFO] [stdout]     |
[INFO] [stdout] 353 | /         loop {
[INFO] [stdout] 354 | |             if bytes_read == length || j == length {
[INFO] [stdout] 355 | |                 return bytes_read as i64;
[INFO] [stdout] ...   |
[INFO] [stdout] 404 | |             println!("BYTES INDEX: {}, {}", block_index, block_offset);
[INFO] [stdout] 405 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 406 |
[INFO] [stdout] 407 |           -1
[INFO] [stdout]     |           ^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/tfs/mod.rs:533:9
[INFO] [stdout]     |
[INFO] [stdout] 507 | /         loop {
[INFO] [stdout] 508 | |             if bytes_writen < length && (offset + bytes_writen) < data.len() {
[INFO] [stdout] 509 | |                 let bytes_wr = self.write_to_block(block_num, block_offset, data, length - bytes_writen, offset + bytes_writen);
[INFO] [stdout] 510 | |                 println!("bytes_writen: {}", bytes_wr);
[INFO] [stdout] ...   |
[INFO] [stdout] 531 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 532 |
[INFO] [stdout] 533 |           bytes_writen as i64
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/tfs/disk.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let mut file = OpenOptions::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: variable does not need to be mutable
[INFO] [stdout]    --> src/tfs/disk.rs:104:18
[INFO] [stdout]     |
[INFO] [stdout] 104 |             Some(mut file) => {
[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/tfs/disk.rs:116:18
[INFO] [stdout]     |
[INFO] [stdout] 116 |             Some(mut file) => {
[INFO] [stdout]     |                  ----^^^^
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/tfs/types.rs:90:9
[INFO] [stdout]    |
[INFO] [stdout] 90 |         unsafe {
[INFO] [stdout]    |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/tfs/types.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         unsafe {
[INFO] [stdout]    |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/tfs/types.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         unsafe {
[INFO] [stdout]     |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/tfs/types.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |         unsafe {
[INFO] [stdout]     |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/tfs/mod.rs:140:13
[INFO] [stdout]     |
[INFO] [stdout] 140 |         for i in 0..nBlocks - inodeBlocks - 1 {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `metaData`
[INFO] [stdout]    --> src/tfs/mod.rs:225:18
[INFO] [stdout]     |
[INFO] [stdout] 225 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metaData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `disk`
[INFO] [stdout]    --> src/tfs/mod.rs:227:26
[INFO] [stdout]     |
[INFO] [stdout] 227 |                     Some(disk) => {
[INFO] [stdout]     |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_disk`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tfs/mod.rs:345:13
[INFO] [stdout]     |
[INFO] [stdout] 345 |         let mut block_index = (offset as f64 / Disk::BLOCK_SIZE as f64).floor() as usize;
[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/tfs/mod.rs:450:13
[INFO] [stdout]     |
[INFO] [stdout] 450 |         let mut disc = match &mut self.disk {
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `ptrs` is never read
[INFO] [stdout]    --> src/tfs/mod.rs:499:17
[INFO] [stdout]     |
[INFO] [stdout] 499 |                 ptrs[block_index - POINTERS_PER_INODE] = blk as u32;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tfs/mod.rs:684:13
[INFO] [stdout]     |
[INFO] [stdout] 684 |         let mut disk = match &mut self.disk {
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32_be` is never used
[INFO] [stdout]  --> src/tfs/utility.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn as_u32_be(array: &[u8; 4]) -> u32 {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32_le` is never used
[INFO] [stdout]  --> src/tfs/utility.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn as_u32_le(array: &[u8; 4]) -> u32 {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32` is never used
[INFO] [stdout]   --> src/tfs/utility.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn as_u32(array: &[u8]) -> u32 {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `metaData` should have a snake case name
[INFO] [stdout]  --> src/tfs/mod.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub metaData: Option<MetaData>,
[INFO] [stdout]   |         ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `inodeBitMap` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub inodeBitMap: Option<Vec<bool>>,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `dataBitMap` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub dataBitMap: Option<Vec<bool>>,
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:54:18
[INFO] [stdout]    |
[INFO] [stdout] 54 |             Some(metaData) => Self::debug_print(metaData),
[INFO] [stdout]    |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let metaData = Self::read_meta_data(disk);
[INFO] [stdout]    |             ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeTable` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 |         let inodeTable = &meta_data.inodeTable;
[INFO] [stdout]    |             ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |         let metaData = Self::read_meta_data(disk);
[INFO] [stdout]     |             ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData2` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |         let metaData2 = Self::read_meta_data(disk); // ...have no idea how to make a copy
[INFO] [stdout]     |             ^^^^^^^^^ help: convert the identifier to snake case: `meta_data2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nBlocks` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:133:13
[INFO] [stdout]     |
[INFO] [stdout] 133 |         let nBlocks = metaData.superBlock.Blocks;
[INFO] [stdout]     |             ^^^^^^^ help: convert the identifier to snake case: `n_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeBlocks` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:134:13
[INFO] [stdout]     |
[INFO] [stdout] 134 |         let inodeBlocks = metaData.superBlock.InodeBlocks;
[INFO] [stdout]     |             ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:200:38
[INFO] [stdout]     |
[INFO] [stdout] 200 | ...                   Some(metaData) => {
[INFO] [stdout]     |                            ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:225:18
[INFO] [stdout]     |
[INFO] [stdout] 225 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:248:22
[INFO] [stdout]     |
[INFO] [stdout] 248 |                 Some(metaData) => {
[INFO] [stdout]     |                      ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ibitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:257:22
[INFO] [stdout]     |
[INFO] [stdout] 257 |                 Some(ibitMap)=> {
[INFO] [stdout]     |                      ^^^^^^^ help: convert the identifier to snake case: `ibit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `superBlock` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:544:13
[INFO] [stdout]     |
[INFO] [stdout] 544 |         let superBlock = block.superblock();
[INFO] [stdout]     |             ^^^^^^^^^^ help: convert the identifier to snake case: `super_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeTable` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:547:17
[INFO] [stdout]     |
[INFO] [stdout] 547 |         let mut inodeTable = Vec::new();
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:563:18
[INFO] [stdout]     |
[INFO] [stdout] 563 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:581:18
[INFO] [stdout]     |
[INFO] [stdout] 581 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:658:26
[INFO] [stdout]     |
[INFO] [stdout] 658 |                     Some(metaData) => {
[INFO] [stdout]     |                          ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:693:31
[INFO] [stdout]     |
[INFO] [stdout] 693 |         let get_free_block = |dataBitMap: Option<&Vec<bool>>| {
[INFO] [stdout]     |                               ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:695:22
[INFO] [stdout]     |
[INFO] [stdout] 695 |                 Some(dataBitMap) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:718:22
[INFO] [stdout]     |
[INFO] [stdout] 718 |                 Some(dataBitMap) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:725:22
[INFO] [stdout]     |
[INFO] [stdout] 725 |                 Some(metaData) => {
[INFO] [stdout]     |                      ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `FileDescriptor` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     FileDescriptor: Option<File>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_descriptor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Blocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     Blocks: usize,  // Number of blocks in disk image
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case: `blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Reads` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     Reads: usize,   // Number of reads performed
[INFO] [stdout]    |     ^^^^^ help: convert the identifier to snake case: `reads`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Writes` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     Writes: usize,  // Number of writes performed
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `writes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Mounts` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     Mounts: usize,  // Number of mounts
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case: `mounts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Path` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Path: &'a str  // file path for the disk
[INFO] [stdout]    |     ^^^^ help: convert the identifier to snake case: `path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/tfs/disk.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |         if blocknum < 0 {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/tfs/disk.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 f.set_len((nblocks as u64) * (Self::BLOCK_SIZE as u64));
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 let _ = f.set_len((nblocks as u64) * (Self::BLOCK_SIZE as u64));
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:105:17
[INFO] [stdout]     |
[INFO] [stdout] 105 |                 file.seek(SeekFrom::Start( blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 105 |                 let _ = file.seek(SeekFrom::Start( blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:106:17
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 file.read(data);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 let _ = file.read(data);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:117:17
[INFO] [stdout]     |
[INFO] [stdout] 117 |                 file.seek(SeekFrom::Start(blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 117 |                 let _ = file.seek(SeekFrom::Start(blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:118:17
[INFO] [stdout]     |
[INFO] [stdout] 118 |                 file.write(data);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 118 |                 let _ = file.write(data);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `MagicNumber` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     pub MagicNumber: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `magic_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Blocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     pub Blocks: u32,
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `InodeBlocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     pub InodeBlocks: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Inodes` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub Inodes: u32
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `inodes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Valid` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub Valid: u32, // whether or not inode is valid (or allocated)
[INFO] [stdout]    |         ^^^^^ help: convert the identifier to snake case (notice the capitalization): `valid`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Size` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub Size: u32,  // size of file
[INFO] [stdout]    |         ^^^^ help: convert the identifier to snake case (notice the capitalization): `size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Direct` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub Direct: [u32; POINTERS_PER_INODE],
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `direct`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling disk v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: structure field `Indirect` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub Indirect: u32
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `indirect`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Super` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     pub Super: Superblock,
[INFO] [stdout]    |         ^^^^^ help: rename the identifier
[INFO] [stdout]    |
[INFO] [stdout]    = note: `super` cannot be used as a raw identifier
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Inodes` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub Inodes: [Inode; INODES_PER_BLOCK],
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `inodes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Pointers` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub Pointers: [u32; POINTERS_PER_BLOCK],
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `pointers`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Data` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub Data: [u8; Disk::BLOCK_SIZE]
[INFO] [stdout]    |         ^^^^ help: convert the identifier to snake case: `data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `superBlock` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub superBlock: Superblock,
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `super_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `inodeTable` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub inodeTable: Vec<[Inode; INODES_PER_BLOCK]>
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `File`
[INFO] [stdout]    --> src/main.rs:251:19
[INFO] [stdout]     |
[INFO] [stdout] 251 |     use std::fs::{File, OpenOptions};
[INFO] [stdout]     |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `File`
[INFO] [stdout]    --> src/main.rs:294:19
[INFO] [stdout]     |
[INFO] [stdout] 294 |     use std::fs::{File, OpenOptions};
[INFO] [stdout]     |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::utility`
[INFO] [stdout]  --> src/tfs/types.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use super::utility;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bytes_read`
[INFO] [stdout]   --> src/main.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let bytes_read = stdin().read_line(&mut line).unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_read`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/tfs/mod.rs:407:9
[INFO] [stdout]     |
[INFO] [stdout] 353 | /         loop {
[INFO] [stdout] 354 | |             if bytes_read == length || j == length {
[INFO] [stdout] 355 | |                 return bytes_read as i64;
[INFO] [stdout] ...   |
[INFO] [stdout] 404 | |             println!("BYTES INDEX: {}, {}", block_index, block_offset);
[INFO] [stdout] 405 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 406 |
[INFO] [stdout] 407 |           -1
[INFO] [stdout]     |           ^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/tfs/mod.rs:533:9
[INFO] [stdout]     |
[INFO] [stdout] 507 | /         loop {
[INFO] [stdout] 508 | |             if bytes_writen < length && (offset + bytes_writen) < data.len() {
[INFO] [stdout] 509 | |                 let bytes_wr = self.write_to_block(block_num, block_offset, data, length - bytes_writen, offset + bytes_writen);
[INFO] [stdout] 510 | |                 println!("bytes_writen: {}", bytes_wr);
[INFO] [stdout] ...   |
[INFO] [stdout] 531 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 532 |
[INFO] [stdout] 533 |           bytes_writen as i64
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:150:18
[INFO] [stdout]     |
[INFO] [stdout] 150 | fn do_create<'a>(mut disk: Disk<'a>, 
[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: variable does not need to be mutable
[INFO] [stdout]   --> src/tfs/disk.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let mut file = OpenOptions::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: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:167:18
[INFO] [stdout]     |
[INFO] [stdout] 167 | fn do_remove<'a>(mut disk: Disk<'a>, 
[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/tfs/disk.rs:104:18
[INFO] [stdout]     |
[INFO] [stdout] 104 |             Some(mut file) => {
[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/main.rs:185:16
[INFO] [stdout]     |
[INFO] [stdout] 185 | fn do_stat<'a>(mut disk: Disk<'a>, 
[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/tfs/disk.rs:116:18
[INFO] [stdout]     |
[INFO] [stdout] 116 |             Some(mut file) => {
[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/main.rs:204:18
[INFO] [stdout]     |
[INFO] [stdout] 204 | fn do_copyin<'a>(mut disk: Disk<'a>, 
[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/main.rs:205:5
[INFO] [stdout]     |
[INFO] [stdout] 205 |     mut fs: FileSystem<'a>,  args: Vec<&str>) 
[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/main.rs:222:19
[INFO] [stdout]     |
[INFO] [stdout] 222 | fn do_copyout<'a>(mut disk: Disk<'a>, 
[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/main.rs:223:5
[INFO] [stdout]     |
[INFO] [stdout] 223 |     mut fs: FileSystem<'a>,  args: Vec<&str>) 
[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/main.rs:262:9
[INFO] [stdout]     |
[INFO] [stdout] 262 |     let mut offset = 0;
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/tfs/types.rs:90:9
[INFO] [stdout]    |
[INFO] [stdout] 90 |         unsafe {
[INFO] [stdout]    |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/tfs/types.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         unsafe {
[INFO] [stdout]    |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/tfs/types.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         unsafe {
[INFO] [stdout]     |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/tfs/types.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |         unsafe {
[INFO] [stdout]     |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:325:15
[INFO] [stdout]     |
[INFO] [stdout] 325 | fn do_cat<'a>(mut fs: FileSystem<'a>, args: Vec<&str>) -> FileSystem<'a> {
[INFO] [stdout]     |               ----^^
[INFO] [stdout]     |               |
[INFO] [stdout]     |               help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/main.rs:95:48
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn parse_command <'a>(command: &'a str) -> Vec<&str> {
[INFO] [stdout]    |                                 --             ^^^^ the same lifetime is elided here
[INFO] [stdout]    |                                 |
[INFO] [stdout]    |                                 the lifetime is named here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn parse_command <'a>(command: &'a str) -> Vec<&'a str> {
[INFO] [stdout]    |                                                 ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/main.rs:157:16
[INFO] [stdout]     |
[INFO] [stdout] 157 |             if inumber >= 0 {
[INFO] [stdout]     |                ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/tfs/mod.rs:140:13
[INFO] [stdout]     |
[INFO] [stdout] 140 |         for i in 0..nBlocks - inodeBlocks - 1 {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `metaData`
[INFO] [stdout]    --> src/tfs/mod.rs:225:18
[INFO] [stdout]     |
[INFO] [stdout] 225 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metaData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `disk`
[INFO] [stdout]    --> src/tfs/mod.rs:227:26
[INFO] [stdout]     |
[INFO] [stdout] 227 |                     Some(disk) => {
[INFO] [stdout]     |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_disk`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tfs/mod.rs:345:13
[INFO] [stdout]     |
[INFO] [stdout] 345 |         let mut block_index = (offset as f64 / Disk::BLOCK_SIZE as f64).floor() as usize;
[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/tfs/mod.rs:450:13
[INFO] [stdout]     |
[INFO] [stdout] 450 |         let mut disc = match &mut self.disk {
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |         file.seek(SeekFrom::Start( n as u64 * Disk::BLOCK_SIZE as u64));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 282 |         let _ = file.seek(SeekFrom::Start( n as u64 * Disk::BLOCK_SIZE as u64));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:315:13
[INFO] [stdout]     |
[INFO] [stdout] 315 |             file.write(&mut buff);            
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 315 |             let _ = file.write(&mut buff);            
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:317:13
[INFO] [stdout]     |
[INFO] [stdout] 317 |             file.write(&mut buffer);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 317 |             let _ = file.write(&mut buffer);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `ptrs` is never read
[INFO] [stdout]    --> src/tfs/mod.rs:499:17
[INFO] [stdout]     |
[INFO] [stdout] 499 |                 ptrs[block_index - POINTERS_PER_INODE] = blk as u32;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tfs/mod.rs:684:13
[INFO] [stdout]     |
[INFO] [stdout] 684 |         let mut disk = match &mut self.disk {
[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/tfs/mod.rs:855:13
[INFO] [stdout]     |
[INFO] [stdout] 855 |         let mut i = 0;
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/tfs/mod.rs:855:13
[INFO] [stdout]     |
[INFO] [stdout] 855 |         let mut i = 0;
[INFO] [stdout]     |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `disk_open` is never used
[INFO] [stdout]    --> src/tfs/disk.rs:132:8
[INFO] [stdout]     |
[INFO] [stdout] 132 |     fn disk_open() {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `disk_read_write` is never used
[INFO] [stdout]    --> src/tfs/disk.rs:139:8
[INFO] [stdout]     |
[INFO] [stdout] 139 |     fn disk_read_write() {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `disk_clone` is never used
[INFO] [stdout]    --> src/tfs/disk.rs:152:8
[INFO] [stdout]     |
[INFO] [stdout] 152 |     fn disk_clone() {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32_be` is never used
[INFO] [stdout]  --> src/tfs/utility.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn as_u32_be(array: &[u8; 4]) -> u32 {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32_le` is never used
[INFO] [stdout]  --> src/tfs/utility.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn as_u32_le(array: &[u8; 4]) -> u32 {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32` is never used
[INFO] [stdout]   --> src/tfs/utility.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn as_u32(array: &[u8]) -> u32 {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_debug` is never used
[INFO] [stdout]    --> src/tfs/mod.rs:795:8
[INFO] [stdout]     |
[INFO] [stdout] 795 |     fn test_debug() {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_format` is never used
[INFO] [stdout]    --> src/tfs/mod.rs:805:8
[INFO] [stdout]     |
[INFO] [stdout] 805 |     fn test_format() {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_mount` is never used
[INFO] [stdout]    --> src/tfs/mod.rs:813:8
[INFO] [stdout]     |
[INFO] [stdout] 813 |     fn test_mount() {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_create_remove_inode` is never used
[INFO] [stdout]    --> src/tfs/mod.rs:821:8
[INFO] [stdout]     |
[INFO] [stdout] 821 |     fn test_create_remove_inode() {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `metaData` should have a snake case name
[INFO] [stdout]  --> src/tfs/mod.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub metaData: Option<MetaData>,
[INFO] [stdout]   |         ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `inodeBitMap` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub inodeBitMap: Option<Vec<bool>>,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `dataBitMap` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub dataBitMap: Option<Vec<bool>>,
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:54:18
[INFO] [stdout]    |
[INFO] [stdout] 54 |             Some(metaData) => Self::debug_print(metaData),
[INFO] [stdout]    |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let metaData = Self::read_meta_data(disk);
[INFO] [stdout]    |             ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeTable` should have a snake case name
[INFO] [stdout]   --> src/tfs/mod.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 |         let inodeTable = &meta_data.inodeTable;
[INFO] [stdout]    |             ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |         let metaData = Self::read_meta_data(disk);
[INFO] [stdout]     |             ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData2` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |         let metaData2 = Self::read_meta_data(disk); // ...have no idea how to make a copy
[INFO] [stdout]     |             ^^^^^^^^^ help: convert the identifier to snake case: `meta_data2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nBlocks` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:133:13
[INFO] [stdout]     |
[INFO] [stdout] 133 |         let nBlocks = metaData.superBlock.Blocks;
[INFO] [stdout]     |             ^^^^^^^ help: convert the identifier to snake case: `n_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeBlocks` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:134:13
[INFO] [stdout]     |
[INFO] [stdout] 134 |         let inodeBlocks = metaData.superBlock.InodeBlocks;
[INFO] [stdout]     |             ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:200:38
[INFO] [stdout]     |
[INFO] [stdout] 200 | ...                   Some(metaData) => {
[INFO] [stdout]     |                            ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:225:18
[INFO] [stdout]     |
[INFO] [stdout] 225 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:248:22
[INFO] [stdout]     |
[INFO] [stdout] 248 |                 Some(metaData) => {
[INFO] [stdout]     |                      ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ibitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:257:22
[INFO] [stdout]     |
[INFO] [stdout] 257 |                 Some(ibitMap)=> {
[INFO] [stdout]     |                      ^^^^^^^ help: convert the identifier to snake case: `ibit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `superBlock` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:544:13
[INFO] [stdout]     |
[INFO] [stdout] 544 |         let superBlock = block.superblock();
[INFO] [stdout]     |             ^^^^^^^^^^ help: convert the identifier to snake case: `super_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `inodeTable` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:547:17
[INFO] [stdout]     |
[INFO] [stdout] 547 |         let mut inodeTable = Vec::new();
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:563:18
[INFO] [stdout]     |
[INFO] [stdout] 563 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:581:18
[INFO] [stdout]     |
[INFO] [stdout] 581 |             Some(metaData) => {
[INFO] [stdout]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:658:26
[INFO] [stdout]     |
[INFO] [stdout] 658 |                     Some(metaData) => {
[INFO] [stdout]     |                          ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:693:31
[INFO] [stdout]     |
[INFO] [stdout] 693 |         let get_free_block = |dataBitMap: Option<&Vec<bool>>| {
[INFO] [stdout]     |                               ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:695:22
[INFO] [stdout]     |
[INFO] [stdout] 695 |                 Some(dataBitMap) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `dataBitMap` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:718:22
[INFO] [stdout]     |
[INFO] [stdout] 718 |                 Some(dataBitMap) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `metaData` should have a snake case name
[INFO] [stdout]    --> src/tfs/mod.rs:725:22
[INFO] [stdout]     |
[INFO] [stdout] 725 |                 Some(metaData) => {
[INFO] [stdout]     |                      ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `FileDescriptor` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     FileDescriptor: Option<File>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_descriptor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Blocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     Blocks: usize,  // Number of blocks in disk image
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case: `blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Reads` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     Reads: usize,   // Number of reads performed
[INFO] [stdout]    |     ^^^^^ help: convert the identifier to snake case: `reads`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Writes` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     Writes: usize,  // Number of writes performed
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `writes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Mounts` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     Mounts: usize,  // Number of mounts
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to snake case: `mounts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Path` should have a snake case name
[INFO] [stdout]   --> src/tfs/disk.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Path: &'a str  // file path for the disk
[INFO] [stdout]    |     ^^^^ help: convert the identifier to snake case: `path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/tfs/disk.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |         if blocknum < 0 {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/tfs/disk.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 f.set_len((nblocks as u64) * (Self::BLOCK_SIZE as u64));
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 let _ = f.set_len((nblocks as u64) * (Self::BLOCK_SIZE as u64));
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:105:17
[INFO] [stdout]     |
[INFO] [stdout] 105 |                 file.seek(SeekFrom::Start( blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 105 |                 let _ = file.seek(SeekFrom::Start( blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:106:17
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 file.read(data);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 let _ = file.read(data);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:117:17
[INFO] [stdout]     |
[INFO] [stdout] 117 |                 file.seek(SeekFrom::Start(blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 117 |                 let _ = file.seek(SeekFrom::Start(blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/tfs/disk.rs:118:17
[INFO] [stdout]     |
[INFO] [stdout] 118 |                 file.write(data);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 118 |                 let _ = file.write(data);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `MagicNumber` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     pub MagicNumber: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `magic_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Blocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     pub Blocks: u32,
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `InodeBlocks` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     pub InodeBlocks: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_blocks`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Inodes` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub Inodes: u32
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `inodes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Valid` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub Valid: u32, // whether or not inode is valid (or allocated)
[INFO] [stdout]    |         ^^^^^ help: convert the identifier to snake case (notice the capitalization): `valid`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Size` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub Size: u32,  // size of file
[INFO] [stdout]    |         ^^^^ help: convert the identifier to snake case (notice the capitalization): `size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Direct` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub Direct: [u32; POINTERS_PER_INODE],
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `direct`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Indirect` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub Indirect: u32
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `indirect`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Super` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     pub Super: Superblock,
[INFO] [stdout]    |         ^^^^^ help: rename the identifier
[INFO] [stdout]    |
[INFO] [stdout]    = note: `super` cannot be used as a raw identifier
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Inodes` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub Inodes: [Inode; INODES_PER_BLOCK],
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `inodes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Pointers` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub Pointers: [u32; POINTERS_PER_BLOCK],
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `pointers`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `Data` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub Data: [u8; Disk::BLOCK_SIZE]
[INFO] [stdout]    |         ^^^^ help: convert the identifier to snake case: `data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `superBlock` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub superBlock: Superblock,
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `super_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `inodeTable` should have a snake case name
[INFO] [stdout]   --> src/tfs/types.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub inodeTable: Vec<[Inode; INODES_PER_BLOCK]>
[INFO] [stdout]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s
[INFO] running `Command { std: "docker" "inspect" "6d7d7c4137613b4dd924c877d1aecae79d61f13e0068807be72c5b71a81bbb04", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6d7d7c4137613b4dd924c877d1aecae79d61f13e0068807be72c5b71a81bbb04", kill_on_drop: false }`
[INFO] [stdout] 6d7d7c4137613b4dd924c877d1aecae79d61f13e0068807be72c5b71a81bbb04
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 37db8b45111abc3792d57f6d799a02f04223602078c026dc20a73434ebdeb43b
[INFO] running `Command { std: "docker" "start" "-a" "37db8b45111abc3792d57f6d799a02f04223602078c026dc20a73434ebdeb43b", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `super::utility`
[INFO] [stderr]  --> src/tfs/types.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use super::utility;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable expression
[INFO] [stderr]    --> src/tfs/mod.rs:407:9
[INFO] [stderr]     |
[INFO] [stderr] 353 | /         loop {
[INFO] [stderr] 354 | |             if bytes_read == length || j == length {
[INFO] [stderr] 355 | |                 return bytes_read as i64;
[INFO] [stderr] ...   |
[INFO] [stderr] 404 | |             println!("BYTES INDEX: {}, {}", block_index, block_offset);
[INFO] [stderr] 405 | |         }
[INFO] [stderr]     | |_________- any code following this expression is unreachable
[INFO] [stderr] 406 |
[INFO] [stderr] 407 |           -1
[INFO] [stderr]     |           ^^ unreachable expression
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable expression
[INFO] [stderr]    --> src/tfs/mod.rs:533:9
[INFO] [stderr]     |
[INFO] [stderr] 507 | /         loop {
[INFO] [stderr] 508 | |             if bytes_writen < length && (offset + bytes_writen) < data.len() {
[INFO] [stderr] 509 | |                 let bytes_wr = self.write_to_block(block_num, block_offset, data, length - bytes_writen, offset + bytes_writen);
[INFO] [stderr] 510 | |                 println!("bytes_writen: {}", bytes_wr);
[INFO] [stderr] ...   |
[INFO] [stderr] 531 | |         }
[INFO] [stderr]     | |_________- any code following this expression is unreachable
[INFO] [stderr] 532 |
[INFO] [stderr] 533 |           bytes_writen as i64
[INFO] [stderr]     |           ^^^^^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/tfs/disk.rs:60:13
[INFO] [stderr]    |
[INFO] [stderr] 60 |         let mut file = OpenOptions::new()
[INFO] [stderr]    |             ----^^^^
[INFO] [stderr]    |             |
[INFO] [stderr]    |             help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/tfs/disk.rs:104:18
[INFO] [stderr]     |
[INFO] [stderr] 104 |             Some(mut file) => {
[INFO] [stderr]     |                  ----^^^^
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/tfs/disk.rs:116:18
[INFO] [stderr]     |
[INFO] [stderr] 116 |             Some(mut file) => {
[INFO] [stderr]     |                  ----^^^^
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary `unsafe` block
[INFO] [stderr]   --> src/tfs/types.rs:90:9
[INFO] [stderr]    |
[INFO] [stderr] 90 |         unsafe {
[INFO] [stderr]    |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary `unsafe` block
[INFO] [stderr]   --> src/tfs/types.rs:96:9
[INFO] [stderr]    |
[INFO] [stderr] 96 |         unsafe {
[INFO] [stderr]    |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary `unsafe` block
[INFO] [stderr]    --> src/tfs/types.rs:102:9
[INFO] [stderr]     |
[INFO] [stderr] 102 |         unsafe {
[INFO] [stderr]     |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary `unsafe` block
[INFO] [stderr]    --> src/tfs/types.rs:108:9
[INFO] [stderr]     |
[INFO] [stderr] 108 |         unsafe {
[INFO] [stderr]     |         ^^^^^^ unnecessary `unsafe` block
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `i`
[INFO] [stderr]    --> src/tfs/mod.rs:140:13
[INFO] [stderr]     |
[INFO] [stderr] 140 |         for i in 0..nBlocks - inodeBlocks - 1 {
[INFO] [stderr]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `metaData`
[INFO] [stderr]    --> src/tfs/mod.rs:225:18
[INFO] [stderr]     |
[INFO] [stderr] 225 |             Some(metaData) => {
[INFO] [stderr]     |                  ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metaData`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `disk`
[INFO] [stderr]    --> src/tfs/mod.rs:227:26
[INFO] [stderr]     |
[INFO] [stderr] 227 |                     Some(disk) => {
[INFO] [stderr]     |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_disk`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/tfs/mod.rs:345:13
[INFO] [stderr]     |
[INFO] [stderr] 345 |         let mut block_index = (offset as f64 / Disk::BLOCK_SIZE as f64).floor() as usize;
[INFO] [stderr]     |             ----^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/tfs/mod.rs:450:13
[INFO] [stderr]     |
[INFO] [stderr] 450 |         let mut disc = match &mut self.disk {
[INFO] [stderr]     |             ----^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `ptrs` is never read
[INFO] [stderr]    --> src/tfs/mod.rs:499:17
[INFO] [stderr]     |
[INFO] [stderr] 499 |                 ptrs[block_index - POINTERS_PER_INODE] = blk as u32;
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/tfs/mod.rs:684:13
[INFO] [stderr]     |
[INFO] [stderr] 684 |         let mut disk = match &mut self.disk {
[INFO] [stderr]     |             ----^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: function `as_u32_be` is never used
[INFO] [stderr]  --> src/tfs/utility.rs:1:8
[INFO] [stderr]   |
[INFO] [stderr] 1 | pub fn as_u32_be(array: &[u8; 4]) -> u32 {
[INFO] [stderr]   |        ^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `as_u32_le` is never used
[INFO] [stderr]  --> src/tfs/utility.rs:8:8
[INFO] [stderr]   |
[INFO] [stderr] 8 | pub fn as_u32_le(array: &[u8; 4]) -> u32 {
[INFO] [stderr]   |        ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `as_u32` is never used
[INFO] [stderr]   --> src/tfs/utility.rs:15:8
[INFO] [stderr]    |
[INFO] [stderr] 15 | pub fn as_u32(array: &[u8]) -> u32 {
[INFO] [stderr]    |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `metaData` should have a snake case name
[INFO] [stderr]  --> src/tfs/mod.rs:9:9
[INFO] [stderr]   |
[INFO] [stderr] 9 |     pub metaData: Option<MetaData>,
[INFO] [stderr]   |         ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `inodeBitMap` should have a snake case name
[INFO] [stderr]   --> src/tfs/mod.rs:10:9
[INFO] [stderr]    |
[INFO] [stderr] 10 |     pub inodeBitMap: Option<Vec<bool>>,
[INFO] [stderr]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_bit_map`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `dataBitMap` should have a snake case name
[INFO] [stderr]   --> src/tfs/mod.rs:11:9
[INFO] [stderr]    |
[INFO] [stderr] 11 |     pub dataBitMap: Option<Vec<bool>>,
[INFO] [stderr]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]   --> src/tfs/mod.rs:54:18
[INFO] [stderr]    |
[INFO] [stderr] 54 |             Some(metaData) => Self::debug_print(metaData),
[INFO] [stderr]    |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]   --> src/tfs/mod.rs:60:13
[INFO] [stderr]    |
[INFO] [stderr] 60 |         let metaData = Self::read_meta_data(disk);
[INFO] [stderr]    |             ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `inodeTable` should have a snake case name
[INFO] [stderr]   --> src/tfs/mod.rs:66:13
[INFO] [stderr]    |
[INFO] [stderr] 66 |         let inodeTable = &meta_data.inodeTable;
[INFO] [stderr]    |             ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:122:13
[INFO] [stderr]     |
[INFO] [stderr] 122 |         let metaData = Self::read_meta_data(disk);
[INFO] [stderr]     |             ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData2` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:123:13
[INFO] [stderr]     |
[INFO] [stderr] 123 |         let metaData2 = Self::read_meta_data(disk); // ...have no idea how to make a copy
[INFO] [stderr]     |             ^^^^^^^^^ help: convert the identifier to snake case: `meta_data2`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `nBlocks` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:133:13
[INFO] [stderr]     |
[INFO] [stderr] 133 |         let nBlocks = metaData.superBlock.Blocks;
[INFO] [stderr]     |             ^^^^^^^ help: convert the identifier to snake case: `n_blocks`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `inodeBlocks` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:134:13
[INFO] [stderr]     |
[INFO] [stderr] 134 |         let inodeBlocks = metaData.superBlock.InodeBlocks;
[INFO] [stderr]     |             ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_blocks`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:200:38
[INFO] [stderr]     |
[INFO] [stderr] 200 | ...                   Some(metaData) => {
[INFO] [stderr]     |                            ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:225:18
[INFO] [stderr]     |
[INFO] [stderr] 225 |             Some(metaData) => {
[INFO] [stderr]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:248:22
[INFO] [stderr]     |
[INFO] [stderr] 248 |                 Some(metaData) => {
[INFO] [stderr]     |                      ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `ibitMap` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:257:22
[INFO] [stderr]     |
[INFO] [stderr] 257 |                 Some(ibitMap)=> {
[INFO] [stderr]     |                      ^^^^^^^ help: convert the identifier to snake case: `ibit_map`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `superBlock` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:544:13
[INFO] [stderr]     |
[INFO] [stderr] 544 |         let superBlock = block.superblock();
[INFO] [stderr]     |             ^^^^^^^^^^ help: convert the identifier to snake case: `super_block`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `inodeTable` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:547:17
[INFO] [stderr]     |
[INFO] [stderr] 547 |         let mut inodeTable = Vec::new();
[INFO] [stderr]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:563:18
[INFO] [stderr]     |
[INFO] [stderr] 563 |             Some(metaData) => {
[INFO] [stderr]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:581:18
[INFO] [stderr]     |
[INFO] [stderr] 581 |             Some(metaData) => {
[INFO] [stderr]     |                  ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:658:26
[INFO] [stderr]     |
[INFO] [stderr] 658 |                     Some(metaData) => {
[INFO] [stderr]     |                          ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `dataBitMap` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:693:31
[INFO] [stderr]     |
[INFO] [stderr] 693 |         let get_free_block = |dataBitMap: Option<&Vec<bool>>| {
[INFO] [stderr]     |                               ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `dataBitMap` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:695:22
[INFO] [stderr]     |
[INFO] [stderr] 695 |                 Some(dataBitMap) => {
[INFO] [stderr]     |                      ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `dataBitMap` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:718:22
[INFO] [stderr]     |
[INFO] [stderr] 718 |                 Some(dataBitMap) => {
[INFO] [stderr]     |                      ^^^^^^^^^^ help: convert the identifier to snake case: `data_bit_map`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `metaData` should have a snake case name
[INFO] [stderr]    --> src/tfs/mod.rs:725:22
[INFO] [stderr]     |
[INFO] [stderr] 725 |                 Some(metaData) => {
[INFO] [stderr]     |                      ^^^^^^^^ help: convert the identifier to snake case: `meta_data`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `FileDescriptor` should have a snake case name
[INFO] [stderr]   --> src/tfs/disk.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr] 10 |     FileDescriptor: Option<File>,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `file_descriptor`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Blocks` should have a snake case name
[INFO] [stderr]   --> src/tfs/disk.rs:11:5
[INFO] [stderr]    |
[INFO] [stderr] 11 |     Blocks: usize,  // Number of blocks in disk image
[INFO] [stderr]    |     ^^^^^^ help: convert the identifier to snake case: `blocks`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Reads` should have a snake case name
[INFO] [stderr]   --> src/tfs/disk.rs:12:5
[INFO] [stderr]    |
[INFO] [stderr] 12 |     Reads: usize,   // Number of reads performed
[INFO] [stderr]    |     ^^^^^ help: convert the identifier to snake case: `reads`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Writes` should have a snake case name
[INFO] [stderr]   --> src/tfs/disk.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr] 13 |     Writes: usize,  // Number of writes performed
[INFO] [stderr]    |     ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `writes`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Mounts` should have a snake case name
[INFO] [stderr]   --> src/tfs/disk.rs:14:5
[INFO] [stderr]    |
[INFO] [stderr] 14 |     Mounts: usize,  // Number of mounts
[INFO] [stderr]    |     ^^^^^^ help: convert the identifier to snake case: `mounts`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Path` should have a snake case name
[INFO] [stderr]   --> src/tfs/disk.rs:15:5
[INFO] [stderr]    |
[INFO] [stderr] 15 |     Path: &'a str  // file path for the disk
[INFO] [stderr]    |     ^^^^ help: convert the identifier to snake case: `path`
[INFO] [stderr] 
[INFO] [stderr] warning: comparison is useless due to type limits
[INFO] [stderr]   --> src/tfs/disk.rs:21:12
[INFO] [stderr]    |
[INFO] [stderr] 21 |         if blocknum < 0 {
[INFO] [stderr]    |            ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]   --> src/tfs/disk.rs:68:17
[INFO] [stderr]    |
[INFO] [stderr] 68 |                 f.set_len((nblocks as u64) * (Self::BLOCK_SIZE as u64));
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 68 |                 let _ = f.set_len((nblocks as u64) * (Self::BLOCK_SIZE as u64));
[INFO] [stderr]    |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/tfs/disk.rs:105:17
[INFO] [stderr]     |
[INFO] [stderr] 105 |                 file.seek(SeekFrom::Start( blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 105 |                 let _ = file.seek(SeekFrom::Start( blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stderr]     |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/tfs/disk.rs:106:17
[INFO] [stderr]     |
[INFO] [stderr] 106 |                 file.read(data);
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 106 |                 let _ = file.read(data);
[INFO] [stderr]     |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/tfs/disk.rs:117:17
[INFO] [stderr]     |
[INFO] [stderr] 117 |                 file.seek(SeekFrom::Start(blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 117 |                 let _ = file.seek(SeekFrom::Start(blocknum as u64 * Self::BLOCK_SIZE as u64));
[INFO] [stderr]     |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/tfs/disk.rs:118:17
[INFO] [stderr]     |
[INFO] [stderr] 118 |                 file.write(data);
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 118 |                 let _ = file.write(data);
[INFO] [stderr]     |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `MagicNumber` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:13:9
[INFO] [stderr]    |
[INFO] [stderr] 13 |     pub MagicNumber: u32,
[INFO] [stderr]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `magic_number`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Blocks` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 14 |     pub Blocks: u32,
[INFO] [stderr]    |         ^^^^^^ help: convert the identifier to snake case: `blocks`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `InodeBlocks` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr] 15 |     pub InodeBlocks: u32,
[INFO] [stderr]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `inode_blocks`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Inodes` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:16:9
[INFO] [stderr]    |
[INFO] [stderr] 16 |     pub Inodes: u32
[INFO] [stderr]    |         ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `inodes`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Valid` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:22:9
[INFO] [stderr]    |
[INFO] [stderr] 22 |     pub Valid: u32, // whether or not inode is valid (or allocated)
[INFO] [stderr]    |         ^^^^^ help: convert the identifier to snake case (notice the capitalization): `valid`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Size` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:23:9
[INFO] [stderr]    |
[INFO] [stderr] 23 |     pub Size: u32,  // size of file
[INFO] [stderr]    |         ^^^^ help: convert the identifier to snake case (notice the capitalization): `size`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Direct` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:24:9
[INFO] [stderr]    |
[INFO] [stderr] 24 |     pub Direct: [u32; POINTERS_PER_INODE],
[INFO] [stderr]    |         ^^^^^^ help: convert the identifier to snake case: `direct`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Indirect` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:25:9
[INFO] [stderr]    |
[INFO] [stderr] 25 |     pub Indirect: u32
[INFO] [stderr]    |         ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `indirect`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Super` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:31:9
[INFO] [stderr]    |
[INFO] [stderr] 31 |     pub Super: Superblock,
[INFO] [stderr]    |         ^^^^^ help: rename the identifier
[INFO] [stderr]    |
[INFO] [stderr]    = note: `super` cannot be used as a raw identifier
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Inodes` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:32:9
[INFO] [stderr]    |
[INFO] [stderr] 32 |     pub Inodes: [Inode; INODES_PER_BLOCK],
[INFO] [stderr]    |         ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `inodes`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Pointers` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:33:9
[INFO] [stderr]    |
[INFO] [stderr] 33 |     pub Pointers: [u32; POINTERS_PER_BLOCK],
[INFO] [stderr]    |         ^^^^^^^^ help: convert the identifier to snake case: `pointers`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Data` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:34:9
[INFO] [stderr]    |
[INFO] [stderr] 34 |     pub Data: [u8; Disk::BLOCK_SIZE]
[INFO] [stderr]    |         ^^^^ help: convert the identifier to snake case: `data`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `superBlock` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:40:9
[INFO] [stderr]    |
[INFO] [stderr] 40 |     pub superBlock: Superblock,
[INFO] [stderr]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `super_block`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `inodeTable` should have a snake case name
[INFO] [stderr]   --> src/tfs/types.rs:41:9
[INFO] [stderr]    |
[INFO] [stderr] 41 |     pub inodeTable: Vec<[Inode; INODES_PER_BLOCK]>
[INFO] [stderr]    |         ^^^^^^^^^^ help: convert the identifier to snake case: `inode_table`
[INFO] [stderr] 
[INFO] [stderr] warning: `disk` (lib) generated 69 warnings (run `cargo fix --lib -p disk` to apply 10 suggestions)
[INFO] [stderr] warning: unused import: `std::error::Error`
[INFO] [stderr]  --> src/main.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::error::Error;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `File`
[INFO] [stderr]    --> src/main.rs:251:19
[INFO] [stderr]     |
[INFO] [stderr] 251 |     use std::fs::{File, OpenOptions};
[INFO] [stderr]     |                   ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `File`
[INFO] [stderr]    --> src/main.rs:294:19
[INFO] [stderr]     |
[INFO] [stderr] 294 |     use std::fs::{File, OpenOptions};
[INFO] [stderr]     |                   ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `bytes_read`
[INFO] [stderr]   --> src/main.rs:84:9
[INFO] [stderr]    |
[INFO] [stderr] 84 |     let bytes_read = stdin().read_line(&mut line).unwrap();
[INFO] [stderr]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_read`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:150:18
[INFO] [stderr]     |
[INFO] [stderr] 150 | fn do_create<'a>(mut disk: Disk<'a>, 
[INFO] [stderr]     |                  ----^^^^
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:167:18
[INFO] [stderr]     |
[INFO] [stderr] 167 | fn do_remove<'a>(mut disk: Disk<'a>, 
[INFO] [stderr]     |                  ----^^^^
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:185:16
[INFO] [stderr]     |
[INFO] [stderr] 185 | fn do_stat<'a>(mut disk: Disk<'a>, 
[INFO] [stderr]     |                ----^^^^
[INFO] [stderr]     |                |
[INFO] [stderr]     |                help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:204:18
[INFO] [stderr]     |
[INFO] [stderr] 204 | fn do_copyin<'a>(mut disk: Disk<'a>, 
[INFO] [stderr]     |                  ----^^^^
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:205:5
[INFO] [stderr]     |
[INFO] [stderr] 205 |     mut fs: FileSystem<'a>,  args: Vec<&str>) 
[INFO] [stderr]     |     ----^^
[INFO] [stderr]     |     |
[INFO] [stderr]     |     help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:222:19
[INFO] [stderr]     |
[INFO] [stderr] 222 | fn do_copyout<'a>(mut disk: Disk<'a>, 
[INFO] [stderr]     |                   ----^^^^
[INFO] [stderr]     |                   |
[INFO] [stderr]     |                   help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:223:5
[INFO] [stderr]     |
[INFO] [stderr] 223 |     mut fs: FileSystem<'a>,  args: Vec<&str>) 
[INFO] [stderr]     |     ----^^
[INFO] [stderr]     |     |
[INFO] [stderr]     |     help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:262:9
[INFO] [stderr]     |
[INFO] [stderr] 262 |     let mut offset = 0;
[INFO] [stderr]     |         ----^^^^^^
[INFO] [stderr]     |         |
[INFO] [stderr]     |         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:325:15
[INFO] [stderr]     |
[INFO] [stderr] 325 | fn do_cat<'a>(mut fs: FileSystem<'a>, args: Vec<&str>) -> FileSystem<'a> {
[INFO] [stderr]     |               ----^^
[INFO] [stderr]     |               |
[INFO] [stderr]     |               help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stderr]   --> src/main.rs:95:48
[INFO] [stderr]    |
[INFO] [stderr] 95 | fn parse_command <'a>(command: &'a str) -> Vec<&str> {
[INFO] [stderr]    |                                 --             ^^^^ the same lifetime is elided here
[INFO] [stderr]    |                                 |
[INFO] [stderr]    |                                 the lifetime is named here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stderr] help: consistently use `'a`
[INFO] [stderr]    |
[INFO] [stderr] 95 | fn parse_command <'a>(command: &'a str) -> Vec<&'a str> {
[INFO] [stderr]    |                                                 ++
[INFO] [stderr] 
[INFO] [stderr] warning: comparison is useless due to type limits
[INFO] [stderr]    --> src/main.rs:157:16
[INFO] [stderr]     |
[INFO] [stderr] 157 |             if inumber >= 0 {
[INFO] [stderr]     |                ^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/main.rs:282:9
[INFO] [stderr]     |
[INFO] [stderr] 282 |         file.seek(SeekFrom::Start( n as u64 * Disk::BLOCK_SIZE as u64));
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 282 |         let _ = file.seek(SeekFrom::Start( n as u64 * Disk::BLOCK_SIZE as u64));
[INFO] [stderr]     |         +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/main.rs:315:13
[INFO] [stderr]     |
[INFO] [stderr] 315 |             file.write(&mut buff);            
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 315 |             let _ = file.write(&mut buff);            
[INFO] [stderr]     |             +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/main.rs:317:13
[INFO] [stderr]     |
[INFO] [stderr] 317 |             file.write(&mut buffer);
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 317 |             let _ = file.write(&mut buffer);
[INFO] [stderr]     |             +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: `disk` (bin "disk" test) generated 18 warnings (run `cargo fix --bin "disk" -p disk --tests` to apply 14 suggestions)
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/tfs/mod.rs:855:13
[INFO] [stderr]     |
[INFO] [stderr] 855 |         let mut i = 0;
[INFO] [stderr]     |             ----^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `i`
[INFO] [stderr]    --> src/tfs/mod.rs:855:13
[INFO] [stderr]     |
[INFO] [stderr] 855 |         let mut i = 0;
[INFO] [stderr]     |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stderr] 
[INFO] [stderr] warning: function `disk_open` is never used
[INFO] [stderr]    --> src/tfs/disk.rs:132:8
[INFO] [stderr]     |
[INFO] [stderr] 132 |     fn disk_open() {
[INFO] [stderr]     |        ^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `disk_read_write` is never used
[INFO] [stderr]    --> src/tfs/disk.rs:139:8
[INFO] [stderr]     |
[INFO] [stderr] 139 |     fn disk_read_write() {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `disk_clone` is never used
[INFO] [stderr]    --> src/tfs/disk.rs:152:8
[INFO] [stderr]     |
[INFO] [stderr] 152 |     fn disk_clone() {
[INFO] [stderr]     |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `as_u32_be` is never used
[INFO] [stderr]  --> src/tfs/utility.rs:1:8
[INFO] [stderr]   |
[INFO] [stderr] 1 | pub fn as_u32_be(array: &[u8; 4]) -> u32 {
[INFO] [stderr]   |        ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `test_debug` is never used
[INFO] [stderr]    --> src/tfs/mod.rs:795:8
[INFO] [stderr]     |
[INFO] [stderr] 795 |     fn test_debug() {
[INFO] [stderr]     |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `test_format` is never used
[INFO] [stderr]    --> src/tfs/mod.rs:805:8
[INFO] [stderr]     |
[INFO] [stderr] 805 |     fn test_format() {
[INFO] [stderr]     |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `test_mount` is never used
[INFO] [stderr]    --> src/tfs/mod.rs:813:8
[INFO] [stderr]     |
[INFO] [stderr] 813 |     fn test_mount() {
[INFO] [stderr]     |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `test_create_remove_inode` is never used
[INFO] [stderr]    --> src/tfs/mod.rs:821:8
[INFO] [stderr]     |
[INFO] [stderr] 821 |     fn test_create_remove_inode() {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `disk` (lib test) generated 78 warnings (68 duplicates) (run `cargo fix --lib -p disk --tests` to apply 2 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/disk-0b5deb852bbe08c1)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test tfs::tests::test_fs_read_write ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tfs::tests::test_fs_read_write stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'tfs::tests::test_fs_read_write' (18) panicked at src/tfs/disk.rs:72:17:
[INFO] [stdout] Could not open: ./data/image.100, Read-only file system (os error 30)
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x6158e2514e0a - std[ec419fa8110287d5]::backtrace_rs::backtrace::libunwind::trace
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x6158e2514e0a - std[ec419fa8110287d5]::backtrace_rs::backtrace::trace_unsynchronized::<std[ec419fa8110287d5]::sys::backtrace::_print_fmt::{closure#1}>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x6158e2514e0a - std[ec419fa8110287d5]::sys::backtrace::_print_fmt
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x6158e2514e0a - <<std[ec419fa8110287d5]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[35159d6ffb30e017]::fmt::Display>::fmt
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x6158e2528dca - <core[35159d6ffb30e017]::fmt::rt::Argument>::fmt
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x6158e2528dca - core[35159d6ffb30e017]::fmt::write
[INFO] [stdout]    6:     0x6158e25197d2 - std[ec419fa8110287d5]::io::default_write_fmt::<alloc[a8a7aba520129d98]::vec::Vec<u8>>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/io/mod.rs:621:11
[INFO] [stdout]    7:     0x6158e25197d2 - <alloc[a8a7aba520129d98]::vec::Vec<u8> as std[ec419fa8110287d5]::io::Write>::write_fmt
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/io/mod.rs:1976:13
[INFO] [stdout]    8:     0x6158e24f3d5f - <std[ec419fa8110287d5]::sys::backtrace::BacktraceLock>::print
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x6158e24f3d5f - std[ec419fa8110287d5]::panicking::default_hook::{closure#0}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x6158e250d2b9 - std[ec419fa8110287d5]::panicking::default_hook
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x6158e24a990c - <alloc[a8a7aba520129d98]::boxed::Box<dyn for<'a, 'b> core[35159d6ffb30e017]::ops::function::Fn<(&'a std[ec419fa8110287d5]::panic::PanicHookInfo<'b>,), Output = ()> + core[35159d6ffb30e017]::marker::Sync + core[35159d6ffb30e017]::marker::Send> as core[35159d6ffb30e017]::ops::function::Fn<(&std[ec419fa8110287d5]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/alloc/src/boxed.rs:2285:9
[INFO] [stdout]   12:     0x6158e24a990c - test[a8007afcd3effadc]::test_main_inner::<test[a8007afcd3effadc]::test_main_static::{closure#0}>::{closure#0}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/test/src/lib.rs:155:21
[INFO] [stdout]   13:     0x6158e250d472 - <alloc[a8a7aba520129d98]::boxed::Box<dyn for<'a, 'b> core[35159d6ffb30e017]::ops::function::Fn<(&'a std[ec419fa8110287d5]::panic::PanicHookInfo<'b>,), Output = ()> + core[35159d6ffb30e017]::marker::Sync + core[35159d6ffb30e017]::marker::Send> as core[35159d6ffb30e017]::ops::function::Fn<(&std[ec419fa8110287d5]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/alloc/src/boxed.rs:2285:9
[INFO] [stdout]   14:     0x6158e250d472 - std[ec419fa8110287d5]::panicking::panic_with_hook
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x6158e24f3e18 - std[ec419fa8110287d5]::panicking::panic_handler::{closure#0}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:698:13
[INFO] [stdout]   16:     0x6158e24eb789 - std[ec419fa8110287d5]::sys::backtrace::__rust_end_short_backtrace::<std[ec419fa8110287d5]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   17:     0x6158e24f4b2d - __rustc[cfb3622dd870db93]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x6158e25294bc - core[35159d6ffb30e017]::panicking::panic_fmt
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x6158e249968f - <disk[9c20fb712628106d]::tfs::disk::Disk>::open
[INFO] [stdout]                                at /opt/rustwide/workdir/src/tfs/disk.rs:72:17
[INFO] [stdout]   20:     0x6158e2499a0a - <disk[9c20fb712628106d]::tfs::disk::Disk>::from_file
[INFO] [stdout]                                at /opt/rustwide/workdir/src/tfs/disk.rs:44:14
[INFO] [stdout]   21:     0x6158e249a926 - disk[9c20fb712628106d]::tfs::tests::test_fs_read_write
[INFO] [stdout]                                at /opt/rustwide/workdir/src/tfs/mod.rs:850:24
[INFO] [stdout]   22:     0x6158e2494ae7 - disk[9c20fb712628106d]::tfs::tests::test_fs_read_write::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/workdir/src/tfs/mod.rs:849:28
[INFO] [stdout]   23:     0x6158e249c816 - <disk[9c20fb712628106d]::tfs::tests::test_fs_read_write::{closure#0} as core[35159d6ffb30e017]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x6158e249cbeb - <fn() -> core[35159d6ffb30e017]::result::Result<(), alloc[a8a7aba520129d98]::string::String> as core[35159d6ffb30e017]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x6158e249cbeb - test[a8007afcd3effadc]::__rust_begin_short_backtrace::<core[35159d6ffb30e017]::result::Result<(), alloc[a8a7aba520129d98]::string::String>, fn() -> core[35159d6ffb30e017]::result::Result<(), alloc[a8a7aba520129d98]::string::String>>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/test/src/lib.rs:724:18
[INFO] [stdout]   26:     0x6158e24aa3db - test[a8007afcd3effadc]::run_test_in_process::{closure#0}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/test/src/lib.rs:747:74
[INFO] [stdout]   27:     0x6158e24aa3db - <core[35159d6ffb30e017]::panic::unwind_safe::AssertUnwindSafe<test[a8007afcd3effadc]::run_test_in_process::{closure#0}> as core[35159d6ffb30e017]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   28:     0x6158e24aa3db - std[ec419fa8110287d5]::panicking::catch_unwind::do_call::<core[35159d6ffb30e017]::panic::unwind_safe::AssertUnwindSafe<test[a8007afcd3effadc]::run_test_in_process::{closure#0}>, core[35159d6ffb30e017]::result::Result<(), alloc[a8a7aba520129d98]::string::String>>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:581:40
[INFO] [stdout]   29:     0x6158e24aa3db - std[ec419fa8110287d5]::panicking::catch_unwind::<core[35159d6ffb30e017]::result::Result<(), alloc[a8a7aba520129d98]::string::String>, core[35159d6ffb30e017]::panic::unwind_safe::AssertUnwindSafe<test[a8007afcd3effadc]::run_test_in_process::{closure#0}>>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:544:19
[INFO] [stdout]   30:     0x6158e24aa3db - std[ec419fa8110287d5]::panic::catch_unwind::<core[35159d6ffb30e017]::panic::unwind_safe::AssertUnwindSafe<test[a8007afcd3effadc]::run_test_in_process::{closure#0}>, core[35159d6ffb30e017]::result::Result<(), alloc[a8a7aba520129d98]::string::String>>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panic.rs:359:14
[INFO] [stdout]   31:     0x6158e24aa3db - test[a8007afcd3effadc]::run_test_in_process
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/test/src/lib.rs:747:27
[INFO] [stdout]   32:     0x6158e24aa3db - test[a8007afcd3effadc]::run_test::{closure#0}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/test/src/lib.rs:668:43
[INFO] [stdout]   33:     0x6158e24a4db4 - test[a8007afcd3effadc]::run_test::{closure#1}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/test/src/lib.rs:698:41
[INFO] [stdout]   34:     0x6158e24a4db4 - std[ec419fa8110287d5]::sys::backtrace::__rust_begin_short_backtrace::<test[a8007afcd3effadc]::run_test::{closure#1}, ()>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/sys/backtrace.rs:166:18
[INFO] [stdout]   35:     0x6158e24acfe2 - std[ec419fa8110287d5]::thread::lifecycle::spawn_unchecked::<test[a8007afcd3effadc]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/thread/lifecycle.rs:70:13
[INFO] [stdout]   36:     0x6158e24acfe2 - <core[35159d6ffb30e017]::panic::unwind_safe::AssertUnwindSafe<std[ec419fa8110287d5]::thread::lifecycle::spawn_unchecked<test[a8007afcd3effadc]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}> as core[35159d6ffb30e017]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   37:     0x6158e24acfe2 - std[ec419fa8110287d5]::panicking::catch_unwind::do_call::<core[35159d6ffb30e017]::panic::unwind_safe::AssertUnwindSafe<std[ec419fa8110287d5]::thread::lifecycle::spawn_unchecked<test[a8007afcd3effadc]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:581:40
[INFO] [stdout]   38:     0x6158e24acfe2 - std[ec419fa8110287d5]::panicking::catch_unwind::<(), core[35159d6ffb30e017]::panic::unwind_safe::AssertUnwindSafe<std[ec419fa8110287d5]::thread::lifecycle::spawn_unchecked<test[a8007afcd3effadc]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panicking.rs:544:19
[INFO] [stdout]   39:     0x6158e24acfe2 - std[ec419fa8110287d5]::panic::catch_unwind::<core[35159d6ffb30e017]::panic::unwind_safe::AssertUnwindSafe<std[ec419fa8110287d5]::thread::lifecycle::spawn_unchecked<test[a8007afcd3effadc]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/panic.rs:359:14
[INFO] [stdout]   40:     0x6158e24acfe2 - std[ec419fa8110287d5]::thread::lifecycle::spawn_unchecked::<test[a8007afcd3effadc]::run_test::{closure#1}, ()>::{closure#1}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/thread/lifecycle.rs:68:26
[INFO] [stdout]   41:     0x6158e24acfe2 - <std[ec419fa8110287d5]::thread::lifecycle::spawn_unchecked<test[a8007afcd3effadc]::run_test::{closure#1}, ()>::{closure#1} as core[35159d6ffb30e017]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x6158e251471f - <alloc[a8a7aba520129d98]::boxed::Box<dyn core[35159d6ffb30e017]::ops::function::FnOnce<(), Output = ()> + core[35159d6ffb30e017]::marker::Send> as core[35159d6ffb30e017]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/alloc/src/boxed.rs:2271:9
[INFO] [stdout]   43:     0x6158e251471f - <std[ec419fa8110287d5]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]                                at /rustc/33835004928d3bf65db4d4712e1330766263b0bd/library/std/src/sys/thread/unix.rs:118:17
[INFO] [stdout]   44:     0x7c2a39b23aa4 - <unknown>
[INFO] [stdout]   45:     0x7c2a39bb0a64 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tfs::tests::test_fs_read_write
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "37db8b45111abc3792d57f6d799a02f04223602078c026dc20a73434ebdeb43b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "37db8b45111abc3792d57f6d799a02f04223602078c026dc20a73434ebdeb43b", kill_on_drop: false }`
[INFO] [stdout] 37db8b45111abc3792d57f6d799a02f04223602078c026dc20a73434ebdeb43b
