[INFO] cloning repository https://github.com/fabiandarga/rusty-dungeon [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fabiandarga/rusty-dungeon" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabiandarga%2Frusty-dungeon", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabiandarga%2Frusty-dungeon'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 97c296ba04aa9f8acc392cd02b6e84f5f2771851 [INFO] testing fabiandarga/rusty-dungeon against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabiandarga%2Frusty-dungeon" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/fabiandarga/rusty-dungeon [INFO] finished tweaking git repo https://github.com/fabiandarga/rusty-dungeon [INFO] tweaked toml for git repo https://github.com/fabiandarga/rusty-dungeon written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/fabiandarga/rusty-dungeon on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/fabiandarga/rusty-dungeon 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strum_macros v0.21.1 [INFO] [stderr] Downloaded strum v0.21.0 [INFO] [stderr] Downloaded crossterm_winapi v0.8.0 [INFO] [stderr] Downloaded signal-hook-mio v0.2.1 [INFO] [stderr] Downloaded signal-hook v0.3.9 [INFO] [stderr] Downloaded tui v0.16.0 [INFO] [stderr] Downloaded crossterm v0.20.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e4157bafef9bb148a23d5cf02c7858d9cb7d396514c480c3505c703307ed376 [INFO] running `Command { std: "docker" "start" "-a" "9e4157bafef9bb148a23d5cf02c7858d9cb7d396514c480c3505c703307ed376", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e4157bafef9bb148a23d5cf02c7858d9cb7d396514c480c3505c703307ed376", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e4157bafef9bb148a23d5cf02c7858d9cb7d396514c480c3505c703307ed376", kill_on_drop: false }` [INFO] [stdout] 9e4157bafef9bb148a23d5cf02c7858d9cb7d396514c480c3505c703307ed376 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 4587db6ba32387dc9683b1d40cc03093ab4ef87383e63eb95d8bf84f873b85d1 [INFO] running `Command { std: "docker" "start" "-a" "4587db6ba32387dc9683b1d40cc03093ab4ef87383e63eb95d8bf84f873b85d1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling signal-hook v0.3.9 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling strum v0.21.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling signal-hook-mio v0.2.1 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling crossterm v0.20.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling tui v0.16.0 [INFO] [stderr] Compiling rusty-dungeon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `basic_melee_fighter::*` [INFO] [stdout] --> src/entities/enemies/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use basic_melee_fighter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `template` is never read [INFO] [stdout] --> src/models/enemy.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Enemy { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub template: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Enemy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/enemy.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Enemy { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 20 | pub fn new(id: u16, name: &str) -> Enemy { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Actor` is never used [INFO] [stdout] --> src/models/actor.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Actor { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply_damage` is never used [INFO] [stdout] --> src/models/actor.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl ActorValues { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 25 | pub fn apply_damage(&mut self, dmg: u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `text` and `enemies` are never read [INFO] [stdout] --> src/models/encounter.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Encounter { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | pub id: u16, [INFO] [stdout] 7 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub enemies: Vec [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Encounter` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/models/encounter.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct EnemyDeclaration(u16, EnemyAmount); [INFO] [stdout] | ---------------- ^^^ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `EnemyDeclaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/models/encounter.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | Amount(u8), [INFO] [stdout] | ------ ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `EnemyAmount` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 - Amount(u8), [INFO] [stdout] 22 + Amount(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/models/encounter.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | Range(u8, u8), [INFO] [stdout] | ----- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `EnemyAmount` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 - Range(u8, u8), [INFO] [stdout] 23 + Range((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AttackFunction` is never used [INFO] [stdout] --> src/models/attack_methods.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type AttackFunction = dyn Fn(&mut ActorValues, &mut ActorValues) -> BattleEvent; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Skill` is never constructed [INFO] [stdout] --> src/models/models.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 140 | pub enum BadResultType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 141 | Damage, [INFO] [stdout] 142 | Skill, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BadResultType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `special_effect` is never read [INFO] [stdout] --> src/models/attack_options.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AttackDescription { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub special_effect: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AttackDescription` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source`, `target`, and `effect` are never read [INFO] [stdout] --> src/models/battle_events.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BattleEvent { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 14 | pub title: String, [INFO] [stdout] 15 | pub source: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | pub effect: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BattleEvent` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `encounters` and `enemies` are never read [INFO] [stdout] --> src/data/game_data.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GameData { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | encounters: Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | enemies: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_enemy_by_id` and `find_encounter_by_id` are never used [INFO] [stdout] --> src/data/game_data.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl GameData { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn find_enemy_by_id(&self, enemy_id: u16) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn find_encounter_by_id(&self, encounter_id: u16) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `battle_handler` is never read [INFO] [stdout] --> src/game_handler.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct GameHandler { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | battle_handler: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_battle_handler` is never used [INFO] [stdout] --> src/game_handler.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl GameHandler { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_battle_handler(&self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `actors`, `sorted_actors`, and `current_actor_index` are never read [INFO] [stdout] --> src/battle_handler.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BattleHandler { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 8 | actors: Vec>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | sorted_actors: Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | current_actor_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_enemy`, `add_player`, `calc_initiative`, `get_actor_values_by_order`, `get_current_actor`, and `increase_actor_index` are never used [INFO] [stdout] --> src/battle_handler.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BattleHandler { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_enemy(mut self, enemy: &Enemy) -> BattleHandler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn add_player(mut self, player: &Character) -> BattleHandler { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn calc_initiative(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_actor_values_by_order(&self) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_current_actor(&self) -> Option>>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn increase_actor_index(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `title` is never read [INFO] [stdout] --> src/views/components/message_block.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MessageBlock<'a> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 15 | title: Text<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageBlock` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `battle_handler` is never read [INFO] [stdout] --> src/views/dungeon/battle_view.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct BattleView { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | battle_handler: BattleHandler, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicMeleeFighter` is never constructed [INFO] [stdout] --> src/entities/enemies/basic_melee_fighter.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BasicMeleeFighter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `melee_attack` is never used [INFO] [stdout] --> src/entities/enemies/basic_melee_fighter.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn melee_attack(user: &mut ActorValues, target: &mut ActorValues) -> BattleEvent { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `selectAttack` should have a snake case name [INFO] [stdout] --> src/models/actor.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn selectAttack(&self) -> Box; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `select_attack` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:104:28 [INFO] [stdout] | [INFO] [stdout] 104 | fn build_result_widget(&self, last_rewards: &Vec) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 104 | fn build_result_widget(&self, last_rewards: &Vec) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:137:29 [INFO] [stdout] | [INFO] [stdout] 137 | fn build_failure_widget(&self, last_bad_results: &Vec) -> Paragraph { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 137 | fn build_failure_widget(&self, last_bad_results: &Vec) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | fn build_confirm_widget(&self) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 165 | fn build_confirm_widget(&self) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | fn build_title(&self, title: &str) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 183 | fn build_title(&self, title: &str) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:191:19 [INFO] [stdout] | [INFO] [stdout] 191 | fn build_body(&self, text: &str) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 191 | fn build_body(&self, text: &str) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:198:28 [INFO] [stdout] | [INFO] [stdout] 198 | fn build_choice_widget(&self, choices: &[Choice]) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 198 | fn build_choice_widget(&self, choices: &[Choice]) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 224 | fn build_block(&self) -> Block { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 224 | fn build_block(&self) -> Block<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/menu_view.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | fn build_block(&self) -> Block { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 43 | fn build_block(&self) -> Block<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/character_view.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | fn build_overview(&self, xp: u16, hp: u16, hp_max: u16) -> Paragraph { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 37 | fn build_overview(&self, xp: u16, hp: u16, hp_max: u16) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/character_view.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | fn build_skill_section(&self, skill_list: &[Rc]) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 58 | fn build_skill_section(&self, skill_list: &[Rc]) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/character_view.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | fn build_block(&self) -> Block { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 76 | fn build_block(&self) -> Block<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/items_view.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | fn build_item_list(&self, item_list: &Vec>) -> List { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 94 | fn build_item_list(&self, item_list: &Vec>) -> List<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/items_view.rs:119:26 [INFO] [stdout] | [INFO] [stdout] 119 | fn build_item_detail(&self, item_list: &Vec>) -> Table { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 119 | fn build_item_detail(&self, item_list: &Vec>) -> Table<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/items_view.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 156 | fn build_equipped_items(&self, item_list: &Vec>) -> Table { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 156 | fn build_equipped_items(&self, item_list: &Vec>) -> Table<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/items_view.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | fn build_item_row(&self, item: &Item) -> Row { [INFO] [stdout] | ^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 183 | fn build_item_row(&self, item: &Item) -> Row<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle_view.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | fn render_image(&self) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 110 | fn render_image(&self) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle_view.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | fn build_battle_menu(&self) -> List { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 139 | fn build_battle_menu(&self) -> List<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle_view.rs:148:29 [INFO] [stdout] | [INFO] [stdout] 148 | fn build_battle_options(&self, options: &Vec) -> (Paragraph, Paragraph, Paragraph, Paragraph) { [INFO] [stdout] | ^^^^^ --------- --------- --------- --------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 148 | fn build_battle_options(&self, options: &Vec) -> (Paragraph<'_>, Paragraph<'_>, Paragraph<'_>, Paragraph<'_>) { [INFO] [stdout] | ++++ ++++ ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle_view.rs:157:26 [INFO] [stdout] | [INFO] [stdout] 157 | fn build_battle_tile(&self, key: &str, option: &AttackOption) -> Paragraph { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 157 | fn build_battle_tile(&self, key: &str, option: &AttackOption) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle/battle_history.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | fn get_entry(&self, event: &BattleEvent) -> Spans { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 24 | fn get_entry(&self, event: &BattleEvent) -> Spans<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle/battle_history.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_text_content(&self) -> Vec { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 30 | fn get_text_content(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.25s [INFO] running `Command { std: "docker" "inspect" "4587db6ba32387dc9683b1d40cc03093ab4ef87383e63eb95d8bf84f873b85d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4587db6ba32387dc9683b1d40cc03093ab4ef87383e63eb95d8bf84f873b85d1", kill_on_drop: false }` [INFO] [stdout] 4587db6ba32387dc9683b1d40cc03093ab4ef87383e63eb95d8bf84f873b85d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 39aafd8b72d67e520beb2c83a4d2268bcaa5ab9c0f26343353d60908f22a2ee0 [INFO] running `Command { std: "docker" "start" "-a" "39aafd8b72d67e520beb2c83a4d2268bcaa5ab9c0f26343353d60908f22a2ee0", kill_on_drop: false }` [INFO] [stderr] Compiling rusty-dungeon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `basic_melee_fighter::*` [INFO] [stdout] --> src/entities/enemies/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use basic_melee_fighter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `template` is never read [INFO] [stdout] --> src/models/enemy.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Enemy { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub template: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Enemy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Actor` is never used [INFO] [stdout] --> src/models/actor.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Actor { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply_damage` is never used [INFO] [stdout] --> src/models/actor.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl ActorValues { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 25 | pub fn apply_damage(&mut self, dmg: u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `text` and `enemies` are never read [INFO] [stdout] --> src/models/encounter.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Encounter { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | pub id: u16, [INFO] [stdout] 7 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub enemies: Vec [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Encounter` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/models/encounter.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct EnemyDeclaration(u16, EnemyAmount); [INFO] [stdout] | ---------------- ^^^ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `EnemyDeclaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/models/encounter.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | Amount(u8), [INFO] [stdout] | ------ ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `EnemyAmount` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 - Amount(u8), [INFO] [stdout] 22 + Amount(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/models/encounter.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | Range(u8, u8), [INFO] [stdout] | ----- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `EnemyAmount` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 - Range(u8, u8), [INFO] [stdout] 23 + Range((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AttackFunction` is never used [INFO] [stdout] --> src/models/attack_methods.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type AttackFunction = dyn Fn(&mut ActorValues, &mut ActorValues) -> BattleEvent; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Skill` is never constructed [INFO] [stdout] --> src/models/models.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 140 | pub enum BadResultType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 141 | Damage, [INFO] [stdout] 142 | Skill, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BadResultType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `special_effect` is never read [INFO] [stdout] --> src/models/attack_options.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AttackDescription { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub special_effect: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AttackDescription` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source`, `target`, and `effect` are never read [INFO] [stdout] --> src/models/battle_events.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BattleEvent { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 14 | pub title: String, [INFO] [stdout] 15 | pub source: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | pub effect: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BattleEvent` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `encounters` and `enemies` are never read [INFO] [stdout] --> src/data/game_data.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GameData { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | encounters: Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | enemies: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_enemy_by_id` and `find_encounter_by_id` are never used [INFO] [stdout] --> src/data/game_data.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl GameData { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn find_enemy_by_id(&self, enemy_id: u16) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn find_encounter_by_id(&self, encounter_id: u16) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `battle_handler` is never read [INFO] [stdout] --> src/game_handler.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct GameHandler { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | battle_handler: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_battle_handler` is never used [INFO] [stdout] --> src/game_handler.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl GameHandler { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_battle_handler(&self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_actor_index` is never read [INFO] [stdout] --> src/battle_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BattleHandler { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | current_actor_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_current_actor` and `increase_actor_index` are never used [INFO] [stdout] --> src/battle_handler.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BattleHandler { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_current_actor(&self) -> Option>>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn increase_actor_index(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `title` is never read [INFO] [stdout] --> src/views/components/message_block.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MessageBlock<'a> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 15 | title: Text<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageBlock` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `battle_handler` is never read [INFO] [stdout] --> src/views/dungeon/battle_view.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct BattleView { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | battle_handler: BattleHandler, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicMeleeFighter` is never constructed [INFO] [stdout] --> src/entities/enemies/basic_melee_fighter.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BasicMeleeFighter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `melee_attack` is never used [INFO] [stdout] --> src/entities/enemies/basic_melee_fighter.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn melee_attack(user: &mut ActorValues, target: &mut ActorValues) -> BattleEvent { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `selectAttack` should have a snake case name [INFO] [stdout] --> src/models/actor.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn selectAttack(&self) -> Box; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `select_attack` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:104:28 [INFO] [stdout] | [INFO] [stdout] 104 | fn build_result_widget(&self, last_rewards: &Vec) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 104 | fn build_result_widget(&self, last_rewards: &Vec) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:137:29 [INFO] [stdout] | [INFO] [stdout] 137 | fn build_failure_widget(&self, last_bad_results: &Vec) -> Paragraph { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 137 | fn build_failure_widget(&self, last_bad_results: &Vec) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | fn build_confirm_widget(&self) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 165 | fn build_confirm_widget(&self) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | fn build_title(&self, title: &str) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 183 | fn build_title(&self, title: &str) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:191:19 [INFO] [stdout] | [INFO] [stdout] 191 | fn build_body(&self, text: &str) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 191 | fn build_body(&self, text: &str) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:198:28 [INFO] [stdout] | [INFO] [stdout] 198 | fn build_choice_widget(&self, choices: &[Choice]) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 198 | fn build_choice_widget(&self, choices: &[Choice]) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon_view.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 224 | fn build_block(&self) -> Block { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 224 | fn build_block(&self) -> Block<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/menu_view.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | fn build_block(&self) -> Block { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 43 | fn build_block(&self) -> Block<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/character_view.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | fn build_overview(&self, xp: u16, hp: u16, hp_max: u16) -> Paragraph { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 37 | fn build_overview(&self, xp: u16, hp: u16, hp_max: u16) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/character_view.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | fn build_skill_section(&self, skill_list: &[Rc]) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 58 | fn build_skill_section(&self, skill_list: &[Rc]) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/character_view.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | fn build_block(&self) -> Block { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 76 | fn build_block(&self) -> Block<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/items_view.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | fn build_item_list(&self, item_list: &Vec>) -> List { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 94 | fn build_item_list(&self, item_list: &Vec>) -> List<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/items_view.rs:119:26 [INFO] [stdout] | [INFO] [stdout] 119 | fn build_item_detail(&self, item_list: &Vec>) -> Table { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 119 | fn build_item_detail(&self, item_list: &Vec>) -> Table<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/items_view.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 156 | fn build_equipped_items(&self, item_list: &Vec>) -> Table { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 156 | fn build_equipped_items(&self, item_list: &Vec>) -> Table<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/items_view.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | fn build_item_row(&self, item: &Item) -> Row { [INFO] [stdout] | ^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 183 | fn build_item_row(&self, item: &Item) -> Row<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle_view.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | fn render_image(&self) -> Paragraph { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 110 | fn render_image(&self) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle_view.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | fn build_battle_menu(&self) -> List { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 139 | fn build_battle_menu(&self) -> List<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle_view.rs:148:29 [INFO] [stdout] | [INFO] [stdout] 148 | fn build_battle_options(&self, options: &Vec) -> (Paragraph, Paragraph, Paragraph, Paragraph) { [INFO] [stdout] | ^^^^^ --------- --------- --------- --------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 148 | fn build_battle_options(&self, options: &Vec) -> (Paragraph<'_>, Paragraph<'_>, Paragraph<'_>, Paragraph<'_>) { [INFO] [stdout] | ++++ ++++ ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle_view.rs:157:26 [INFO] [stdout] | [INFO] [stdout] 157 | fn build_battle_tile(&self, key: &str, option: &AttackOption) -> Paragraph { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 157 | fn build_battle_tile(&self, key: &str, option: &AttackOption) -> Paragraph<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle/battle_history.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | fn get_entry(&self, event: &BattleEvent) -> Spans { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 24 | fn get_entry(&self, event: &BattleEvent) -> Spans<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/views/dungeon/battle/battle_history.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_text_content(&self) -> Vec { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 30 | fn get_text_content(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `Command { std: "docker" "inspect" "39aafd8b72d67e520beb2c83a4d2268bcaa5ab9c0f26343353d60908f22a2ee0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39aafd8b72d67e520beb2c83a4d2268bcaa5ab9c0f26343353d60908f22a2ee0", kill_on_drop: false }` [INFO] [stdout] 39aafd8b72d67e520beb2c83a4d2268bcaa5ab9c0f26343353d60908f22a2ee0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 76e752d8a00d53690d5131797978cd92bd37d6bc624503e80b98dfe5aaa75a68 [INFO] running `Command { std: "docker" "start" "-a" "76e752d8a00d53690d5131797978cd92bd37d6bc624503e80b98dfe5aaa75a68", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `basic_melee_fighter::*` [INFO] [stderr] --> src/entities/enemies/mod.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | pub use basic_melee_fighter::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `template` is never read [INFO] [stderr] --> src/models/enemy.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct Enemy { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] ... [INFO] [stderr] 9 | pub template: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Enemy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait `Actor` is never used [INFO] [stderr] --> src/models/actor.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | pub trait Actor { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `apply_damage` is never used [INFO] [stderr] --> src/models/actor.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl ActorValues { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] 25 | pub fn apply_damage(&mut self, dmg: u16) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `text` and `enemies` are never read [INFO] [stderr] --> src/models/encounter.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct Encounter { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 6 | pub id: u16, [INFO] [stderr] 7 | pub text: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 8 | pub enemies: Vec [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Encounter` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/models/encounter.rs:18:29 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct EnemyDeclaration(u16, EnemyAmount); [INFO] [stderr] | ---------------- ^^^ ^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing these fields [INFO] [stderr] = note: `EnemyDeclaration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/models/encounter.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | Amount(u8), [INFO] [stderr] | ------ ^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `EnemyAmount` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 22 - Amount(u8), [INFO] [stderr] 22 + Amount(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/models/encounter.rs:23:11 [INFO] [stderr] | [INFO] [stderr] 23 | Range(u8, u8), [INFO] [stderr] | ----- ^^ ^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `EnemyAmount` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 23 - Range(u8, u8), [INFO] [stderr] 23 + Range((), ()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: type alias `AttackFunction` is never used [INFO] [stderr] --> src/models/attack_methods.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | pub type AttackFunction = dyn Fn(&mut ActorValues, &mut ActorValues) -> BattleEvent; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Skill` is never constructed [INFO] [stderr] --> src/models/models.rs:142:5 [INFO] [stderr] | [INFO] [stderr] 140 | pub enum BadResultType { [INFO] [stderr] | ------------- variant in this enum [INFO] [stderr] 141 | Damage, [INFO] [stderr] 142 | Skill, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BadResultType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `special_effect` is never read [INFO] [stderr] --> src/models/attack_options.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 2 | pub struct AttackDescription { [INFO] [stderr] | ----------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 7 | pub special_effect: String, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AttackDescription` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `source`, `target`, and `effect` are never read [INFO] [stderr] --> src/models/battle_events.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct BattleEvent { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 14 | pub title: String, [INFO] [stderr] 15 | pub source: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 16 | pub target: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 17 | pub effect: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BattleEvent` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `encounters` and `enemies` are never read [INFO] [stderr] --> src/data/game_data.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct GameData { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | encounters: Vec>, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 13 | enemies: Vec>, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `find_enemy_by_id` and `find_encounter_by_id` are never used [INFO] [stderr] --> src/data/game_data.rs:61:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl GameData { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 61 | pub fn find_enemy_by_id(&self, enemy_id: u16) -> Result, Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 65 | pub fn find_encounter_by_id(&self, encounter_id: u16) -> Result, Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `battle_handler` is never read [INFO] [stderr] --> src/game_handler.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct GameHandler { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 19 | battle_handler: Arc>, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_battle_handler` is never used [INFO] [stderr] --> src/game_handler.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 22 | impl GameHandler { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn get_battle_handler(&self) -> Arc> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `current_actor_index` is never read [INFO] [stderr] --> src/battle_handler.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct BattleHandler { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 10 | current_actor_index: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_current_actor` and `increase_actor_index` are never used [INFO] [stderr] --> src/battle_handler.rs:48:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl BattleHandler { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn get_current_actor(&self) -> Option>>{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | pub fn increase_actor_index(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `title` is never read [INFO] [stderr] --> src/views/components/message_block.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct MessageBlock<'a> { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 15 | title: Text<'a>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MessageBlock` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `battle_handler` is never read [INFO] [stderr] --> src/views/dungeon/battle_view.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct BattleView { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 24 | battle_handler: BattleHandler, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BasicMeleeFighter` is never constructed [INFO] [stderr] --> src/entities/enemies/basic_melee_fighter.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct BasicMeleeFighter { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `melee_attack` is never used [INFO] [stderr] --> src/entities/enemies/basic_melee_fighter.rs:19:4 [INFO] [stderr] | [INFO] [stderr] 19 | fn melee_attack(user: &mut ActorValues, target: &mut ActorValues) -> BattleEvent { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait method `selectAttack` should have a snake case name [INFO] [stderr] --> src/models/actor.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | fn selectAttack(&self) -> Box; [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `select_attack` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon_view.rs:104:28 [INFO] [stderr] | [INFO] [stderr] 104 | fn build_result_widget(&self, last_rewards: &Vec) -> Paragraph { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 104 | fn build_result_widget(&self, last_rewards: &Vec) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon_view.rs:137:29 [INFO] [stderr] | [INFO] [stderr] 137 | fn build_failure_widget(&self, last_bad_results: &Vec) -> Paragraph { [INFO] [stderr] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 137 | fn build_failure_widget(&self, last_bad_results: &Vec) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon_view.rs:165:29 [INFO] [stderr] | [INFO] [stderr] 165 | fn build_confirm_widget(&self) -> Paragraph { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 165 | fn build_confirm_widget(&self) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon_view.rs:183:20 [INFO] [stderr] | [INFO] [stderr] 183 | fn build_title(&self, title: &str) -> Paragraph { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 183 | fn build_title(&self, title: &str) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon_view.rs:191:19 [INFO] [stderr] | [INFO] [stderr] 191 | fn build_body(&self, text: &str) -> Paragraph { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 191 | fn build_body(&self, text: &str) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon_view.rs:198:28 [INFO] [stderr] | [INFO] [stderr] 198 | fn build_choice_widget(&self, choices: &[Choice]) -> Paragraph { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 198 | fn build_choice_widget(&self, choices: &[Choice]) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon_view.rs:224:20 [INFO] [stderr] | [INFO] [stderr] 224 | fn build_block(&self) -> Block { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 224 | fn build_block(&self) -> Block<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/menu_view.rs:43:20 [INFO] [stderr] | [INFO] [stderr] 43 | fn build_block(&self) -> Block { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 43 | fn build_block(&self) -> Block<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/character_view.rs:37:23 [INFO] [stderr] | [INFO] [stderr] 37 | fn build_overview(&self, xp: u16, hp: u16, hp_max: u16) -> Paragraph { [INFO] [stderr] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 37 | fn build_overview(&self, xp: u16, hp: u16, hp_max: u16) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/character_view.rs:58:28 [INFO] [stderr] | [INFO] [stderr] 58 | fn build_skill_section(&self, skill_list: &[Rc]) -> Paragraph { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 58 | fn build_skill_section(&self, skill_list: &[Rc]) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/character_view.rs:76:20 [INFO] [stderr] | [INFO] [stderr] 76 | fn build_block(&self) -> Block { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 76 | fn build_block(&self) -> Block<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/items_view.rs:94:24 [INFO] [stderr] | [INFO] [stderr] 94 | fn build_item_list(&self, item_list: &Vec>) -> List { [INFO] [stderr] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 94 | fn build_item_list(&self, item_list: &Vec>) -> List<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/items_view.rs:119:26 [INFO] [stderr] | [INFO] [stderr] 119 | fn build_item_detail(&self, item_list: &Vec>) -> Table { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 119 | fn build_item_detail(&self, item_list: &Vec>) -> Table<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/items_view.rs:156:29 [INFO] [stderr] | [INFO] [stderr] 156 | fn build_equipped_items(&self, item_list: &Vec>) -> Table { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 156 | fn build_equipped_items(&self, item_list: &Vec>) -> Table<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/items_view.rs:183:23 [INFO] [stderr] | [INFO] [stderr] 183 | fn build_item_row(&self, item: &Item) -> Row { [INFO] [stderr] | ^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 183 | fn build_item_row(&self, item: &Item) -> Row<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon/battle_view.rs:110:21 [INFO] [stderr] | [INFO] [stderr] 110 | fn render_image(&self) -> Paragraph { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 110 | fn render_image(&self) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon/battle_view.rs:139:26 [INFO] [stderr] | [INFO] [stderr] 139 | fn build_battle_menu(&self) -> List { [INFO] [stderr] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 139 | fn build_battle_menu(&self) -> List<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon/battle_view.rs:148:29 [INFO] [stderr] | [INFO] [stderr] 148 | fn build_battle_options(&self, options: &Vec) -> (Paragraph, Paragraph, Paragraph, Paragraph) { [INFO] [stderr] | ^^^^^ --------- --------- --------- --------- the lifetimes get resolved as `'_` [INFO] [stderr] | | | | | [INFO] [stderr] | | | | the lifetimes get resolved as `'_` [INFO] [stderr] | | | the lifetimes get resolved as `'_` [INFO] [stderr] | this lifetime flows to the output the lifetimes get resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 148 | fn build_battle_options(&self, options: &Vec) -> (Paragraph<'_>, Paragraph<'_>, Paragraph<'_>, Paragraph<'_>) { [INFO] [stderr] | ++++ ++++ ++++ ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon/battle_view.rs:157:26 [INFO] [stderr] | [INFO] [stderr] 157 | fn build_battle_tile(&self, key: &str, option: &AttackOption) -> Paragraph { [INFO] [stderr] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 157 | fn build_battle_tile(&self, key: &str, option: &AttackOption) -> Paragraph<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon/battle/battle_history.rs:24:18 [INFO] [stderr] | [INFO] [stderr] 24 | fn get_entry(&self, event: &BattleEvent) -> Spans { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 24 | fn get_entry(&self, event: &BattleEvent) -> Spans<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/views/dungeon/battle/battle_history.rs:30:25 [INFO] [stderr] | [INFO] [stderr] 30 | fn get_text_content(&self) -> Vec { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 30 | fn get_text_content(&self) -> Vec> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `rusty-dungeon` (bin "rusty-dungeon" test) generated 44 warnings (run `cargo fix --bin "rusty-dungeon" --tests` to apply 22 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rusty_dungeon-e6f677d325e6923c) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test battle_handler::tests::test_add_player ... ok [INFO] [stdout] test battle_handler::tests::test_add_enemy ... ok [INFO] [stdout] test battle_handler::tests::test_get_initiative ... ok [INFO] [stdout] test random::tests::test_guaranteed_successes ... ok [INFO] [stdout] test random::tests::test_roll ... ok [INFO] [stdout] test random::tests::test_check_fn ... ok [INFO] [stdout] test views::dungeon::battle::attack_helper::tests::test_damage_text ... ok [INFO] [stdout] test views::dungeon::battle::attack_helper::tests::test_damage_text_none ... ok [INFO] [stdout] test views::dungeon::battle::attack_helper::tests::test_damage_text_range ... ok [INFO] [stdout] test random::tests::test_guaranteed_fails ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "76e752d8a00d53690d5131797978cd92bd37d6bc624503e80b98dfe5aaa75a68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76e752d8a00d53690d5131797978cd92bd37d6bc624503e80b98dfe5aaa75a68", kill_on_drop: false }` [INFO] [stdout] 76e752d8a00d53690d5131797978cd92bd37d6bc624503e80b98dfe5aaa75a68