[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#d2eadb7a94ef8c9deb5137695df33cd1fc5aee92 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftorbencarstens%2Fufw-parser" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/torbencarstens/ufw-parser on toolchain d2eadb7a94ef8c9deb5137695df33cd1fc5aee92 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "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-7-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" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9f529cff12bf8e1862aae950b04cfd63551c8efd375315f759af7fbd63f9e875 [INFO] running `Command { std: "docker" "start" "-a" "9f529cff12bf8e1862aae950b04cfd63551c8efd375315f759af7fbd63f9e875", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f529cff12bf8e1862aae950b04cfd63551c8efd375315f759af7fbd63f9e875", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f529cff12bf8e1862aae950b04cfd63551c8efd375315f759af7fbd63f9e875", kill_on_drop: false }` [INFO] [stdout] 9f529cff12bf8e1862aae950b04cfd63551c8efd375315f759af7fbd63f9e875 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d932a88d41163eefa6a26ff1fa7cc705a15da7a2d49072b58e9ab0443b84daa0 [INFO] running `Command { std: "docker" "start" "-a" "d932a88d41163eefa6a26ff1fa7cc705a15da7a2d49072b58e9ab0443b84daa0", 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 memchr v2.3.4 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Checking configparser v1.0.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking bitstring v0.1.1 [INFO] [stderr] Checking ini v1.3.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking pest v2.1.3 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling quote v1.0.7 [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: variants `V4` and `V6` are never constructed [INFO] [stdout] --> src/ufw.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum IpVersion { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 42 | V4, [INFO] [stdout] | ^^ [INFO] [stdout] 43 | V6, [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: fields `typ` and `direction` are never read [INFO] [stdout] --> src/ufw.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct UfwAction { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 48 | typ: RuleType, [INFO] [stdout] | ^^^ [INFO] [stdout] 49 | direction: RuleDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UfwAction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ufw.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct RuleEntry { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 95 | interface: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 96 | source_address: Option
, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 97 | destination_address: Option
, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | source_port: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | destination_port: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | proto: Protocol, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | ip_version: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 102 | number: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 103 | action: UfwAction, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuleEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] = note: `Ufw` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_rule`, `delete_rule`, and `submit` are never used [INFO] [stdout] --> src/ufw.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 240 | impl Ufw { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 241 | pub fn add_rule(&mut self, entry: RuleEntry) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn delete_rule(&mut self, entry_index: u16) -> Option<(RuleEntry, bool)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn submit(self) -> io::Result> { [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: 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: 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: variants `V4` and `V6` are never constructed [INFO] [stdout] --> src/ufw.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum IpVersion { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 42 | V4, [INFO] [stdout] | ^^ [INFO] [stdout] 43 | V6, [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: fields `typ` and `direction` are never read [INFO] [stdout] --> src/ufw.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct UfwAction { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 48 | typ: RuleType, [INFO] [stdout] | ^^^ [INFO] [stdout] 49 | direction: RuleDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UfwAction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ufw.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct RuleEntry { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 95 | interface: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 96 | source_address: Option
, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 97 | destination_address: Option
, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | source_port: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | destination_port: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | proto: Protocol, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | ip_version: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 102 | number: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 103 | action: UfwAction, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuleEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] = note: `Ufw` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_rule`, `delete_rule`, and `submit` are never used [INFO] [stdout] --> src/ufw.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 240 | impl Ufw { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 241 | pub fn add_rule(&mut self, entry: RuleEntry) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn delete_rule(&mut self, entry_index: u16) -> Option<(RuleEntry, bool)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn submit(self) -> io::Result> { [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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.65s [INFO] running `Command { std: "docker" "inspect" "d932a88d41163eefa6a26ff1fa7cc705a15da7a2d49072b58e9ab0443b84daa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d932a88d41163eefa6a26ff1fa7cc705a15da7a2d49072b58e9ab0443b84daa0", kill_on_drop: false }` [INFO] [stdout] d932a88d41163eefa6a26ff1fa7cc705a15da7a2d49072b58e9ab0443b84daa0