[INFO] cloning repository https://github.com/torbencarstens/ufw-parser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/torbencarstens/ufw-parser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftorbencarstens%2Fufw-parser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftorbencarstens%2Fufw-parser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a500831a515228ea4ccc7e834f0f7fac51829c10 [INFO] checking torbencarstens/ufw-parser against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftorbencarstens%2Fufw-parser" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/torbencarstens/ufw-parser on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/torbencarstens/ufw-parser [INFO] finished tweaking git repo https://github.com/torbencarstens/ufw-parser [INFO] tweaked toml for git repo https://github.com/torbencarstens/ufw-parser written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/torbencarstens/ufw-parser 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking torbencarstens/ufw-parser against try#d856f2da3433420b7077c0dc7ee9441455bc1302 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftorbencarstens%2Fufw-parser" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/torbencarstens/ufw-parser on toolchain d856f2da3433420b7077c0dc7ee9441455bc1302 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/torbencarstens/ufw-parser [INFO] finished tweaking git repo https://github.com/torbencarstens/ufw-parser [INFO] tweaked toml for git repo https://github.com/torbencarstens/ufw-parser written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/torbencarstens/ufw-parser 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" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitstring v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc0a28cc2ddb587976986ccef7d51e98f1cf6612b72d090a2ec373b8bfd113a7 [INFO] running `Command { std: "docker" "start" "-a" "cc0a28cc2ddb587976986ccef7d51e98f1cf6612b72d090a2ec373b8bfd113a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc0a28cc2ddb587976986ccef7d51e98f1cf6612b72d090a2ec373b8bfd113a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc0a28cc2ddb587976986ccef7d51e98f1cf6612b72d090a2ec373b8bfd113a7", kill_on_drop: false }` [INFO] [stdout] cc0a28cc2ddb587976986ccef7d51e98f1cf6612b72d090a2ec373b8bfd113a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2ec3b37e45afa296c959107401ec39b706b8dcf46d841a6502fde95ddb930ff0 [INFO] running `Command { std: "docker" "start" "-a" "2ec3b37e45afa296c959107401ec39b706b8dcf46d841a6502fde95ddb930ff0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking configparser v1.0.0 [INFO] [stderr] Checking ini v1.3.0 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking bitstring v0.1.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Checking toml v0.5.7 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking thiserror v1.0.22 [INFO] [stderr] Checking ufw_auto_block v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/ufw.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/ufw.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use anyhow::{Context, Error, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Captures` [INFO] [stdout] --> src/ufw.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use regex::{Captures, Regex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/ufw.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/ufw.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use anyhow::{Context, Error, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Captures` [INFO] [stdout] --> src/ufw.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use regex::{Captures, Regex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `str_split_once` has been stable since 1.52.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(str_split_once)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `str_split_once` has been stable since 1.52.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(str_split_once)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_message` [INFO] [stdout] --> src/ufw.rs:388:25 [INFO] [stdout] | [INFO] [stdout] 388 | let error_message = format!("Couldn't find a valid logging level {}", text); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_message` [INFO] [stdout] --> src/ufw.rs:388:25 [INFO] [stdout] | [INFO] [stdout] 388 | let error_message = format!("Couldn't find a valid logging level {}", text); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_after_times` is never read [INFO] [stdout] --> src/config.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | block_after_times: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, 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: variants `AH`, `ESP`, `GRE`, `IPV6`, `IGMP`, and `ANY` are never constructed [INFO] [stdout] --> src/ufw.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Protocol { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | AH, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | ESP, [INFO] [stdout] | ^^^ [INFO] [stdout] 22 | GRE, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | IPV6, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | IGMP, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | ANY, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Protocol` 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: enum `IpVersion` is never used [INFO] [stdout] --> src/ufw.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum IpVersion { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpVersion` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UfwAction` is never constructed [INFO] [stdout] --> src/ufw.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct UfwAction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RuleEntry` is never constructed [INFO] [stdout] --> src/ufw.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct RuleEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `source_address_string` is never used [INFO] [stdout] --> src/ufw.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl RuleEntry { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 107 | fn source_address_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReportFormats` is never used [INFO] [stdout] --> src/ufw.rs:188:10 [INFO] [stdout] | [INFO] [stdout] 188 | pub enum ReportFormats { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReportFormats` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ufw` is never constructed [INFO] [stdout] --> src/ufw.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | pub struct Ufw { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `number`, `end_number`, and `protocols` are never read [INFO] [stdout] --> src/ufw.rs:269:16 [INFO] [stdout] | [INFO] [stdout] 268 | pub(crate) struct UfwPort { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 269 | pub(crate) number: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 270 | pub(crate) end_number: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 271 | pub(crate) protocols: Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UfwPort` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineNumberRuleEntry` is never constructed [INFO] [stdout] --> src/ufw.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | struct LineNumberRuleEntry {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineNumberField` is never constructed [INFO] [stdout] --> src/ufw.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | struct LineNumberField { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse_action` is never used [INFO] [stdout] --> src/ufw.rs:300:8 [INFO] [stdout] | [INFO] [stdout] 287 | impl UfwCommand { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 300 | fn parse_action(arguments: Vec<&str>) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `title`, `description`, and `ports` are never read [INFO] [stdout] --> src/application.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ApplicationEntry { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 13 | pub(crate) name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub(crate) title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub(crate) description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | pub(crate) ports: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApplicationEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filepath` and `entries` are never read [INFO] [stdout] --> src/application.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct Application { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 114 | pub(crate) filepath: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 115 | pub(crate) entries: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Application` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr`, `cidr`, `port`, and `protocol` are never read [INFO] [stdout] --> src/numbered.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct Address { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 93 | addr: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 94 | cidr: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | port: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | protocol: Protocol, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Address` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `to`, `v6`, `action`, `device`, and `from` are never read [INFO] [stdout] --> src/numbered.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct Line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 146 | index: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 147 | to: Address, [INFO] [stdout] | ^^ [INFO] [stdout] 148 | v6: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 149 | action: Element, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 150 | device: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 151 | from: Address, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_after_times` is never read [INFO] [stdout] --> src/config.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | block_after_times: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, 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: variants `AH`, `ESP`, `GRE`, `IPV6`, `IGMP`, and `ANY` are never constructed [INFO] [stdout] --> src/ufw.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Protocol { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | AH, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | ESP, [INFO] [stdout] | ^^^ [INFO] [stdout] 22 | GRE, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | IPV6, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | IGMP, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | ANY, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Protocol` 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: enum `IpVersion` is never used [INFO] [stdout] --> src/ufw.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum IpVersion { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpVersion` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UfwAction` is never constructed [INFO] [stdout] --> src/ufw.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct UfwAction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RuleEntry` is never constructed [INFO] [stdout] --> src/ufw.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct RuleEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `source_address_string` is never used [INFO] [stdout] --> src/ufw.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl RuleEntry { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 107 | fn source_address_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReportFormats` is never used [INFO] [stdout] --> src/ufw.rs:188:10 [INFO] [stdout] | [INFO] [stdout] 188 | pub enum ReportFormats { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReportFormats` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ufw` is never constructed [INFO] [stdout] --> src/ufw.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | pub struct Ufw { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `number`, `end_number`, and `protocols` are never read [INFO] [stdout] --> src/ufw.rs:269:16 [INFO] [stdout] | [INFO] [stdout] 268 | pub(crate) struct UfwPort { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 269 | pub(crate) number: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 270 | pub(crate) end_number: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 271 | pub(crate) protocols: Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UfwPort` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineNumberRuleEntry` is never constructed [INFO] [stdout] --> src/ufw.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | struct LineNumberRuleEntry {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineNumberField` is never constructed [INFO] [stdout] --> src/ufw.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | struct LineNumberField { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse_action` is never used [INFO] [stdout] --> src/ufw.rs:300:8 [INFO] [stdout] | [INFO] [stdout] 287 | impl UfwCommand { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 300 | fn parse_action(arguments: Vec<&str>) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `title`, `description`, and `ports` are never read [INFO] [stdout] --> src/application.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ApplicationEntry { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 13 | pub(crate) name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub(crate) title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub(crate) description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | pub(crate) ports: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApplicationEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filepath` and `entries` are never read [INFO] [stdout] --> src/application.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct Application { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 114 | pub(crate) filepath: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 115 | pub(crate) entries: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Application` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse` [INFO] [stdout] --> src/main.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use ufw_auto_block::{parse, ParseResult}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `regex` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let regex = Regex::new(r"\[\s*(\d+)](.*)").unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_regex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse` [INFO] [stdout] --> src/main.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use ufw_auto_block::{parse, ParseResult}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr`, `cidr`, `port`, and `protocol` are never read [INFO] [stdout] --> src/numbered.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct Address { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 93 | addr: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 94 | cidr: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | port: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | protocol: Protocol, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Address` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `to`, `v6`, `action`, `device`, and `from` are never read [INFO] [stdout] --> src/numbered.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct Line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 146 | index: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 147 | to: Address, [INFO] [stdout] | ^^ [INFO] [stdout] 148 | v6: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 149 | action: Element, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 150 | device: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 151 | from: Address, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `regex` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let regex = Regex::new(r"\[\s*(\d+)](.*)").unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_regex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.17s [INFO] running `Command { std: "docker" "inspect" "2ec3b37e45afa296c959107401ec39b706b8dcf46d841a6502fde95ddb930ff0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ec3b37e45afa296c959107401ec39b706b8dcf46d841a6502fde95ddb930ff0", kill_on_drop: false }` [INFO] [stdout] 2ec3b37e45afa296c959107401ec39b706b8dcf46d841a6502fde95ddb930ff0