[INFO] updating cached repository danielbusaba/affinity_efficient [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/danielbusaba/affinity_efficient [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/danielbusaba/affinity_efficient" "work/ex/clippy-test-run/sources/stable/gh/danielbusaba/affinity_efficient"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/danielbusaba/affinity_efficient'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/danielbusaba/affinity_efficient" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/danielbusaba/affinity_efficient"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/danielbusaba/affinity_efficient'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 80738a16ff24341596917ed79bd36834cf2b74ac [INFO] sha for GitHub repo danielbusaba/affinity_efficient: 80738a16ff24341596917ed79bd36834cf2b74ac [INFO] validating manifest of danielbusaba/affinity_efficient on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of danielbusaba/affinity_efficient on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing danielbusaba/affinity_efficient [INFO] finished frobbing danielbusaba/affinity_efficient [INFO] frobbed toml for danielbusaba/affinity_efficient written to work/ex/clippy-test-run/sources/stable/gh/danielbusaba/affinity_efficient/Cargo.toml [INFO] started frobbing danielbusaba/affinity_efficient [INFO] finished frobbing danielbusaba/affinity_efficient [INFO] frobbed toml for danielbusaba/affinity_efficient written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/danielbusaba/affinity_efficient/Cargo.toml [INFO] crate danielbusaba/affinity_efficient has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting danielbusaba/affinity_efficient against stable+rustflags=-Dclippy::into_iter_on_array for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-7/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/danielbusaba/affinity_efficient:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dclippy::into_iter_on_array" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 450fad25c944c0c4545cfff5acbc342aaf1f56c73f6c99541f593a2651fc3834 [INFO] running `"docker" "start" "-a" "450fad25c944c0c4545cfff5acbc342aaf1f56c73f6c99541f593a2651fc3834"` [INFO] [stderr] Checking affinity_efficient v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/main.rs:58:9 [INFO] [stderr] | [INFO] [stderr] 58 | / { [INFO] [stderr] 59 | | if c > d [INFO] [stderr] 60 | | { [INFO] [stderr] 61 | | b == c && a == d [INFO] [stderr] ... | [INFO] [stderr] 66 | | } [INFO] [stderr] 67 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 58 | if c > d [INFO] [stderr] 59 | { [INFO] [stderr] 60 | b == c && a == d [INFO] [stderr] 61 | } [INFO] [stderr] 62 | else [INFO] [stderr] 63 | { [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/main.rs:123:9 [INFO] [stderr] | [INFO] [stderr] 123 | / { [INFO] [stderr] 124 | | if c > d [INFO] [stderr] 125 | | { [INFO] [stderr] 126 | | b == c && a == d [INFO] [stderr] ... | [INFO] [stderr] 131 | | } [INFO] [stderr] 132 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 123 | if c > d [INFO] [stderr] 124 | { [INFO] [stderr] 125 | b == c && a == d [INFO] [stderr] 126 | } [INFO] [stderr] 127 | else [INFO] [stderr] 128 | { [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/main.rs:730:5 [INFO] [stderr] | [INFO] [stderr] 730 | / { [INFO] [stderr] 731 | | if args [1].eq("u") [INFO] [stderr] 732 | | { [INFO] [stderr] 733 | | user_input(); [INFO] [stderr] ... | [INFO] [stderr] 792 | | } [INFO] [stderr] 793 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 730 | if args [1].eq("u") [INFO] [stderr] 731 | { [INFO] [stderr] 732 | user_input(); [INFO] [stderr] 733 | } [INFO] [stderr] 734 | else if args [1].eq("f") [INFO] [stderr] 735 | { [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/histogram.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; //Can be used with bucket to create sublog histograms [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/main.rs:58:9 [INFO] [stderr] | [INFO] [stderr] 58 | / { [INFO] [stderr] 59 | | if c > d [INFO] [stderr] 60 | | { [INFO] [stderr] 61 | | b == c && a == d [INFO] [stderr] ... | [INFO] [stderr] 66 | | } [INFO] [stderr] 67 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 58 | if c > d [INFO] [stderr] 59 | { [INFO] [stderr] 60 | b == c && a == d [INFO] [stderr] 61 | } [INFO] [stderr] 62 | else [INFO] [stderr] 63 | { [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/main.rs:123:9 [INFO] [stderr] | [INFO] [stderr] 123 | / { [INFO] [stderr] 124 | | if c > d [INFO] [stderr] 125 | | { [INFO] [stderr] 126 | | b == c && a == d [INFO] [stderr] ... | [INFO] [stderr] 131 | | } [INFO] [stderr] 132 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 123 | if c > d [INFO] [stderr] 124 | { [INFO] [stderr] 125 | b == c && a == d [INFO] [stderr] 126 | } [INFO] [stderr] 127 | else [INFO] [stderr] 128 | { [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/main.rs:730:5 [INFO] [stderr] | [INFO] [stderr] 730 | / { [INFO] [stderr] 731 | | if args [1].eq("u") [INFO] [stderr] 732 | | { [INFO] [stderr] 733 | | user_input(); [INFO] [stderr] ... | [INFO] [stderr] 792 | | } [INFO] [stderr] 793 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 730 | if args [1].eq("u") [INFO] [stderr] 731 | { [INFO] [stderr] 732 | user_input(); [INFO] [stderr] 733 | } [INFO] [stderr] 734 | else if args [1].eq("f") [INFO] [stderr] 735 | { [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:1121:9 [INFO] [stderr] | [INFO] [stderr] 1121 | let mut contents = raw_contents.split_whitespace().collect::>(); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_mut)] on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:1121:9 [INFO] [stderr] | [INFO] [stderr] 1121 | let mut contents = raw_contents.split_whitespace().collect::>(); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_mut)] on by default [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_max_reuse_time` [INFO] [stderr] --> src/histogram.rs:119:5 [INFO] [stderr] | [INFO] [stderr] 119 | pub fn get_max_reuse_time(&self) -> u64 //Returns copy of max reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:22:29 [INFO] [stderr] | [INFO] [stderr] 22 | let frequency = self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].clone(); //Retrieves old frequency [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::clone_on_copy)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: method is never used: `new_single` [INFO] [stderr] --> src/histogram.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn new_single(sb: u64, mrt: u64) -> Histogram //Constructor that takes in the sublog bits and the maximum reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:59:9 [INFO] [stderr] | [INFO] [stderr] 59 | self.max_reuse_time.clone() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.max_reuse_time` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:84:23 [INFO] [stderr] | [INFO] [stderr] 84 | let sum = self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].2.clone(); //Retrieves old sum [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].2` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:87:29 [INFO] [stderr] | [INFO] [stderr] 87 | let frequency = self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].3.clone(); //Retrieves old freuency [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].3` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:121:9 [INFO] [stderr] | [INFO] [stderr] 121 | self.max_reuse_time.clone() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.max_reuse_time` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/histogram.rs:163:32 [INFO] [stderr] | [INFO] [stderr] 163 | let most_significant_bit = (63 - value.leading_zeros()) as u64; //Find's value's most significant bit [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(63 - value.leading_zeros())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/histogram.rs:166:5 [INFO] [stderr] | [INFO] [stderr] 166 | index = index & ((1 << sublog_bits) - 1); //Does a bitwise and with sublog bits number of 1's [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `index &= ((1 << sublog_bits) - 1)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: method is never used: `add` [INFO] [stderr] --> src/histogram.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn add(&mut self, reuse_time: u64) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `insert` [INFO] [stderr] --> src/histogram.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn insert(&mut self, reuse_time: u64, frequency: u64) //Inserts a value into the histogram at a given reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_frequency` [INFO] [stderr] --> src/histogram.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn get_frequency(&self, reuse_time: u64) -> u64 //Retreives the frequency value at a given reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_values` [INFO] [stderr] --> src/histogram.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn get_values(&self) -> Vec //Returns copy of internal vector [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_max_reuse_time` [INFO] [stderr] --> src/histogram.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | pub fn get_max_reuse_time(&self) -> u64 //Returns copy of max reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_tuple` [INFO] [stderr] --> src/histogram.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn get_tuple(&self, reuse_time: u64) -> (u64, u64, u64, u64) //Retreives the value tuple at a given reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_frequency` [INFO] [stderr] --> src/histogram.rs:105:5 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn get_frequency(&self, reuse_time: u64) -> u64 //Retreives the frequency value at a given reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_max_reuse_time` [INFO] [stderr] --> src/histogram.rs:119:5 [INFO] [stderr] | [INFO] [stderr] 119 | pub fn get_max_reuse_time(&self) -> u64 //Returns copy of max reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:22:29 [INFO] [stderr] | [INFO] [stderr] 22 | let frequency = self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].clone(); //Retrieves old frequency [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::clone_on_copy)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:218:20 [INFO] [stderr] | [INFO] [stderr] 218 | let temp = histogram.get(&b2).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*histogram.get(&b2).unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/histogram.rs:218:20 [INFO] [stderr] | [INFO] [stderr] 218 | let temp = histogram.get(&b2).unwrap().clone(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&histogram[&b2]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::get_unwrap)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/histogram.rs:222:17 [INFO] [stderr] | [INFO] [stderr] 222 | assert_eq!(*histogram.get(&b1).unwrap(), 2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&histogram[&b1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: casting u32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/histogram.rs:255:28 [INFO] [stderr] | [INFO] [stderr] 255 | let mut exponent = (63 - (i as u64).leading_zeros()) as i64 - sublog_bits as i64; //Defines exponent in 2^(bits - sublog_bits) formula [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(63 - (i as u64).leading_zeros())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:59:9 [INFO] [stderr] | [INFO] [stderr] 59 | self.max_reuse_time.clone() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.max_reuse_time` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:84:23 [INFO] [stderr] | [INFO] [stderr] 84 | let sum = self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].2.clone(); //Retrieves old sum [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].2` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:87:29 [INFO] [stderr] | [INFO] [stderr] 87 | let frequency = self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].3.clone(); //Retrieves old freuency [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.values[convert_value_to_index(reuse_time, self.sublog_bits) as usize].3` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/histogram.rs:121:9 [INFO] [stderr] | [INFO] [stderr] 121 | self.max_reuse_time.clone() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.max_reuse_time` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/histogram.rs:163:32 [INFO] [stderr] | [INFO] [stderr] 163 | let most_significant_bit = (63 - value.leading_zeros()) as u64; //Find's value's most significant bit [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(63 - value.leading_zeros())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/histogram.rs:166:5 [INFO] [stderr] | [INFO] [stderr] 166 | index = index & ((1 << sublog_bits) - 1); //Does a bitwise and with sublog bits number of 1's [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `index &= ((1 << sublog_bits) - 1)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:257:31 [INFO] [stderr] | [INFO] [stderr] 257 | fn get_histograms_user(trace: &Vec) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^ help: change this to: `&[char]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:257:46 [INFO] [stderr] | [INFO] [stderr] 257 | fn get_histograms_user(trace: &Vec) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::type_complexity)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:262:27 [INFO] [stderr] | [INFO] [stderr] 262 | let mut switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the switch times of each trace pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:257:31 [INFO] [stderr] | [INFO] [stderr] 257 | fn get_histograms_user(trace: &Vec) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^ help: change this to: `&[char]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:257:46 [INFO] [stderr] | [INFO] [stderr] 257 | fn get_histograms_user(trace: &Vec) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::type_complexity)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:263:33 [INFO] [stderr] | [INFO] [stderr] 263 | let mut inter_switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the inter-switch times of each pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:264:26 [INFO] [stderr] | [INFO] [stderr] 264 | let mut joint_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the sum of switch time and correspondong inter-switch time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: usage of `contains_key` followed by `insert` on a `HashMap` [INFO] [stderr] --> src/main.rs:270:9 [INFO] [stderr] | [INFO] [stderr] 270 | / if !reuse_times.contains_key(&c) //Checks if the element has a reuse time [INFO] [stderr] 271 | | { [INFO] [stderr] 272 | | reuse_times.insert(c, Histogram::new_tuple(SUBLOG_BITS, trace.len() as u64)); //Creates a new Histogram for the element [INFO] [stderr] 273 | | reuse_times.get_mut(&c).unwrap().add((i + 1) as u64); //Adds current time to character reuse time histogram [INFO] [stderr] ... | [INFO] [stderr] 278 | | reuse_times.get_mut(&c).unwrap().add(rt); //Adds reuse time to histogram [INFO] [stderr] 279 | | } [INFO] [stderr] | |_________^ help: consider using: `reuse_times.entry(c)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::map_entry)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_entry [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:277:38 [INFO] [stderr] | [INFO] [stderr] 277 | let rt: u64 = ((i + 1) - last_seen_single.get(&c).unwrap()) as u64; //Sets the current reuse time to be the difference between the current access time and the last access time this trace element was accessed [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:285:36 [INFO] [stderr] | [INFO] [stderr] 285 | let st = (i + 1) - last_seen_single.get(j).unwrap(); //Sets the switch time to be the difference between the current access time and the last access time the other trace element was seen [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:287:74 [INFO] [stderr] | [INFO] [stderr] 287 | if !last_seen_single.contains_key(&c) || st < (i + 1) - *last_seen_single.get(&c).unwrap() //Checks if the current trace element has not been seen before or if the switch time is smaller than the current reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:298:36 [INFO] [stderr] | [INFO] [stderr] 298 | let mut ist = *last_seen_single.get(&j).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:262:27 [INFO] [stderr] | [INFO] [stderr] 262 | let mut switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the switch times of each trace pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:263:33 [INFO] [stderr] | [INFO] [stderr] 263 | let mut inter_switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the inter-switch times of each pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:264:26 [INFO] [stderr] | [INFO] [stderr] 264 | let mut joint_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the sum of switch time and correspondong inter-switch time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:301:25 [INFO] [stderr] | [INFO] [stderr] 301 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ist -= *last_seen_joint.get(&p).unwrap() as u64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: usage of `contains_key` followed by `insert` on a `HashMap` [INFO] [stderr] --> src/main.rs:270:9 [INFO] [stderr] | [INFO] [stderr] 270 | / if !reuse_times.contains_key(&c) //Checks if the element has a reuse time [INFO] [stderr] 271 | | { [INFO] [stderr] 272 | | reuse_times.insert(c, Histogram::new_tuple(SUBLOG_BITS, trace.len() as u64)); //Creates a new Histogram for the element [INFO] [stderr] 273 | | reuse_times.get_mut(&c).unwrap().add((i + 1) as u64); //Adds current time to character reuse time histogram [INFO] [stderr] ... | [INFO] [stderr] 278 | | reuse_times.get_mut(&c).unwrap().add(rt); //Adds reuse time to histogram [INFO] [stderr] 279 | | } [INFO] [stderr] | |_________^ help: consider using: `reuse_times.entry(c)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::map_entry)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_entry [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:301:38 [INFO] [stderr] | [INFO] [stderr] 301 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:277:38 [INFO] [stderr] | [INFO] [stderr] 277 | let rt: u64 = ((i + 1) - last_seen_single.get(&c).unwrap()) as u64; //Sets the current reuse time to be the difference between the current access time and the last access time this trace element was accessed [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::get_unwrap)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:285:36 [INFO] [stderr] | [INFO] [stderr] 285 | let st = (i + 1) - last_seen_single.get(j).unwrap(); //Sets the switch time to be the difference between the current access time and the last access time the other trace element was seen [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:287:74 [INFO] [stderr] | [INFO] [stderr] 287 | if !last_seen_single.contains_key(&c) || st < (i + 1) - *last_seen_single.get(&c).unwrap() //Checks if the current trace element has not been seen before or if the switch time is smaller than the current reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:298:36 [INFO] [stderr] | [INFO] [stderr] 298 | let mut ist = *last_seen_single.get(&j).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:311:129 [INFO] [stderr] | [INFO] [stderr] 311 | println!("{}: ({}, {}) -> {}", i, char::from_u32(p.0 as u32).unwrap(), char::from_u32(p.1 as u32).unwrap(), last_seen_single.get(&j).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:301:25 [INFO] [stderr] | [INFO] [stderr] 301 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ist -= *last_seen_joint.get(&p).unwrap() as u64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:301:38 [INFO] [stderr] | [INFO] [stderr] 301 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:311:129 [INFO] [stderr] | [INFO] [stderr] 311 | println!("{}: ({}, {}) -> {}", i, char::from_u32(p.0 as u32).unwrap(), char::from_u32(p.1 as u32).unwrap(), last_seen_single.get(&j).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:312:48 [INFO] [stderr] | [INFO] [stderr] 312 | last_seen_joint.insert(p, *last_seen_single.get(&j).unwrap()); //Adds index of first element of switch to the last seen joint HashMap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:312:48 [INFO] [stderr] | [INFO] [stderr] 312 | last_seen_joint.insert(p, *last_seen_single.get(&j).unwrap()); //Adds index of first element of switch to the last seen joint HashMap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:322:66 [INFO] [stderr] | [INFO] [stderr] 322 | reuse_times.get_mut(&c).unwrap().add((trace.len() + 1 - *last_seen_single.get(c).unwrap()) as u64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:322:66 [INFO] [stderr] | [INFO] [stderr] 322 | reuse_times.get_mut(&c).unwrap().add((trace.len() + 1 - *last_seen_single.get(c).unwrap()) as u64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:327:39 [INFO] [stderr] | [INFO] [stderr] 327 | let ist = (trace.len() + 1 - *last_seen_joint.get(p).unwrap()) as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:327:39 [INFO] [stderr] | [INFO] [stderr] 327 | let ist = (trace.len() + 1 - *last_seen_joint.get(p).unwrap()) as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `split` [INFO] [stderr] --> src/main.rs:368:14 [INFO] [stderr] | [INFO] [stderr] 368 | for i in 0 .. split.len() [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 368 | for (i, ) in split.iter().enumerate() [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:370:36 [INFO] [stderr] | [INFO] [stderr] 370 | let line = split [i].split(" ").collect::>(); [INFO] [stderr] | ^^^ help: try using a char instead: `' '` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `split` [INFO] [stderr] --> src/main.rs:368:14 [INFO] [stderr] | [INFO] [stderr] 368 | for i in 0 .. split.len() [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 368 | for (i, ) in split.iter().enumerate() [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `split` [INFO] [stderr] --> src/main.rs:390:14 [INFO] [stderr] | [INFO] [stderr] 390 | for i in 0 .. split.len() [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 390 | for (i, ) in split.iter().enumerate() [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:392:36 [INFO] [stderr] | [INFO] [stderr] 392 | let line = split [i].split(" ").collect::>(); [INFO] [stderr] | ^^^ help: try using a char instead: `' '` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:370:36 [INFO] [stderr] | [INFO] [stderr] 370 | let line = split [i].split(" ").collect::>(); [INFO] [stderr] | ^^^ help: try using a char instead: `' '` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:408:31 [INFO] [stderr] | [INFO] [stderr] 408 | fn get_histograms_file(trace: &Vec<(usize, usize)>) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[(usize, usize)]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:408:56 [INFO] [stderr] | [INFO] [stderr] 408 | fn get_histograms_file(trace: &Vec<(usize, usize)>) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `split` [INFO] [stderr] --> src/main.rs:390:14 [INFO] [stderr] | [INFO] [stderr] 390 | for i in 0 .. split.len() [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 390 | for (i, ) in split.iter().enumerate() [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:392:36 [INFO] [stderr] | [INFO] [stderr] 392 | let line = split [i].split(" ").collect::>(); [INFO] [stderr] | ^^^ help: try using a char instead: `' '` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:413:27 [INFO] [stderr] | [INFO] [stderr] 413 | let mut switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the switch times of each trace pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:408:31 [INFO] [stderr] | [INFO] [stderr] 408 | fn get_histograms_file(trace: &Vec<(usize, usize)>) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[(usize, usize)]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:414:33 [INFO] [stderr] | [INFO] [stderr] 414 | let mut inter_switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the inter-switch times of each pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:408:56 [INFO] [stderr] | [INFO] [stderr] 408 | fn get_histograms_file(trace: &Vec<(usize, usize)>) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:415:26 [INFO] [stderr] | [INFO] [stderr] 415 | let mut joint_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the sum of switch time and correspondong inter-switch time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:428:34 [INFO] [stderr] | [INFO] [stderr] 428 | let rt: u64 = (c.0 - last_seen_single.get(&c.1).unwrap()) as u64; //Sets the current reuse time to be the difference between the current access time and the last access time this trace element was accessed [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:436:32 [INFO] [stderr] | [INFO] [stderr] 436 | let st = c.0 - last_seen_single.get(j).unwrap(); //Sets the switch time to be the difference between the current access time and the last access time the other trace element was seen [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:438:72 [INFO] [stderr] | [INFO] [stderr] 438 | if !last_seen_single.contains_key(&c.1) || st < c.0 - *last_seen_single.get(&c.1).unwrap() //Checks if the current trace element has not been seen before or if the switch time is smaller than the current reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:449:36 [INFO] [stderr] | [INFO] [stderr] 449 | let mut ist = *last_seen_single.get(&j).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:452:25 [INFO] [stderr] | [INFO] [stderr] 452 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ist -= *last_seen_joint.get(&p).unwrap() as u64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:452:38 [INFO] [stderr] | [INFO] [stderr] 452 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:462:48 [INFO] [stderr] | [INFO] [stderr] 462 | last_seen_joint.insert(p, *last_seen_single.get(&j).unwrap()); //Adds index of first element of switch to the last seen joint HashMap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:413:27 [INFO] [stderr] | [INFO] [stderr] 413 | let mut switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the switch times of each trace pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:472:66 [INFO] [stderr] | [INFO] [stderr] 472 | reuse_times.get_mut(&c).unwrap().add((trace.len() + 1 - *last_seen_single.get(c).unwrap()) as u64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:414:33 [INFO] [stderr] | [INFO] [stderr] 414 | let mut inter_switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the inter-switch times of each pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:477:39 [INFO] [stderr] | [INFO] [stderr] 477 | let ist = (trace.len() + 1 - *last_seen_joint.get(p).unwrap()) as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:415:26 [INFO] [stderr] | [INFO] [stderr] 415 | let mut joint_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the sum of switch time and correspondong inter-switch time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:485:32 [INFO] [stderr] | [INFO] [stderr] 485 | fn get_histograms_words(trace: &Vec<(usize, String)>) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[(usize, String)]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:485:58 [INFO] [stderr] | [INFO] [stderr] 485 | fn get_histograms_words(trace: &Vec<(usize, String)>) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:428:34 [INFO] [stderr] | [INFO] [stderr] 428 | let rt: u64 = (c.0 - last_seen_single.get(&c.1).unwrap()) as u64; //Sets the current reuse time to be the difference between the current access time and the last access time this trace element was accessed [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:436:32 [INFO] [stderr] | [INFO] [stderr] 436 | let st = c.0 - last_seen_single.get(j).unwrap(); //Sets the switch time to be the difference between the current access time and the last access time the other trace element was seen [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:438:72 [INFO] [stderr] | [INFO] [stderr] 438 | if !last_seen_single.contains_key(&c.1) || st < c.0 - *last_seen_single.get(&c.1).unwrap() //Checks if the current trace element has not been seen before or if the switch time is smaller than the current reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:449:36 [INFO] [stderr] | [INFO] [stderr] 449 | let mut ist = *last_seen_single.get(&j).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:452:25 [INFO] [stderr] | [INFO] [stderr] 452 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ist -= *last_seen_joint.get(&p).unwrap() as u64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:452:38 [INFO] [stderr] | [INFO] [stderr] 452 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:462:48 [INFO] [stderr] | [INFO] [stderr] 462 | last_seen_joint.insert(p, *last_seen_single.get(&j).unwrap()); //Adds index of first element of switch to the last seen joint HashMap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:472:66 [INFO] [stderr] | [INFO] [stderr] 472 | reuse_times.get_mut(&c).unwrap().add((trace.len() + 1 - *last_seen_single.get(c).unwrap()) as u64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:477:39 [INFO] [stderr] | [INFO] [stderr] 477 | let ist = (trace.len() + 1 - *last_seen_joint.get(p).unwrap()) as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:490:27 [INFO] [stderr] | [INFO] [stderr] 490 | let mut switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the switch times of each trace pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:491:33 [INFO] [stderr] | [INFO] [stderr] 491 | let mut inter_switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the inter-switch times of each pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:492:26 [INFO] [stderr] | [INFO] [stderr] 492 | let mut joint_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the sum of switch time and correspondong inter-switch time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:485:32 [INFO] [stderr] | [INFO] [stderr] 485 | fn get_histograms_words(trace: &Vec<(usize, String)>) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[(usize, String)]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:485:58 [INFO] [stderr] | [INFO] [stderr] 485 | fn get_histograms_words(trace: &Vec<(usize, String)>) -> (HashMap>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>, HashMap, Histogram <(u64, u64, u64, u64)>>) //Generates histograms to calculate frequencies [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:505:34 [INFO] [stderr] | [INFO] [stderr] 505 | let rt: u64 = (c.0 - last_seen_single.get(&c.1).unwrap()) as u64; //Sets the current reuse time to be the difference between the current access time and the last access time this trace element was accessed [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:513:32 [INFO] [stderr] | [INFO] [stderr] 513 | let st = c.0 - last_seen_single.get(j).unwrap(); //Sets the switch time to be the difference between the current access time and the last access time the other trace element was seen [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:515:72 [INFO] [stderr] | [INFO] [stderr] 515 | if !last_seen_single.contains_key(&c.1) || st < c.0 - *last_seen_single.get(&c.1).unwrap() //Checks if the current trace element has not been seen before or if the switch time is smaller than the current reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:526:36 [INFO] [stderr] | [INFO] [stderr] 526 | let mut ist = *last_seen_single.get(&j.clone()).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j.clone()]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:529:25 [INFO] [stderr] | [INFO] [stderr] 529 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ist -= *last_seen_joint.get(&p).unwrap() as u64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:529:38 [INFO] [stderr] | [INFO] [stderr] 529 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:490:27 [INFO] [stderr] | [INFO] [stderr] 490 | let mut switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the switch times of each trace pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:539:48 [INFO] [stderr] | [INFO] [stderr] 539 | last_seen_joint.insert(p, *last_seen_single.get(&j.clone()).unwrap()); //Adds index of first element of switch to the last seen joint HashMap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j.clone()]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:491:33 [INFO] [stderr] | [INFO] [stderr] 491 | let mut inter_switch_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the inter-switch times of each pair [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:492:26 [INFO] [stderr] | [INFO] [stderr] 492 | let mut joint_times: HashMap, Histogram <(u64, u64, u64, u64)>> = HashMap::new(); //Stores the sum of switch time and correspondong inter-switch time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:549:65 [INFO] [stderr] | [INFO] [stderr] 549 | reuse_times.get_mut(c).unwrap().add((trace.len() + 1 - *last_seen_single.get(c).unwrap()) as u64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:554:39 [INFO] [stderr] | [INFO] [stderr] 554 | let ist = (trace.len() + 1 - *last_seen_joint.get(p).unwrap()) as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:505:34 [INFO] [stderr] | [INFO] [stderr] 505 | let rt: u64 = (c.0 - last_seen_single.get(&c.1).unwrap()) as u64; //Sets the current reuse time to be the difference between the current access time and the last access time this trace element was accessed [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:513:32 [INFO] [stderr] | [INFO] [stderr] 513 | let st = c.0 - last_seen_single.get(j).unwrap(); //Sets the switch time to be the difference between the current access time and the last access time the other trace element was seen [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[j]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:515:72 [INFO] [stderr] | [INFO] [stderr] 515 | if !last_seen_single.contains_key(&c.1) || st < c.0 - *last_seen_single.get(&c.1).unwrap() //Checks if the current trace element has not been seen before or if the switch time is smaller than the current reuse time [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&c.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:526:36 [INFO] [stderr] | [INFO] [stderr] 526 | let mut ist = *last_seen_single.get(&j.clone()).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j.clone()]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/main.rs:580:32 [INFO] [stderr] | [INFO] [stderr] 580 | let mut temp = single_frequencies.get(&i).unwrap().clone(); //Retrieves old window count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*single_frequencies.get(&i).unwrap()` [INFO] [stderr] | [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:529:25 [INFO] [stderr] | [INFO] [stderr] 529 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ist -= *last_seen_joint.get(&p).unwrap() as u64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:580:32 [INFO] [stderr] | [INFO] [stderr] 580 | let mut temp = single_frequencies.get(&i).unwrap().clone(); //Retrieves old window count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&i]` [INFO] [stderr] | [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] --> src/main.rs:529:38 [INFO] [stderr] | [INFO] [stderr] 529 | ist = ist - *last_seen_joint.get(&p).unwrap() as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[&p]` [INFO] [stderr] [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:581:17 [INFO] [stderr] | [INFO] [stderr] 581 | temp = temp - (j.2 - window_size as u64 * j.3) as usize; //Subtraccts off the frequency multiplied by the difference between the reuse time and window size [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `temp -= (j.2 - window_size as u64 * j.3) as usize` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:539:48 [INFO] [stderr] | [INFO] [stderr] 539 | last_seen_joint.insert(p, *last_seen_single.get(&j.clone()).unwrap()); //Adds index of first element of switch to the last seen joint HashMap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[&j.clone()]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:549:65 [INFO] [stderr] | [INFO] [stderr] 549 | reuse_times.get_mut(c).unwrap().add((trace.len() + 1 - *last_seen_single.get(c).unwrap()) as u64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_single[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:554:39 [INFO] [stderr] | [INFO] [stderr] 554 | let ist = (trace.len() + 1 - *last_seen_joint.get(p).unwrap()) as u64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&last_seen_joint[p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/main.rs:608:32 [INFO] [stderr] | [INFO] [stderr] 608 | let mut temp = single_frequencies.get(&i.clone()).unwrap().clone(); //Retrieves old window count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*single_frequencies.get(&i.clone()).unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:608:32 [INFO] [stderr] | [INFO] [stderr] 608 | let mut temp = single_frequencies.get(&i.clone()).unwrap().clone(); //Retrieves old window count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&i.clone()]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:609:17 [INFO] [stderr] | [INFO] [stderr] 609 | temp = temp - (j.2 - window_size as u64 * j.3) as usize; //Subtraccts off the frequency multiplied by the difference between the reuse time and window size [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `temp -= (j.2 - window_size as u64 * j.3) as usize` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:618:41 [INFO] [stderr] | [INFO] [stderr] 618 | fn get_joint_frequencies (switch_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, joint_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, window_size: usize, total_windows: usize) -> HashMap, usize> //Generates joint frequencies using a switch time histogram, a joint switch time histogram, time window size, and total windows [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:618:112 [INFO] [stderr] | [INFO] [stderr] 618 | fn get_joint_frequencies (switch_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, joint_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, window_size: usize, total_windows: usize) -> HashMap, usize> //Generates joint frequencies using a switch time histogram, a joint switch time histogram, time window size, and total windows [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/main.rs:580:32 [INFO] [stderr] | [INFO] [stderr] 580 | let mut temp = single_frequencies.get(&i).unwrap().clone(); //Retrieves old window count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*single_frequencies.get(&i).unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:580:32 [INFO] [stderr] | [INFO] [stderr] 580 | let mut temp = single_frequencies.get(&i).unwrap().clone(); //Retrieves old window count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&i]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:581:17 [INFO] [stderr] | [INFO] [stderr] 581 | temp = temp - (j.2 - window_size as u64 * j.3) as usize; //Subtraccts off the frequency multiplied by the difference between the reuse time and window size [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `temp -= (j.2 - window_size as u64 * j.3) as usize` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:631:13 [INFO] [stderr] | [INFO] [stderr] 631 | switch_sum = switch_sum + st.2; //Adds sum to switch sum [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_sum += st.2` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:632:13 [INFO] [stderr] | [INFO] [stderr] 632 | switch_count = switch_count + st.3; //Adds frequency to switch count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_count += st.3` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:636:17 [INFO] [stderr] | [INFO] [stderr] 636 | switch_adjust = switch_adjust + (st.2 - (st.3 * window_size as u64)); //Adds the difference between the switch sum and the switch frequency multiplied by the window size [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_adjust += (st.2 - (st.3 * window_size as u64))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/main.rs:608:32 [INFO] [stderr] | [INFO] [stderr] 608 | let mut temp = single_frequencies.get(&i.clone()).unwrap().clone(); //Retrieves old window count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*single_frequencies.get(&i.clone()).unwrap()` [INFO] [stderr] --> src/main.rs:657:47 [INFO] [stderr] | [INFO] [stderr] 657 | fn get_joint_frequencies_words (switch_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, joint_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, window_size: usize, total_windows: usize) -> HashMap, usize> //Generates joint frequencies using a switch time histogram, a joint switch time histogram, time window size, and total windows [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:608:32 [INFO] [stderr] | [INFO] [stderr] 608 | let mut temp = single_frequencies.get(&i.clone()).unwrap().clone(); //Retrieves old window count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&i.clone()]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:657:119 [INFO] [stderr] | [INFO] [stderr] 657 | fn get_joint_frequencies_words (switch_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, joint_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, window_size: usize, total_windows: usize) -> HashMap, usize> //Generates joint frequencies using a switch time histogram, a joint switch time histogram, time window size, and total windows [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:609:17 [INFO] [stderr] | [INFO] [stderr] 609 | temp = temp - (j.2 - window_size as u64 * j.3) as usize; //Subtraccts off the frequency multiplied by the difference between the reuse time and window size [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `temp -= (j.2 - window_size as u64 * j.3) as usize` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:618:41 [INFO] [stderr] | [INFO] [stderr] 618 | fn get_joint_frequencies (switch_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, joint_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, window_size: usize, total_windows: usize) -> HashMap, usize> //Generates joint frequencies using a switch time histogram, a joint switch time histogram, time window size, and total windows [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:618:112 [INFO] [stderr] | [INFO] [stderr] 618 | fn get_joint_frequencies (switch_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, joint_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, window_size: usize, total_windows: usize) -> HashMap, usize> //Generates joint frequencies using a switch time histogram, a joint switch time histogram, time window size, and total windows [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:670:13 [INFO] [stderr] | [INFO] [stderr] 670 | switch_sum = switch_sum + st.2; //Adds sum to switch sum [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_sum += st.2` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:671:13 [INFO] [stderr] | [INFO] [stderr] 671 | switch_count = switch_count + st.3; //Adds frequency to switch count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_count += st.3` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:675:17 [INFO] [stderr] | [INFO] [stderr] 675 | switch_adjust = switch_adjust + (st.2 - (st.3 * window_size as u64)); //Adds the difference between the switch sum and the switch frequency multiplied by the window size [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_adjust += (st.2 - (st.3 * window_size as u64))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:631:13 [INFO] [stderr] | [INFO] [stderr] 631 | switch_sum = switch_sum + st.2; //Adds sum to switch sum [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_sum += st.2` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:632:13 [INFO] [stderr] | [INFO] [stderr] 632 | switch_count = switch_count + st.3; //Adds frequency to switch count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_count += st.3` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:636:17 [INFO] [stderr] | [INFO] [stderr] 636 | switch_adjust = switch_adjust + (st.2 - (st.3 * window_size as u64)); //Adds the difference between the switch sum and the switch frequency multiplied by the window size [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_adjust += (st.2 - (st.3 * window_size as u64))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:657:47 [INFO] [stderr] | [INFO] [stderr] 657 | fn get_joint_frequencies_words (switch_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, joint_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, window_size: usize, total_windows: usize) -> HashMap, usize> //Generates joint frequencies using a switch time histogram, a joint switch time histogram, time window size, and total windows [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/main.rs:657:119 [INFO] [stderr] | [INFO] [stderr] 657 | fn get_joint_frequencies_words (switch_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, joint_times: &HashMap, Histogram <(u64, u64, u64, u64)>>, window_size: usize, total_windows: usize) -> HashMap, usize> //Generates joint frequencies using a switch time histogram, a joint switch time histogram, time window size, and total windows [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:702:59 [INFO] [stderr] | [INFO] [stderr] 702 | affinities.push(Node{pair: p.clone(), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.0).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:702:106 [INFO] [stderr] | [INFO] [stderr] 702 | affinities.push(Node{pair: p.clone(), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.0).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&p.0]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:703:64 [INFO] [stderr] | [INFO] [stderr] 703 | affinities.push(Node{pair: Pair(p.1, p.0), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.1).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:703:111 [INFO] [stderr] | [INFO] [stderr] 703 | affinities.push(Node{pair: Pair(p.1, p.0), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.1).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&p.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:670:13 [INFO] [stderr] | [INFO] [stderr] 670 | switch_sum = switch_sum + st.2; //Adds sum to switch sum [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_sum += st.2` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:671:13 [INFO] [stderr] | [INFO] [stderr] 671 | switch_count = switch_count + st.3; //Adds frequency to switch count [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_count += st.3` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:675:17 [INFO] [stderr] | [INFO] [stderr] 675 | switch_adjust = switch_adjust + (st.2 - (st.3 * window_size as u64)); //Adds the difference between the switch sum and the switch frequency multiplied by the window size [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `switch_adjust += (st.2 - (st.3 * window_size as u64))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:715:59 [INFO] [stderr] | [INFO] [stderr] 715 | affinities.push(Node{pair: p.clone(), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.0).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:715:106 [INFO] [stderr] | [INFO] [stderr] 715 | affinities.push(Node{pair: p.clone(), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.0).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&p.0]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:716:80 [INFO] [stderr] | [INFO] [stderr] 716 | affinities.push(Node{pair: Pair(p.1.clone(), p.0.clone()), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.1).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:716:127 [INFO] [stderr] | [INFO] [stderr] 716 | affinities.push(Node{pair: Pair(p.1.clone(), p.0.clone()), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.1).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&p.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:702:59 [INFO] [stderr] | [INFO] [stderr] 702 | affinities.push(Node{pair: p.clone(), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.0).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:702:106 [INFO] [stderr] | [INFO] [stderr] 702 | affinities.push(Node{pair: p.clone(), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.0).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&p.0]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:703:64 [INFO] [stderr] | [INFO] [stderr] 703 | affinities.push(Node{pair: Pair(p.1, p.0), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.1).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:703:111 [INFO] [stderr] | [INFO] [stderr] 703 | affinities.push(Node{pair: Pair(p.1, p.0), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.1).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&p.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:715:59 [INFO] [stderr] | [INFO] [stderr] 715 | affinities.push(Node{pair: p.clone(), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.0).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:715:106 [INFO] [stderr] | [INFO] [stderr] 715 | affinities.push(Node{pair: p.clone(), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.0).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&p.0]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:716:80 [INFO] [stderr] | [INFO] [stderr] 716 | affinities.push(Node{pair: Pair(p.1.clone(), p.0.clone()), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.1).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[&p]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:716:127 [INFO] [stderr] | [INFO] [stderr] 716 | affinities.push(Node{pair: Pair(p.1.clone(), p.0.clone()), affinity: (*joint_frequencies.get(&p).unwrap() as f64) / (*single_frequencies.get(&p.1).unwrap() as f64)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[&p.1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:809:18 [INFO] [stderr] | [INFO] [stderr] 809 | for s in times.0.get(c).unwrap().get_values() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `×.0[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:809:18 [INFO] [stderr] | [INFO] [stderr] 809 | for s in times.0.get(c).unwrap().get_values() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `×.0[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:822:18 [INFO] [stderr] | [INFO] [stderr] 822 | for s in times.1.get(c).unwrap().get_values() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `×.1[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:835:18 [INFO] [stderr] | [INFO] [stderr] 835 | for s in times.2.get(c).unwrap().get_values() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `×.2[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:822:18 [INFO] [stderr] | [INFO] [stderr] 822 | for s in times.1.get(c).unwrap().get_values() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `×.1[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:848:18 [INFO] [stderr] | [INFO] [stderr] 848 | for s in times.3.get(c).unwrap().get_values() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `×.3[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:835:18 [INFO] [stderr] | [INFO] [stderr] 835 | for s in times.2.get(c).unwrap().get_values() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `×.2[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:869:31 [INFO] [stderr] | [INFO] [stderr] 869 | println!("{}: {}", c, single_frequencies.get(c).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:848:18 [INFO] [stderr] | [INFO] [stderr] 848 | for s in times.3.get(c).unwrap().get_values() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `×.3[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:875:44 [INFO] [stderr] | [INFO] [stderr] 875 | println!("({}, {}): {}", c.1, c.0, joint_frequencies.get(c).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:869:31 [INFO] [stderr] | [INFO] [stderr] 869 | println!("{}: {}", c, single_frequencies.get(c).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:875:44 [INFO] [stderr] | [INFO] [stderr] 875 | println!("({}, {}): {}", c.1, c.0, joint_frequencies.get(c).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:896:32 [INFO] [stderr] | [INFO] [stderr] 896 | let split = contents.split("\n").collect::>(); [INFO] [stderr] | ^^^^ help: try using a char instead: `'\n'` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:969:35 [INFO] [stderr] | [INFO] [stderr] 969 | println!("{}: {}", c, single_frequencies.get(c).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:975:48 [INFO] [stderr] | [INFO] [stderr] 975 | println!("({}, {}): {}", c.1, c.0, joint_frequencies.get(c).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:896:32 [INFO] [stderr] | [INFO] [stderr] 896 | let split = contents.split("\n").collect::>(); [INFO] [stderr] | ^^^^ help: try using a char instead: `'\n'` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:969:35 [INFO] [stderr] | [INFO] [stderr] 969 | println!("{}: {}", c, single_frequencies.get(c).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&single_frequencies[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:975:48 [INFO] [stderr] | [INFO] [stderr] 975 | println!("({}, {}): {}", c.1, c.0, joint_frequencies.get(c).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&joint_frequencies[c]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:1006:13 [INFO] [stderr] | [INFO] [stderr] 1006 | time = time + 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `time += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:1006:13 [INFO] [stderr] | [INFO] [stderr] 1006 | time = time + 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `time += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:1138:9 [INFO] [stderr] | [INFO] [stderr] 1138 | time = time + 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `time += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:1138:9 [INFO] [stderr] | [INFO] [stderr] 1138 | time = time + 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `time += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.20s [INFO] running `"docker" "inspect" "450fad25c944c0c4545cfff5acbc342aaf1f56c73f6c99541f593a2651fc3834"` [INFO] running `"docker" "rm" "-f" "450fad25c944c0c4545cfff5acbc342aaf1f56c73f6c99541f593a2651fc3834"` [INFO] [stdout] 450fad25c944c0c4545cfff5acbc342aaf1f56c73f6c99541f593a2651fc3834