[INFO] cloning repository https://github.com/kevindadi/rust-pn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kevindadi/rust-pn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevindadi%2Frust-pn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevindadi%2Frust-pn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76596370c574e8b4f55a7f296385f84380b56115 [INFO] linting kevindadi/rust-pn against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevindadi%2Frust-pn" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 58% (753/1278) Updating files: 59% (755/1278) Updating files: 60% (767/1278) Updating files: 61% (780/1278) Updating files: 62% (793/1278) Updating files: 62% (800/1278) Updating files: 63% (806/1278) Updating files: 64% (818/1278) Updating files: 65% (831/1278) Updating files: 66% (844/1278) Updating files: 67% (857/1278) Updating files: 68% (870/1278) Updating files: 69% (882/1278) Updating files: 70% (895/1278) Updating files: 71% (908/1278) Updating files: 72% (921/1278) Updating files: 73% (933/1278) Updating files: 74% (946/1278) Updating files: 75% (959/1278) Updating files: 76% (972/1278) Updating files: 77% (985/1278) Updating files: 78% (997/1278) Updating files: 79% (1010/1278) Updating files: 80% (1023/1278) Updating files: 81% (1036/1278) Updating files: 82% (1048/1278) Updating files: 83% (1061/1278) Updating files: 84% (1074/1278) Updating files: 85% (1087/1278) Updating files: 86% (1100/1278) Updating files: 87% (1112/1278) Updating files: 88% (1125/1278) Updating files: 89% (1138/1278) Updating files: 90% (1151/1278) Updating files: 91% (1163/1278) Updating files: 92% (1176/1278) Updating files: 93% (1189/1278) Updating files: 94% (1202/1278) Updating files: 95% (1215/1278) Updating files: 96% (1227/1278) Updating files: 97% (1240/1278) Updating files: 98% (1253/1278) Updating files: 99% (1266/1278) Updating files: 100% (1278/1278) Updating files: 100% (1278/1278), done. [INFO] started tweaking git repo https://github.com/kevindadi/rust-pn [INFO] finished tweaking git repo https://github.com/kevindadi/rust-pn [INFO] tweaked toml for git repo https://github.com/kevindadi/rust-pn written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kevindadi/rust-pn on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kevindadi/rust-pn 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded is-terminal v0.4.16 [INFO] [stderr] Downloaded clap v4.5.32 [INFO] [stderr] Downloaded hermit-abi v0.5.0 [INFO] [stderr] Downloaded zerocopy-derive v0.8.23 [INFO] [stderr] Downloaded once_cell v1.21.0 [INFO] [stderr] Downloaded clap_builder v4.5.32 [INFO] [stderr] Downloaded zerocopy v0.8.23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e97bc19ddac4d8a0755ab25278753dd963ef769b7cd61ba03353ee4aa43c6cfb [INFO] running `Command { std: "docker" "start" "-a" "e97bc19ddac4d8a0755ab25278753dd963ef769b7cd61ba03353ee4aa43c6cfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e97bc19ddac4d8a0755ab25278753dd963ef769b7cd61ba03353ee4aa43c6cfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e97bc19ddac4d8a0755ab25278753dd963ef769b7cd61ba03353ee4aa43c6cfb", kill_on_drop: false }` [INFO] [stdout] e97bc19ddac4d8a0755ab25278753dd963ef769b7cd61ba03353ee4aa43c6cfb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4381247d09d7eeab13830a6a37f831691307ae2c615fec4cb7b0ae4e9dcb6bd [INFO] running `Command { std: "docker" "start" "-a" "f4381247d09d7eeab13830a6a37f831691307ae2c615fec4cb7b0ae4e9dcb6bd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking once_cell v1.21.0 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking indexmap v2.8.0 [INFO] [stderr] Checking clap_builder v4.5.32 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking clap v4.5.32 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking petri_net v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NodeType as TimedNodeType` [INFO] [stdout] --> src/priority.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | ArcWeight, NodeType as TimedNodeType, TimeType, TimedPlace, TimedToken, TimedTransition, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/reachability.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/priority.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::traits::{PetriNet, Place, Token, Transition}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/colored.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | fn new(value: u64) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/colored.rs:648:28 [INFO] [stdout] | [INFO] [stdout] 648 | for (place_idx, _, weight) in &input_arcs { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | if !self.graph.node_weight(place).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(place).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 262 | if !self.graph.node_weight(transition).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(transition).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | if !self.graph.node_weight(place).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(place).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:309:12 [INFO] [stdout] | [INFO] [stdout] 309 | if !self.graph.node_weight(transition).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(transition).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:343:12 [INFO] [stdout] | [INFO] [stdout] 343 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:360:12 [INFO] [stdout] | [INFO] [stdout] 360 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:377:12 [INFO] [stdout] | [INFO] [stdout] 377 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:394:12 [INFO] [stdout] | [INFO] [stdout] 394 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/basic.rs:512:27 [INFO] [stdout] | [INFO] [stdout] 512 | let enabled = match self.is_transition_enabled(transition_idx) { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 513 | | Ok(enabled) => enabled, [INFO] [stdout] 514 | | Err(_) => false, [INFO] [stdout] 515 | | }; [INFO] [stdout] | |_____________^ help: ascribe the type bool and replace your expression with: `self.is_transition_enabled(transition_idx).unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:461:12 [INFO] [stdout] | [INFO] [stdout] 461 | if !self.graph.node_weight(place).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(place).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | if !self.graph.node_weight(transition).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(transition).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 508 | if !self.graph.node_weight(place).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(place).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:514:12 [INFO] [stdout] | [INFO] [stdout] 514 | if !self.graph.node_weight(transition).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(transition).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:548:12 [INFO] [stdout] | [INFO] [stdout] 548 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:565:12 [INFO] [stdout] | [INFO] [stdout] 565 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:582:12 [INFO] [stdout] | [INFO] [stdout] 582 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:598:12 [INFO] [stdout] | [INFO] [stdout] 598 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/colored.rs:729:27 [INFO] [stdout] | [INFO] [stdout] 729 | let enabled = match self.is_transition_enabled(transition_idx) { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 730 | | Ok(enabled) => enabled, [INFO] [stdout] 731 | | Err(_) => false, [INFO] [stdout] 732 | | }; [INFO] [stdout] | |_____________^ help: ascribe the type bool and replace your expression with: `self.is_transition_enabled(transition_idx).unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/priority.rs:292:27 [INFO] [stdout] | [INFO] [stdout] 292 | let enabled = match self.is_transition_enabled(transition_idx) { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 293 | | Ok(enabled) => enabled, [INFO] [stdout] 294 | | Err(_) => false, [INFO] [stdout] 295 | | }; [INFO] [stdout] | |_____________^ help: ascribe the type bool and replace your expression with: `self.is_transition_enabled(transition_idx).unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/timed.rs:501:27 [INFO] [stdout] | [INFO] [stdout] 501 | let enabled = match self.is_transition_enabled(transition_idx) { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 502 | | Ok(enabled) => enabled, [INFO] [stdout] 503 | | Err(_) => false, [INFO] [stdout] 504 | | }; [INFO] [stdout] | |_____________^ help: ascribe the type bool and replace your expression with: `self.is_transition_enabled(transition_idx).unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stdout] warning: unused import: `BasicToken` [INFO] [stdout] --> examples/basic_example.rs:1:51 [INFO] [stdout] | [INFO] [stdout] 1 | use petri_net::basic::{BasicPetriNet, BasicPlace, BasicToken, BasicTransition}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> examples/basic_example.rs:2:42 [INFO] [stdout] | [INFO] [stdout] 2 | use petri_net::traits::{PetriNet, Place, Token, Transition}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Place` [INFO] [stdout] --> examples/basic_example.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use petri_net::traits::{PetriNet, Place, Token, Transition}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeType as TimedNodeType` [INFO] [stdout] --> src/priority.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | ArcWeight, NodeType as TimedNodeType, TimeType, TimedPlace, TimedToken, TimedTransition, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/reachability.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/priority.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::traits::{PetriNet, Place, Token, Transition}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/colored.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | fn new(value: u64) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weight` [INFO] [stdout] --> src/colored.rs:648:28 [INFO] [stdout] | [INFO] [stdout] 648 | for (place_idx, _, weight) in &input_arcs { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | if !self.graph.node_weight(place).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(place).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 262 | if !self.graph.node_weight(transition).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(transition).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | if !self.graph.node_weight(place).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(place).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:309:12 [INFO] [stdout] | [INFO] [stdout] 309 | if !self.graph.node_weight(transition).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(transition).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:343:12 [INFO] [stdout] | [INFO] [stdout] 343 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:360:12 [INFO] [stdout] | [INFO] [stdout] 360 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:377:12 [INFO] [stdout] | [INFO] [stdout] 377 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/basic.rs:394:12 [INFO] [stdout] | [INFO] [stdout] 394 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/basic.rs:512:27 [INFO] [stdout] | [INFO] [stdout] 512 | let enabled = match self.is_transition_enabled(transition_idx) { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 513 | | Ok(enabled) => enabled, [INFO] [stdout] 514 | | Err(_) => false, [INFO] [stdout] 515 | | }; [INFO] [stdout] | |_____________^ help: ascribe the type bool and replace your expression with: `self.is_transition_enabled(transition_idx).unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:461:12 [INFO] [stdout] | [INFO] [stdout] 461 | if !self.graph.node_weight(place).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(place).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | if !self.graph.node_weight(transition).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(transition).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 508 | if !self.graph.node_weight(place).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(place).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:514:12 [INFO] [stdout] | [INFO] [stdout] 514 | if !self.graph.node_weight(transition).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(transition).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:548:12 [INFO] [stdout] | [INFO] [stdout] 548 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:565:12 [INFO] [stdout] | [INFO] [stdout] 565 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:582:12 [INFO] [stdout] | [INFO] [stdout] 582 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/colored.rs:598:12 [INFO] [stdout] | [INFO] [stdout] 598 | if !self.graph.node_weight(index).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.graph.node_weight(index).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/colored.rs:729:27 [INFO] [stdout] | [INFO] [stdout] 729 | let enabled = match self.is_transition_enabled(transition_idx) { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 730 | | Ok(enabled) => enabled, [INFO] [stdout] 731 | | Err(_) => false, [INFO] [stdout] 732 | | }; [INFO] [stdout] | |_____________^ help: ascribe the type bool and replace your expression with: `self.is_transition_enabled(transition_idx).unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/priority.rs:292:27 [INFO] [stdout] | [INFO] [stdout] 292 | let enabled = match self.is_transition_enabled(transition_idx) { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 293 | | Ok(enabled) => enabled, [INFO] [stdout] 294 | | Err(_) => false, [INFO] [stdout] 295 | | }; [INFO] [stdout] | |_____________^ help: ascribe the type bool and replace your expression with: `self.is_transition_enabled(transition_idx).unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/timed.rs:501:27 [INFO] [stdout] | [INFO] [stdout] 501 | let enabled = match self.is_transition_enabled(transition_idx) { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 502 | | Ok(enabled) => enabled, [INFO] [stdout] 503 | | Err(_) => false, [INFO] [stdout] 504 | | }; [INFO] [stdout] | |_____________^ help: ascribe the type bool and replace your expression with: `self.is_transition_enabled(transition_idx).unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.16s [INFO] running `Command { std: "docker" "inspect" "f4381247d09d7eeab13830a6a37f831691307ae2c615fec4cb7b0ae4e9dcb6bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4381247d09d7eeab13830a6a37f831691307ae2c615fec4cb7b0ae4e9dcb6bd", kill_on_drop: false }` [INFO] [stdout] f4381247d09d7eeab13830a6a37f831691307ae2c615fec4cb7b0ae4e9dcb6bd