[INFO] cloning repository https://github.com/vickky06/DSA [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vickky06/DSA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FDSA", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FDSA'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e3d15199616b4ee1018e8fc60b22c64d76f2eb2b [INFO] checking vickky06/DSA against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FDSA" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vickky06/DSA [INFO] finished tweaking git repo https://github.com/vickky06/DSA [INFO] tweaked toml for git repo https://github.com/vickky06/DSA written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vickky06/DSA on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vickky06/DSA already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking vickky06/DSA against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FDSA" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vickky06/DSA [INFO] finished tweaking git repo https://github.com/vickky06/DSA [INFO] tweaked toml for git repo https://github.com/vickky06/DSA written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vickky06/DSA on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vickky06/DSA already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6e69b18d34ea3715fcb0f509e9b37837d5ebc37ca1a26ef64157beebf57b6c8c [INFO] running `Command { std: "docker" "start" "-a" "6e69b18d34ea3715fcb0f509e9b37837d5ebc37ca1a26ef64157beebf57b6c8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e69b18d34ea3715fcb0f509e9b37837d5ebc37ca1a26ef64157beebf57b6c8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e69b18d34ea3715fcb0f509e9b37837d5ebc37ca1a26ef64157beebf57b6c8c", kill_on_drop: false }` [INFO] [stdout] 6e69b18d34ea3715fcb0f509e9b37837d5ebc37ca1a26ef64157beebf57b6c8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b3c1b730975c194fbc990d3ac6788680661e465568f1224ccdaaa3f4cea46069 [INFO] running `Command { std: "docker" "start" "-a" "b3c1b730975c194fbc990d3ac6788680661e465568f1224ccdaaa3f4cea46069", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking dsaRealLife v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `Word_Grouping_Trait` should have an upper camel case name [INFO] [stdout] --> src/dsa/anagramCheck.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Word_Grouping_Trait{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WordGroupingTrait` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pointer` should have an upper camel case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type pointer = Option>>; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Item_Map` should have an upper camel case name [INFO] [stdout] --> src/dsa/mostRecentlyPurchased.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Item_Map { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `ItemMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `utils` should have an upper camel case name [INFO] [stdout] --> src/util/utils.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct utils { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Utils` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Word_Grouping_Trait` should have an upper camel case name [INFO] [stdout] --> src/dsa/anagramCheck.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Word_Grouping_Trait{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WordGroupingTrait` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pointer` should have an upper camel case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type pointer = Option>>; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Item_Map` should have an upper camel case name [INFO] [stdout] --> src/dsa/mostRecentlyPurchased.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Item_Map { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `ItemMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `utils` should have an upper camel case name [INFO] [stdout] --> src/util/utils.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct utils { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Utils` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `popped` [INFO] [stdout] --> src/dsa/stack_max.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let popped = self.main_stack.pop(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_popped` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/runner.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | for i in 0..1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/runner.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | for i in 0..range { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `popped` [INFO] [stdout] --> src/dsa/stack_max.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let popped = self.main_stack.pop(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_popped` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> src/runner.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | let values:Vec<(i32, String)> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Word_Grouping_Trait` is never used [INFO] [stdout] --> src/dsa/anagramCheck.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Word_Grouping_Trait{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WordGrouping` is never constructed [INFO] [stdout] --> src/dsa/anagramCheck.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct WordGrouping{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dsa/anagramCheck.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl WordGrouping{ [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greet` is never used [INFO] [stdout] --> src/dsa/anagramCheck.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn greet(name:&str)->String{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PopularityTrend` is never used [INFO] [stdout] --> src/dsa/popularityCheck.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PopularityTrend { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Popularity` is never constructed [INFO] [stdout] --> src/dsa/popularityCheck.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Popularity { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_popularity`, and `check_popularity` are never used [INFO] [stdout] --> src/dsa/popularityCheck.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Popularity { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_popularity( &mut self, word: &str, score: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn check_popularity(&self, word: &String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StockStack` is never constructed [INFO] [stdout] --> src/dsa/stack_max.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct StockStack{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `print_stack`, and `get_max_for_week` are never used [INFO] [stdout] --> src/dsa/stack_max.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl StockStack{ [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn push(&mut self, value:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn pop(&mut self){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn print_stack(&self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_max_for_week(&self, week: Option) -> Option<(i32,String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meeting` is never constructed [INFO] [stdout] --> src/dsa/overlappingTime.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Meeting { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_start_time`, and `get_end_time` are never used [INFO] [stdout] --> src/dsa/overlappingTime.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 11 | impl Meeting { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | pub fn new(start_time: i32, end_time: i32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_start_time(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_end_time(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scheduler` is never constructed [INFO] [stdout] --> src/dsa/overlappingTime.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `has_meeting`, `get_meetings`, `add_meeting`, `show_meetings`, and `get_overlaps` are never used [INFO] [stdout] --> src/dsa/overlappingTime.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 35 | impl Scheduler { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 36 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn has_meeting(&self, key: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn get_meetings(&self, key: String) -> Option<&BTreeSet> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn add_meeting(&mut self, name: String, meeting: Meeting) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn show_meetings(&self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn get_overlaps(&self, name1: String, name2: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemObject` is never constructed [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ItemObject { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemPrices` is never constructed [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ItemPrices { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComboOffers` is never constructed [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ComboOffers { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_price`, and `get_name` are never used [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl ItemObject { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(item_name: String, item_price: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_price(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_item`, `remove_item`, `get_item`, and `update_price` are never used [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl ItemPrices { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 33 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn add_item(&mut self, item: ItemObject) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn remove_item(&mut self, item_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_item(&self, item_name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn update_price(&mut self, item_name: &str, item_price: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_offer`, `set_combo_price`, `get_combo_price`, `create_offers`, and `generate_offers` are never used [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl ComboOffers { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 70 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn add_offer(&mut self, item1: ItemObject, item2: ItemObject) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn set_combo_price(&mut self, combo_price: u8, item_prices: &ItemPrices) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_combo_price(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn create_offers(&mut self, item_prices_map: &ItemPrices) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn generate_offers(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/dsa/binarySearchTree.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `insert` are never used [INFO] [stdout] --> src/dsa/binarySearchTree.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 9 | fn new(value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn insert(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinarySearchTree` is never constructed [INFO] [stdout] --> src/dsa/binarySearchTree.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct BinarySearchTree { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `traversal`, `insert`, and `productsInRange` are never used [INFO] [stdout] --> src/dsa/binarySearchTree.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl BinarySearchTree { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 51 | pub fn new(value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn traversal(node: &Option>, high: i32, low: i32, output: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn insert(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn productsInRange(&self, low: i32, high: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/dsa/itemRankMerging.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `pointer` is never used [INFO] [stdout] --> src/dsa/itemRankMerging.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type pointer = Option>>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/dsa/itemRankMerging.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemObjectsLinkedList` is never constructed [INFO] [stdout] --> src/dsa/itemRankMerging.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ItemObjectsLinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_empty_list`, `add_item`, `remove_item`, and `printing` are never used [INFO] [stdout] --> src/dsa/itemRankMerging.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl LinkedList { [INFO] [stdout] | -------------------------------------- associated items in this implementation [INFO] [stdout] 23 | fn create_empty_list() -> LinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn add_item(&mut self, element: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn remove_item(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn printing(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_linked_list`, `upsert_item`, `remove_item`, `print_list`, and `get_heads` are never used [INFO] [stdout] --> src/dsa/itemRankMerging.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl ItemObjectsLinkedList { [INFO] [stdout] | ------------------------------------------------------- associated items in this implementation [INFO] [stdout] 73 | pub fn new(sortedListName: String) -> ItemObjectsLinkedList { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn add_linked_list(&mut self, key: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn upsert_item(&mut self, key: &str, value: T) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn remove_item(&mut self, key: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn print_list(&self, key: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn get_heads(&self) -> Vec<(T, String)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Backward` is never constructed [INFO] [stdout] --> src/dsa/mostRecentlyPurchased.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 16 | Forward, [INFO] [stdout] 17 | Backward, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_front` and `pop_back` are never used [INFO] [stdout] --> src/dsa/DoublyLinkedList.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl DoublyLinkedList { [INFO] [stdout] | -------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn push_front(&mut self, value: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn pop_back(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UtilTraits` is never used [INFO] [stdout] --> src/util/utils.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait UtilTraits { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `utils` is never constructed [INFO] [stdout] --> src/util/utils.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct utils { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NameGenerator` is never constructed [INFO] [stdout] --> src/util/utils.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct NameGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next_name` are never used [INFO] [stdout] --> src/util/utils.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 36 | impl NameGenerator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 37 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn next_name(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anagram_main` is never used [INFO] [stdout] --> src/runner.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn anagram_main() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `popularity_main` is never used [INFO] [stdout] --> src/runner.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn popularity_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stock_main` is never used [INFO] [stdout] --> src/runner.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn stock_main() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `overlaping_main` is never used [INFO] [stdout] --> src/runner.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn overlaping_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shopping_cart_main` is never used [INFO] [stdout] --> src/runner.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn shopping_cart_main() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bst_main` is never used [INFO] [stdout] --> src/runner.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn bst_main() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `item_rank_main` is never used [INFO] [stdout] --> src/runner.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn item_rank_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `anagramCheck` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod anagramCheck; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `anagram_check` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `popularityCheck` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod popularityCheck; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `popularity_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `overlappingTime` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod overlappingTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `overlapping_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `specialShoppingCart` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod specialShoppingCart; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `special_shopping_cart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `binarySearchTree` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod binarySearchTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `binary_search_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `itemRankMerging` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod itemRankMerging; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `item_rank_merging` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `mostRecentlyPurchased` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod mostRecentlyPurchased; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `most_recently_purchased` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DoublyLinkedList` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod DoublyLinkedList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `doubly_linked_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `productsInRange` should have a snake case name [INFO] [stdout] --> src/dsa/binarySearchTree.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn productsInRange(&self, low: i32, high: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `products_in_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `itemObejectList` should have a snake case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | itemObejectList: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `item_obeject_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `sortedListName` should have a snake case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | sortedListName : String [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sorted_list_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Node` should have a snake case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | Some(Node) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sortedListName` should have a snake case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn new(sortedListName: String) -> ItemObjectsLinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sorted_list_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `maX_len` should have a snake case name [INFO] [stdout] --> src/util/utils.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let maX_len = names.len(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ma_x_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/runner.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | for i in 0..1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/runner.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | for i in 0..range { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> src/runner.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | let values:Vec<(i32, String)> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Word_Grouping_Trait` is never used [INFO] [stdout] --> src/dsa/anagramCheck.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Word_Grouping_Trait{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WordGrouping` is never constructed [INFO] [stdout] --> src/dsa/anagramCheck.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct WordGrouping{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dsa/anagramCheck.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl WordGrouping{ [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greet` is never used [INFO] [stdout] --> src/dsa/anagramCheck.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn greet(name:&str)->String{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PopularityTrend` is never used [INFO] [stdout] --> src/dsa/popularityCheck.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PopularityTrend { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Popularity` is never constructed [INFO] [stdout] --> src/dsa/popularityCheck.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Popularity { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_popularity`, and `check_popularity` are never used [INFO] [stdout] --> src/dsa/popularityCheck.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Popularity { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_popularity( &mut self, word: &str, score: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn check_popularity(&self, word: &String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StockStack` is never constructed [INFO] [stdout] --> src/dsa/stack_max.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct StockStack{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `print_stack`, and `get_max_for_week` are never used [INFO] [stdout] --> src/dsa/stack_max.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl StockStack{ [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn push(&mut self, value:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn pop(&mut self){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn print_stack(&self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_max_for_week(&self, week: Option) -> Option<(i32,String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meeting` is never constructed [INFO] [stdout] --> src/dsa/overlappingTime.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Meeting { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_start_time`, and `get_end_time` are never used [INFO] [stdout] --> src/dsa/overlappingTime.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 11 | impl Meeting { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | pub fn new(start_time: i32, end_time: i32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_start_time(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_end_time(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scheduler` is never constructed [INFO] [stdout] --> src/dsa/overlappingTime.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `has_meeting`, `get_meetings`, `add_meeting`, `show_meetings`, and `get_overlaps` are never used [INFO] [stdout] --> src/dsa/overlappingTime.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 35 | impl Scheduler { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 36 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn has_meeting(&self, key: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn get_meetings(&self, key: String) -> Option<&BTreeSet> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn add_meeting(&mut self, name: String, meeting: Meeting) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn show_meetings(&self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn get_overlaps(&self, name1: String, name2: String) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemObject` is never constructed [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ItemObject { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemPrices` is never constructed [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ItemPrices { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComboOffers` is never constructed [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ComboOffers { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_price`, and `get_name` are never used [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl ItemObject { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(item_name: String, item_price: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_price(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_item`, `remove_item`, `get_item`, and `update_price` are never used [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl ItemPrices { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 33 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn add_item(&mut self, item: ItemObject) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn remove_item(&mut self, item_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_item(&self, item_name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn update_price(&mut self, item_name: &str, item_price: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_offer`, `set_combo_price`, `get_combo_price`, `create_offers`, and `generate_offers` are never used [INFO] [stdout] --> src/dsa/specialShoppingCart.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl ComboOffers { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 70 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn add_offer(&mut self, item1: ItemObject, item2: ItemObject) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn set_combo_price(&mut self, combo_price: u8, item_prices: &ItemPrices) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_combo_price(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn create_offers(&mut self, item_prices_map: &ItemPrices) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn generate_offers(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/dsa/binarySearchTree.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `insert` are never used [INFO] [stdout] --> src/dsa/binarySearchTree.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 9 | fn new(value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn insert(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinarySearchTree` is never constructed [INFO] [stdout] --> src/dsa/binarySearchTree.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct BinarySearchTree { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `traversal`, `insert`, and `productsInRange` are never used [INFO] [stdout] --> src/dsa/binarySearchTree.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl BinarySearchTree { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 51 | pub fn new(value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn traversal(node: &Option>, high: i32, low: i32, output: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn insert(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn productsInRange(&self, low: i32, high: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/dsa/itemRankMerging.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `pointer` is never used [INFO] [stdout] --> src/dsa/itemRankMerging.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type pointer = Option>>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/dsa/itemRankMerging.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemObjectsLinkedList` is never constructed [INFO] [stdout] --> src/dsa/itemRankMerging.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ItemObjectsLinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_empty_list`, `add_item`, `remove_item`, and `printing` are never used [INFO] [stdout] --> src/dsa/itemRankMerging.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl LinkedList { [INFO] [stdout] | -------------------------------------- associated items in this implementation [INFO] [stdout] 23 | fn create_empty_list() -> LinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn add_item(&mut self, element: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn remove_item(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn printing(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_linked_list`, `upsert_item`, `remove_item`, `print_list`, and `get_heads` are never used [INFO] [stdout] --> src/dsa/itemRankMerging.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl ItemObjectsLinkedList { [INFO] [stdout] | ------------------------------------------------------- associated items in this implementation [INFO] [stdout] 73 | pub fn new(sortedListName: String) -> ItemObjectsLinkedList { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn add_linked_list(&mut self, key: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn upsert_item(&mut self, key: &str, value: T) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn remove_item(&mut self, key: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn print_list(&self, key: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn get_heads(&self) -> Vec<(T, String)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Backward` is never constructed [INFO] [stdout] --> src/dsa/mostRecentlyPurchased.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 16 | Forward, [INFO] [stdout] 17 | Backward, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_front` and `pop_back` are never used [INFO] [stdout] --> src/dsa/DoublyLinkedList.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl DoublyLinkedList { [INFO] [stdout] | -------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn push_front(&mut self, value: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn pop_back(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UtilTraits` is never used [INFO] [stdout] --> src/util/utils.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait UtilTraits { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `utils` is never constructed [INFO] [stdout] --> src/util/utils.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct utils { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NameGenerator` is never constructed [INFO] [stdout] --> src/util/utils.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct NameGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next_name` are never used [INFO] [stdout] --> src/util/utils.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 36 | impl NameGenerator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 37 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn next_name(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anagram_main` is never used [INFO] [stdout] --> src/runner.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn anagram_main() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `popularity_main` is never used [INFO] [stdout] --> src/runner.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn popularity_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stock_main` is never used [INFO] [stdout] --> src/runner.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn stock_main() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `overlaping_main` is never used [INFO] [stdout] --> src/runner.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn overlaping_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shopping_cart_main` is never used [INFO] [stdout] --> src/runner.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn shopping_cart_main() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bst_main` is never used [INFO] [stdout] --> src/runner.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn bst_main() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `item_rank_main` is never used [INFO] [stdout] --> src/runner.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn item_rank_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `anagramCheck` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod anagramCheck; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `anagram_check` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `popularityCheck` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod popularityCheck; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `popularity_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `overlappingTime` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod overlappingTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `overlapping_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `specialShoppingCart` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod specialShoppingCart; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `special_shopping_cart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `binarySearchTree` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod binarySearchTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `binary_search_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `itemRankMerging` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod itemRankMerging; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `item_rank_merging` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `mostRecentlyPurchased` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod mostRecentlyPurchased; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `most_recently_purchased` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DoublyLinkedList` should have a snake case name [INFO] [stdout] --> src/dsa/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod DoublyLinkedList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `doubly_linked_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `productsInRange` should have a snake case name [INFO] [stdout] --> src/dsa/binarySearchTree.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn productsInRange(&self, low: i32, high: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `products_in_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `itemObejectList` should have a snake case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | itemObejectList: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `item_obeject_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `sortedListName` should have a snake case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | sortedListName : String [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sorted_list_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Node` should have a snake case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | Some(Node) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sortedListName` should have a snake case name [INFO] [stdout] --> src/dsa/itemRankMerging.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn new(sortedListName: String) -> ItemObjectsLinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sorted_list_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `maX_len` should have a snake case name [INFO] [stdout] --> src/util/utils.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let maX_len = names.len(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ma_x_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.53s [INFO] running `Command { std: "docker" "inspect" "b3c1b730975c194fbc990d3ac6788680661e465568f1224ccdaaa3f4cea46069", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3c1b730975c194fbc990d3ac6788680661e465568f1224ccdaaa3f4cea46069", kill_on_drop: false }` [INFO] [stdout] b3c1b730975c194fbc990d3ac6788680661e465568f1224ccdaaa3f4cea46069