[INFO] cloning repository https://github.com/CJBuchel/Rust_SNMP
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CJBuchel/Rust_SNMP" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCJBuchel%2FRust_SNMP", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCJBuchel%2FRust_SNMP'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ce6a6afd4cb4868f21bb86cdb07cd7e0175d63af
[INFO] building CJBuchel/Rust_SNMP against try#334963c956d25708feab489a3816ae63f639355d for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCJBuchel%2FRust_SNMP" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/CJBuchel/Rust_SNMP on toolchain 334963c956d25708feab489a3816ae63f639355d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/CJBuchel/Rust_SNMP
[INFO] finished tweaking git repo https://github.com/CJBuchel/Rust_SNMP
[INFO] tweaked toml for git repo https://github.com/CJBuchel/Rust_SNMP written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/CJBuchel/Rust_SNMP 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" "+334963c956d25708feab489a3816ae63f639355d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a0fbdf5ff9987e566ea7de1f9e6b8a02498df9f5fa06da9487c3116f62a315e5
[INFO] running `Command { std: "docker" "start" "-a" "a0fbdf5ff9987e566ea7de1f9e6b8a02498df9f5fa06da9487c3116f62a315e5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a0fbdf5ff9987e566ea7de1f9e6b8a02498df9f5fa06da9487c3116f62a315e5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a0fbdf5ff9987e566ea7de1f9e6b8a02498df9f5fa06da9487c3116f62a315e5", kill_on_drop: false }`
[INFO] [stdout] a0fbdf5ff9987e566ea7de1f9e6b8a02498df9f5fa06da9487c3116f62a315e5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9d49dea0f81c61cf24cee3c4294c91c3fc1104226592b93923599d6644cea3b4
[INFO] running `Command { std: "docker" "start" "-a" "9d49dea0f81c61cf24cee3c4294c91c3fc1104226592b93923599d6644cea3b4", kill_on_drop: false }`
[INFO] [stderr]    Compiling snmp v0.2.2
[INFO] [stderr]    Compiling Rust_SNMP v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `NOT_PRESENT` should have an upper camel case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/PortState.rs:9:3
[INFO] [stdout]   |
[INFO] [stdout] 9 |   NOT_PRESENT,
[INFO] [stdout]   |   ^^^^^^^^^^^ help: convert the identifier to upper camel case: `NotPresent`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `LOWER_LAYER_DOWN` should have an upper camel case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/PortState.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout] 10 |   LOWER_LAYER_DOWN
[INFO] [stdout]    |   ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LowerLayerDown`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::PortState`
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/CiscoSwitch.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::PortState;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ObjectIdentifier`
[INFO] [stdout]  --> src/SwitchSNMP/Cat2960.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | use snmp::{Value, ObjectIdentifier};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let mut response = self.session.get(oid).unwrap();
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     let mut response = self.session.getnext(oid).unwrap();
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let mut response = self.session.getbulk(oids, non_repeaters, max_repetitions).unwrap();
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 42 |     let mut response = self._probe.getBulk(&[&CAT2960_VLAN_MEMBERSHIP], 0, numPorts);
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `addr` and `community` are never read
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:6:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct ProbeSNMP {
[INFO] [stdout]   |            --------- fields in this struct
[INFO] [stdout] 6 |   addr:  String,
[INFO] [stdout]   |   ^^^^
[INFO] [stdout] 7 |   community:  String,
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CISCO_SYSTEM_OID` is never used
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/CiscoSwitch.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const CISCO_SYSTEM_OID: [u32; 7] = [1,3,6,1,2,1,1,]; // base of oid tree (rise ye tarnished)
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `SwitchSNMP` should have a snake case name
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod SwitchSNMP;
[INFO] [stdout]   |     ^^^^^^^^^^ help: convert the identifier to snake case: `switch_snmp`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `SwitchBase` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/mod.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub mod SwitchBase;
[INFO] [stdout]   |         ^^^^^^^^^^ help: convert the identifier to snake case: `switch_base`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Cat2960` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub mod Cat2960;
[INFO] [stdout]   |         ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `cat2960`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Probe` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/mod.rs:1:9
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub mod Probe;
[INFO] [stdout]   |         ^^^^^ help: convert the identifier to snake case: `probe`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `PortState` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/mod.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub mod PortState;
[INFO] [stdout]   |         ^^^^^^^^^ help: convert the identifier to snake case: `port_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `CiscoSwitch` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub mod CiscoSwitch;
[INFO] [stdout]   |         ^^^^^^^^^^^ help: convert the identifier to snake case: `cisco_switch`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `ProbeSNMP` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/Probe/mod.rs:1:9
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub mod ProbeSNMP;
[INFO] [stdout]   |         ^^^^^^^^^ help: convert the identifier to snake case: `probe_snmp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getNext` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:39:10
[INFO] [stdout]    |
[INFO] [stdout] 39 |   pub fn getNext(&mut self, oid: &[u32]) -> SnmpPdu {
[INFO] [stdout]    |          ^^^^^^^ help: convert the identifier to snake case: `get_next`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getBulk` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:47:10
[INFO] [stdout]    |
[INFO] [stdout] 47 |   pub fn getBulk(&mut self, oids: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpPdu {
[INFO] [stdout]    |          ^^^^^^^ help: convert the identifier to snake case: `get_bulk`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `getState` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/PortState.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub fn getState(value:i32) -> State {
[INFO] [stdout]    |        ^^^^^^^^ help: convert the identifier to snake case: `get_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getDescription` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/CiscoSwitch.rs:30:10
[INFO] [stdout]    |
[INFO] [stdout] 30 |   pub fn getDescription(&mut self) -> String {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_description`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getInterfaces` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/CiscoSwitch.rs:43:10
[INFO] [stdout]    |
[INFO] [stdout] 43 |   pub fn getInterfaces(&mut self) -> u32 {
[INFO] [stdout]    |          ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_interfaces`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getPortStateID` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:20:10
[INFO] [stdout]    |
[INFO] [stdout] 20 |   pub fn getPortStateID(&mut self, oid:&[u32]) -> PortState::State {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_port_state_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getPortState` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 |   pub fn getPortState(&mut self, port:u32) -> PortState::State {
[INFO] [stdout]    |          ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_port_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `portID` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:30:15
[INFO] [stdout]    |
[INFO] [stdout] 30 |       let mut portID: [u32; 11] = [0; 11];
[INFO] [stdout]    |               ^^^^^^ help: convert the identifier to snake case: `port_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `portId` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let portId: [u32; 11] = {
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `port_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getPortStateVlan` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 |   pub fn getPortStateVlan(&mut self, vlan:u32) -> PortState::State {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_port_state_vlan`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numPorts` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let numPorts:u32 = self.base.getInterfaces();
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `num_ports`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `portNum` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:50:17
[INFO] [stdout]    |
[INFO] [stdout] 50 |             let portNum:u32 = split.last().unwrap().parse::<u32>().unwrap();
[INFO] [stdout]    |                 ^^^^^^^ help: convert the identifier to snake case: `port_num`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.10s
[INFO] running `Command { std: "docker" "inspect" "9d49dea0f81c61cf24cee3c4294c91c3fc1104226592b93923599d6644cea3b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9d49dea0f81c61cf24cee3c4294c91c3fc1104226592b93923599d6644cea3b4", kill_on_drop: false }`
[INFO] [stdout] 9d49dea0f81c61cf24cee3c4294c91c3fc1104226592b93923599d6644cea3b4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a0e71979dcf55a7a6a29f573e5dc455b87c97f13208bebf1bd7609da28fac683
[INFO] running `Command { std: "docker" "start" "-a" "a0e71979dcf55a7a6a29f573e5dc455b87c97f13208bebf1bd7609da28fac683", kill_on_drop: false }`
[INFO] [stderr]    Compiling Rust_SNMP v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `NOT_PRESENT` should have an upper camel case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/PortState.rs:9:3
[INFO] [stdout]   |
[INFO] [stdout] 9 |   NOT_PRESENT,
[INFO] [stdout]   |   ^^^^^^^^^^^ help: convert the identifier to upper camel case: `NotPresent`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `LOWER_LAYER_DOWN` should have an upper camel case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/PortState.rs:10:3
[INFO] [stdout]    |
[INFO] [stdout] 10 |   LOWER_LAYER_DOWN
[INFO] [stdout]    |   ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LowerLayerDown`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::PortState`
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/CiscoSwitch.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::PortState;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ObjectIdentifier`
[INFO] [stdout]  --> src/SwitchSNMP/Cat2960.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | use snmp::{Value, ObjectIdentifier};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let mut response = self.session.get(oid).unwrap();
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     let mut response = self.session.getnext(oid).unwrap();
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let mut response = self.session.getbulk(oids, non_repeaters, max_repetitions).unwrap();
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 42 |     let mut response = self._probe.getBulk(&[&CAT2960_VLAN_MEMBERSHIP], 0, numPorts);
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `addr` and `community` are never read
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:6:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct ProbeSNMP {
[INFO] [stdout]   |            --------- fields in this struct
[INFO] [stdout] 6 |   addr:  String,
[INFO] [stdout]   |   ^^^^
[INFO] [stdout] 7 |   community:  String,
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CISCO_SYSTEM_OID` is never used
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/CiscoSwitch.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const CISCO_SYSTEM_OID: [u32; 7] = [1,3,6,1,2,1,1,]; // base of oid tree (rise ye tarnished)
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `SwitchSNMP` should have a snake case name
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod SwitchSNMP;
[INFO] [stdout]   |     ^^^^^^^^^^ help: convert the identifier to snake case: `switch_snmp`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `SwitchBase` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/mod.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub mod SwitchBase;
[INFO] [stdout]   |         ^^^^^^^^^^ help: convert the identifier to snake case: `switch_base`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Cat2960` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub mod Cat2960;
[INFO] [stdout]   |         ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `cat2960`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Probe` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/mod.rs:1:9
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub mod Probe;
[INFO] [stdout]   |         ^^^^^ help: convert the identifier to snake case: `probe`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `PortState` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/mod.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub mod PortState;
[INFO] [stdout]   |         ^^^^^^^^^ help: convert the identifier to snake case: `port_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `CiscoSwitch` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub mod CiscoSwitch;
[INFO] [stdout]   |         ^^^^^^^^^^^ help: convert the identifier to snake case: `cisco_switch`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `ProbeSNMP` should have a snake case name
[INFO] [stdout]  --> src/SwitchSNMP/SwitchBase/Probe/mod.rs:1:9
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub mod ProbeSNMP;
[INFO] [stdout]   |         ^^^^^^^^^ help: convert the identifier to snake case: `probe_snmp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getNext` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:39:10
[INFO] [stdout]    |
[INFO] [stdout] 39 |   pub fn getNext(&mut self, oid: &[u32]) -> SnmpPdu {
[INFO] [stdout]    |          ^^^^^^^ help: convert the identifier to snake case: `get_next`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getBulk` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/Probe/ProbeSNMP.rs:47:10
[INFO] [stdout]    |
[INFO] [stdout] 47 |   pub fn getBulk(&mut self, oids: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpPdu {
[INFO] [stdout]    |          ^^^^^^^ help: convert the identifier to snake case: `get_bulk`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `getState` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/PortState.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub fn getState(value:i32) -> State {
[INFO] [stdout]    |        ^^^^^^^^ help: convert the identifier to snake case: `get_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getDescription` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/CiscoSwitch.rs:30:10
[INFO] [stdout]    |
[INFO] [stdout] 30 |   pub fn getDescription(&mut self) -> String {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_description`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getInterfaces` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/SwitchBase/CiscoSwitch.rs:43:10
[INFO] [stdout]    |
[INFO] [stdout] 43 |   pub fn getInterfaces(&mut self) -> u32 {
[INFO] [stdout]    |          ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_interfaces`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getPortStateID` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:20:10
[INFO] [stdout]    |
[INFO] [stdout] 20 |   pub fn getPortStateID(&mut self, oid:&[u32]) -> PortState::State {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_port_state_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getPortState` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 |   pub fn getPortState(&mut self, port:u32) -> PortState::State {
[INFO] [stdout]    |          ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_port_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `portID` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:30:15
[INFO] [stdout]    |
[INFO] [stdout] 30 |       let mut portID: [u32; 11] = [0; 11];
[INFO] [stdout]    |               ^^^^^^ help: convert the identifier to snake case: `port_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `portId` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let portId: [u32; 11] = {
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `port_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `getPortStateVlan` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 |   pub fn getPortStateVlan(&mut self, vlan:u32) -> PortState::State {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_port_state_vlan`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numPorts` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let numPorts:u32 = self.base.getInterfaces();
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `num_ports`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `portNum` should have a snake case name
[INFO] [stdout]   --> src/SwitchSNMP/Cat2960.rs:50:17
[INFO] [stdout]    |
[INFO] [stdout] 50 |             let portNum:u32 = split.last().unwrap().parse::<u32>().unwrap();
[INFO] [stdout]    |                 ^^^^^^^ help: convert the identifier to snake case: `port_num`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s
[INFO] running `Command { std: "docker" "inspect" "a0e71979dcf55a7a6a29f573e5dc455b87c97f13208bebf1bd7609da28fac683", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a0e71979dcf55a7a6a29f573e5dc455b87c97f13208bebf1bd7609da28fac683", kill_on_drop: false }`
[INFO] [stdout] a0e71979dcf55a7a6a29f573e5dc455b87c97f13208bebf1bd7609da28fac683
