[INFO] cloning repository https://github.com/nk7540/atcoder_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nk7540/atcoder_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnk7540%2Fatcoder_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnk7540%2Fatcoder_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 61abc96b351af27d9b58d5effd3eae90429bf489 [INFO] linting nk7540/atcoder_rust against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnk7540%2Fatcoder_rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nk7540/atcoder_rust [INFO] finished tweaking git repo https://github.com/nk7540/atcoder_rust [INFO] tweaked toml for git repo https://github.com/nk7540/atcoder_rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nk7540/atcoder_rust 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/nk7540/atcoder_rust 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] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_xoshiro v0.4.0 [INFO] [stderr] Downloaded text_io v0.1.8 [INFO] [stderr] Downloaded cli_test_dir v0.1.7 [INFO] [stderr] Downloaded num-derive v0.3.0 [INFO] [stderr] Downloaded whiteread v0.5.0 [INFO] [stderr] Downloaded ascii v1.0.0 [INFO] [stderr] Downloaded sized-chunks v0.5.3 [INFO] [stderr] Downloaded nalgebra v0.20.0 [INFO] [stderr] Downloaded petgraph v0.5.0 [INFO] [stderr] Downloaded im-rc v14.3.0 [INFO] [stderr] Downloaded ndarray v0.13.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 9112dc76744651392bcb90b3af3696806fda600c22ff43798feb61b3f95906b6 [INFO] running `Command { std: "docker" "start" "-a" "9112dc76744651392bcb90b3af3696806fda600c22ff43798feb61b3f95906b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9112dc76744651392bcb90b3af3696806fda600c22ff43798feb61b3f95906b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9112dc76744651392bcb90b3af3696806fda600c22ff43798feb61b3f95906b6", kill_on_drop: false }` [INFO] [stdout] 9112dc76744651392bcb90b3af3696806fda600c22ff43798feb61b3f95906b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 051cbde6321776daf886498aadbb933ad3faf67daef25c352068452195bf79a7 [INFO] running `Command { std: "docker" "start" "-a" "051cbde6321776daf886498aadbb933ad3faf67daef25c352068452195bf79a7", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Compiling im-rc v14.3.0 [INFO] [stderr] Checking memchr v2.5.0 [INFO] [stderr] Compiling ndarray v0.13.0 [INFO] [stderr] Compiling proconio-derive v0.1.9 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking fixedbitset v0.2.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Checking generic-array v0.13.3 [INFO] [stderr] Checking rand_pcg v0.2.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking rand_xoshiro v0.4.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking proconio v0.3.6 [INFO] [stderr] Checking alga v0.9.3 [INFO] [stderr] Checking itertools-num v0.1.3 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking sized-chunks v0.5.3 [INFO] [stderr] Checking rand_hc v0.2.0 [INFO] [stderr] Checking petgraph v0.5.0 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking ascii v1.0.0 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking whiteread v0.5.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking nalgebra v0.20.0 [INFO] [stderr] Checking text_io v0.1.8 [INFO] [stderr] Checking superslice v1.0.0 [INFO] [stderr] Checking smallvec v1.2.0 [INFO] [stderr] Checking bitset-fixed v0.1.0 [INFO] [stderr] Checking cli_test_dir v0.1.7 [INFO] [stderr] Checking regex v1.3.6 [INFO] [stderr] Checking permutohedron v0.2.4 [INFO] [stderr] Compiling num-derive v0.3.0 [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dfs/arc031b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/arc/163/c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 9 | | [INFO] [stdout] | |_^ [INFO] [stdout] 10 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/d.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 6 | | [INFO] [stdout] | |_^ [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/binary/abc077c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc079c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dfs/atc001a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_b.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | let mut dp = vec![std::i32::MAX; n]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 13 - let mut dp = vec![std::i32::MAX; n]; [INFO] [stdout] 13 + let mut dp = vec![i32::MAX; n]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `c` [INFO] [stdout] --> src/contest/beginners_selection/dfs/atc001a.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | for i in 0..h { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 14 - for i in 0..h { [INFO] [stdout] 14 + for (i, ) in c.iter().enumerate().take(h) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is used to index `c` [INFO] [stdout] --> src/contest/beginners_selection/dfs/atc001a.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | for j in 0..w { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 15 - for j in 0..w { [INFO] [stdout] 15 + for (j, ) in c.iter().enumerate().take(w) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/arc/163/b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 6 | | [INFO] [stdout] | |_^ [INFO] [stdout] 7 | const INF: i32 = std::i32::MIN / 3; [INFO] [stdout] | --------- the attribute applies to this constant item [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/binary/joi2009hob.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_c.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | const INF: i32 = std::i32::MIN / 3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 7 - const INF: i32 = std::i32::MIN / 3; [INFO] [stdout] 7 + const INF: i32 = i32::MIN / 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/bfs/agc033a.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | const INF: usize = std::usize::MAX; [INFO] [stdout] | --------- the attribute applies to this constant item [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/agc033a.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | const INF: usize = std::usize::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 9 - const INF: usize = std::usize::MAX; [INFO] [stdout] 9 + const INF: usize = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc075b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc095c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc085b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/e.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/arc029a.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 5 | | [INFO] [stdout] | |_^ [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/arc029a.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | let mut min_time = u32::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 12 - let mut min_time = u32::max_value(); [INFO] [stdout] 12 + let mut min_time = u32::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `t` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/arc029a.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | for i in 0..n { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 17 - for i in 0..n { [INFO] [stdout] 17 + for (i, ) in t.iter().enumerate().take(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc007c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] 11 | const INF: usize = usize::max_value(); [INFO] [stdout] | --------- the attribute applies to this constant item [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc007c.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | const INF: usize = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 11 - const INF: usize = usize::max_value(); [INFO] [stdout] 11 + const INF: usize = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/f.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/playground/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/contest/abc309/b.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | for i in (0..n - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - for i in (0..n - 1) { [INFO] [stdout] 19 + for i in 0..n - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `b` [INFO] [stdout] --> src/contest/abc309/b.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | for i in 0..n { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 22 - for i in 0..n { [INFO] [stdout] 22 + for in b.iter().take(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/binary/abc077c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/contest/abc309/d.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::VecDeque, ops::Index}; [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 imports: `Graph`, `graph::NodeIndex`, and `visit::Bfs` [INFO] [stdout] --> src/contest/abc309/d.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use petgraph::{graph::NodeIndex, visit::Bfs, Graph}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/d.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn bfs(s: usize, n: usize, adj_list: &[Vec]) -> u32 { [INFO] [stdout] | ------ the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc085c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/abc309/d.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | let mut dist = vec![std::u32::MAX; n]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 16 - let mut dist = vec![std::u32::MAX; n]; [INFO] [stdout] 16 + let mut dist = vec![u32::MAX; n]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/abc309/d.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | if dist[adj] == std::u32::MAX { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 22 - if dist[adj] == std::u32::MAX { [INFO] [stdout] 22 + if dist[adj] == u32::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/b.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/arc/163/b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc088b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/contest/abc310/b.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | m: usize, // 1 <= c <= m [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/arc/163/a.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 5 | | [INFO] [stdout] | |_^ [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/contest/arc/163/a.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | if (is_ordered(&s[..i], &s[i..])) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (is_ordered(&s[..i], &s[i..])) { [INFO] [stdout] 15 + if is_ordered(&s[..i], &s[i..]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/bfs/agc033a.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | const INF: usize = std::usize::MAX; [INFO] [stdout] | --------- the attribute applies to this constant item [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 6 | | [INFO] [stdout] | |_^ [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/agc033a.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | const INF: usize = std::usize::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 9 - const INF: usize = std::usize::MAX; [INFO] [stdout] 9 + const INF: usize = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/joi2007hoc.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 9 | | [INFO] [stdout] | |_^ [INFO] [stdout] 10 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_b.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | let mut dp = vec![std::i32::MAX; n]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 13 - let mut dp = vec![std::i32::MAX; n]; [INFO] [stdout] 13 + let mut dp = vec![i32::MAX; n]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/arc/163/d.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | let mut dist = vec![vec![std::usize::MAX; w]; h]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 22 - let mut dist = vec![vec![std::usize::MAX; w]; h]; [INFO] [stdout] 22 + let mut dist = vec![vec![usize::MAX; w]; h]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | && dist[nx][ny] == std::usize::MAX [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 31 - && dist[nx][ny] == std::usize::MAX [INFO] [stdout] 31 + && dist[nx][ny] == usize::MAX [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | let ans = if dist[h - 1][w - 1] == std::usize::MAX { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 39 - let ans = if dist[h - 1][w - 1] == std::usize::MAX { [INFO] [stdout] 39 + let ans = if dist[h - 1][w - 1] == usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `dxy` should have an upper case name [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | const dxy: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 20 - const dxy: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] 20 + const DXY: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc075b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/sumitb2019d.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/sumitb2019d.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] 11 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/sumitb2019d.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/sumitb2019d.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | .map(|i| rand::thread_rng().gen_range(0, 10).to_string()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc079c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/sumitb2019d.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | cmd.output_with_stdin(format!("{} {}", n, s)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = cmd.output_with_stdin(format!("{} {}", n, s)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/arc029a.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 5 | | [INFO] [stdout] | |_^ [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 5 | | [INFO] [stdout] | |_^ [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if !(largest_unsummed < d) || sum >= g { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(largest_unsummed >= d)` [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: usage of a legacy numeric method [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/arc029a.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | let mut min_time = u32::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 12 - let mut min_time = u32::max_value(); [INFO] [stdout] 12 + let mut min_time = u32::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `t` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/arc029a.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | for i in 0..n { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 17 - for i in 0..n { [INFO] [stdout] 17 + for (i, ) in t.iter().enumerate().take(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/contest/abc311/c.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/c.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] 11 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | let mut res = u32::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 12 - let mut res = u32::max_value(); [INFO] [stdout] 12 + let mut res = u32::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | let mut largest_unsummed = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 17 - let mut largest_unsummed = usize::max_value(); [INFO] [stdout] 17 + let mut largest_unsummed = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `pc` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | for i in 0..d { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 18 - for i in 0..d { [INFO] [stdout] 18 + for (i, ) in pc.iter().enumerate().take(d) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manually reimplementing `div_ceil` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | (g - sum + (largest_unsummed_point - 1)) / largest_unsummed_point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `(g - sum).div_ceil(largest_unsummed_point)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil [INFO] [stdout] = note: `#[warn(clippy::manual_div_ceil)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proconio::input` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use proconio::input; [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: `ops::Index` [INFO] [stdout] --> src/contest/abc309/d.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::VecDeque, ops::Index}; [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 imports: `Graph`, `graph::NodeIndex`, and `visit::Bfs` [INFO] [stdout] --> src/contest/abc309/d.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use petgraph::{graph::NodeIndex, visit::Bfs, Graph}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/d.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn bfs(s: usize, n: usize, adj_list: &[Vec]) -> u32 { [INFO] [stdout] | ------ the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc083b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/b.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/abc309/d.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | let mut dist = vec![std::u32::MAX; n]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 16 - let mut dist = vec![std::u32::MAX; n]; [INFO] [stdout] 16 + let mut dist = vec![u32::MAX; n]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/abc309/d.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | if dist[adj] == std::u32::MAX { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 22 - if dist[adj] == std::u32::MAX { [INFO] [stdout] 22 + if dist[adj] == u32::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/contest/abc310/b.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | m: usize, // 1 <= c <= m [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | let mut dist = vec![vec![std::usize::MAX; w]; h]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 22 - let mut dist = vec![vec![std::usize::MAX; w]; h]; [INFO] [stdout] 22 + let mut dist = vec![vec![usize::MAX; w]; h]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | && dist[nx][ny] == std::usize::MAX [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 31 - && dist[nx][ny] == std::usize::MAX [INFO] [stdout] 31 + && dist[nx][ny] == usize::MAX [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | let ans = if dist[h - 1][w - 1] == std::usize::MAX { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 39 - let ans = if dist[h - 1][w - 1] == std::usize::MAX { [INFO] [stdout] 39 + let ans = if dist[h - 1][w - 1] == usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `dxy` should have an upper case name [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc088d.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | const dxy: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 20 - const dxy: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] 20 + const DXY: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc088b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/e.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_d.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/contest/abc310/d.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/d.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] 11 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/contest/abc310/d.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | acc[h.1 - 1] |= 1 << h.0 - 1; [INFO] [stdout] | ^^^^^^^^^^^^ help: consider parenthesizing your expression: `1 << (h.0 - 1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] = note: `#[warn(clippy::precedence)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/contest/abc310/d.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 44 | println!("{}", dp[1 << n - 1][t]); [INFO] [stdout] | ^^^^^^^^^^ help: consider parenthesizing your expression: `1 << (n - 1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_a.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | let mut dp = vec![std::i32::MAX; n]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 13 - let mut dp = vec![std::i32::MAX; n]; [INFO] [stdout] 13 + let mut dp = vec![i32::MAX; n]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/bfs/joi2011yoe.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | const INF: usize = std::usize::MAX; [INFO] [stdout] | --------- the attribute applies to this constant item [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/contest/abc311/a.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/joi2015hob.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/joi2011yoe.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | const INF: usize = std::usize::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 9 - const INF: usize = std::usize::MAX; [INFO] [stdout] 9 + const INF: usize = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc086c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/arc061a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/joi2007hoc.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 9 | | [INFO] [stdout] | |_^ [INFO] [stdout] 10 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/arc061a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `dxy` should have an upper case name [INFO] [stdout] --> src/contest/beginners_selection/bfs/joi2011yoe.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const dxy: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - const dxy: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] 10 + const DXY: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_d.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/binary/joi2009hob.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/d.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/contest/abc309/b.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | for i in (0..n - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - for i in (0..n - 1) { [INFO] [stdout] 19 + for i in 0..n - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dfs/aoj1160.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc085c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/arc/163/d.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `b` [INFO] [stdout] --> src/contest/abc309/b.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | for i in 0..n { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 22 - for i in 0..n { [INFO] [stdout] 22 + for in b.iter().take(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc095c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/playground/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc086c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proconio::input` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use proconio::input; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/e.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/f.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc049c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/contest/abc311/a.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 9 | | [INFO] [stdout] | |_^ [INFO] [stdout] 10 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dfs/arc031b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/sumitb2019d.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/sumitb2019d.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] 11 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/sumitb2019d.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/bfs/joi2011yoe.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 8 | | [INFO] [stdout] | |_^ [INFO] [stdout] 9 | const INF: usize = std::usize::MAX; [INFO] [stdout] | --------- the attribute applies to this constant item [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/bfs/joi2011yoe.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | const INF: usize = std::usize::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 9 - const INF: usize = std::usize::MAX; [INFO] [stdout] 9 + const INF: usize = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dfs/arc037b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/contest/abc311/c.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/c.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] 11 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `dxy` should have an upper case name [INFO] [stdout] --> src/contest/beginners_selection/bfs/joi2011yoe.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const dxy: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - const dxy: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] 10 + const DXY: [(i32, i32); 4] = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dfs/aoj1160.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc049c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dfs/atc001a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `c` [INFO] [stdout] --> src/contest/beginners_selection/dfs/atc001a.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | for i in 0..h { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 14 - for i in 0..h { [INFO] [stdout] 14 + for (i, ) in c.iter().enumerate().take(h) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is used to index `c` [INFO] [stdout] --> src/contest/beginners_selection/dfs/atc001a.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | for j in 0..w { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 15 - for j in 0..w { [INFO] [stdout] 15 + for (j, ) in c.iter().enumerate().take(w) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 6 | | [INFO] [stdout] | |_^ [INFO] [stdout] 7 | const INF: i32 = std::i32::MIN / 3; [INFO] [stdout] | --------- the attribute applies to this constant item [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_a.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | let mut dp = vec![std::i32::MAX; n]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 13 - let mut dp = vec![std::i32::MAX; n]; [INFO] [stdout] 13 + let mut dp = vec![i32::MAX; n]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/contest/beginners_selection/dp/edpc_c.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | const INF: i32 = std::i32::MIN / 3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 7 - const INF: i32 = std::i32::MIN / 3; [INFO] [stdout] 7 + const INF: i32 = i32::MIN / 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc007c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] 11 | const INF: usize = usize::max_value(); [INFO] [stdout] | --------- the attribute applies to this constant item [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/a.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc002d.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 4 | | [INFO] [stdout] | |_^ [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc085b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/e.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc002d.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 4 | | [INFO] [stdout] | |_^ [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/contest/beginners_selection/bfs/abc007c.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | const INF: usize = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 11 - const INF: usize = usize::max_value(); [INFO] [stdout] 11 + const INF: usize = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/contest/abc311/e.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | h: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/contest/abc311/e.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | w: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ab` [INFO] [stdout] --> src/contest/abc311/e.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | ab: [(usize, usize); n] [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ab` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dp/joi2015hob.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc311/e.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/s8pc6b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 6 | | [INFO] [stdout] | |_^ [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/contest/abc311/e.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | h: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/s8pc6b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 6 | | [INFO] [stdout] | |_^ [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/contest/abc311/e.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | w: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ab` [INFO] [stdout] --> src/contest/abc311/e.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | ab: [(usize, usize); n] [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ab` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/arc/163/a.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 5 | | [INFO] [stdout] | |_^ [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/contest/abc310/d.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc310/d.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 10 | | [INFO] [stdout] | |_^ [INFO] [stdout] 11 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/contest/abc310/d.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | acc[h.1 - 1] |= 1 << h.0 - 1; [INFO] [stdout] | ^^^^^^^^^^^^ help: consider parenthesizing your expression: `1 << (h.0 - 1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] = note: `#[warn(clippy::precedence)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/contest/abc310/d.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 44 | println!("{}", dp[1 << n - 1][t]); [INFO] [stdout] | ^^^^^^^^^^ help: consider parenthesizing your expression: `1 << (n - 1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/contest/arc/163/a.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | if (is_ordered(&s[..i], &s[i..])) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (is_ordered(&s[..i], &s[i..])) { [INFO] [stdout] 15 + if is_ordered(&s[..i], &s[i..]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/arc/163/c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/dfs/arc037b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 5 | | [INFO] [stdout] | |_^ [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/c.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/abc309/e.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] ... | [INFO] [stdout] 7 | | [INFO] [stdout] | |_^ [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/contest/beginners_selection/abc083b.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #[allow(clippy::uninlined_format_args)] [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ------- the attribute applies to this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if !(largest_unsummed < d) || sum >= g { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(largest_unsummed >= d)` [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: usage of a legacy numeric method [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | let mut res = u32::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 12 - let mut res = u32::max_value(); [INFO] [stdout] 12 + let mut res = u32::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | let mut largest_unsummed = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 17 - let mut largest_unsummed = usize::max_value(); [INFO] [stdout] 17 + let mut largest_unsummed = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `pc` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | for i in 0..d { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 18 - for i in 0..d { [INFO] [stdout] 18 + for (i, ) in pc.iter().enumerate().take(d) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manually reimplementing `div_ceil` [INFO] [stdout] --> src/contest/beginners_selection/exhaustive/abc104c.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | (g - sum + (largest_unsummed_point - 1)) / largest_unsummed_point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `(g - sum).div_ceil(largest_unsummed_point)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil [INFO] [stdout] = note: `#[warn(clippy::manual_div_ceil)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.11s [INFO] running `Command { std: "docker" "inspect" "051cbde6321776daf886498aadbb933ad3faf67daef25c352068452195bf79a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "051cbde6321776daf886498aadbb933ad3faf67daef25c352068452195bf79a7", kill_on_drop: false }` [INFO] [stdout] 051cbde6321776daf886498aadbb933ad3faf67daef25c352068452195bf79a7