[INFO] fetching crate calenda-rs 0.1.9... [INFO] linting calenda-rs-0.1.9 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate calenda-rs 0.1.9 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate calenda-rs 0.1.9 [INFO] finished tweaking crates.io crate calenda-rs 0.1.9 [INFO] tweaked toml for crates.io crate calenda-rs 0.1.9 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate calenda-rs 0.1.9 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 crates.io crate calenda-rs 0.1.9 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] c3e787ec9c3cc6db9e8e700d5ffe8ce21eb8a6f104bf54dfbb7ffd3323b4a4d2 [INFO] running `Command { std: "docker" "start" "-a" "c3e787ec9c3cc6db9e8e700d5ffe8ce21eb8a6f104bf54dfbb7ffd3323b4a4d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3e787ec9c3cc6db9e8e700d5ffe8ce21eb8a6f104bf54dfbb7ffd3323b4a4d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3e787ec9c3cc6db9e8e700d5ffe8ce21eb8a6f104bf54dfbb7ffd3323b4a4d2", kill_on_drop: false }` [INFO] [stdout] c3e787ec9c3cc6db9e8e700d5ffe8ce21eb8a6f104bf54dfbb7ffd3323b4a4d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 5a79c1ad6404af298cfa49ffbcb138c8945fdd57b91b4dbdb68e63b3bb081754 [INFO] running `Command { std: "docker" "start" "-a" "5a79c1ad6404af298cfa49ffbcb138c8945fdd57b91b4dbdb68e63b3bb081754", kill_on_drop: false }` [INFO] [stderr] Compiling time-macros v0.2.17 [INFO] [stderr] Checking time v0.3.34 [INFO] [stderr] Checking calenda-rs v0.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/africa/botswana.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | ((d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::July) || [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:62:30 [INFO] [stdout] | [INFO] [stdout] 62 | || (y == 2004 && d >= 19 && d <= 28 && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(19..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | || (y == 2005 && d >= 7 && d <= 15 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(7..=15).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 66 | || (y == 2007 && d >= 17 && d <= 25 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(17..=25).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 67 | || (y == 2008 && d >= 6 && d <= 12 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use: `(6..=12).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | || (y == 2009 && d >= 26 && d <= 30 && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(26..=30).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:69:30 [INFO] [stdout] | [INFO] [stdout] 69 | || (y == 2010 && d >= 15 && d <= 19 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=19).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:70:30 [INFO] [stdout] | [INFO] [stdout] 70 | || (y == 2011 && d >= 2 && d <= 8 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=8).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:71:30 [INFO] [stdout] | [INFO] [stdout] 71 | || (y == 2012 && d >= 23 && d <= 28 && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(23..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:72:30 [INFO] [stdout] | [INFO] [stdout] 72 | || (y == 2013 && d >= 11 && d <= 15 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(11..=15).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | || (y == 2015 && d >= 18 && d <= 24 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(18..=24).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:76:30 [INFO] [stdout] | [INFO] [stdout] 76 | || (y == 2016 && d >= 8 && d <= 12 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use: `(8..=12).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | || (y == 2018 && (d >= 15 && d <= 21 && m == Month::February)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:79:30 [INFO] [stdout] | [INFO] [stdout] 79 | || (y == 2019 && d >= 4 && d <= 8 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(4..=8).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:80:42 [INFO] [stdout] | [INFO] [stdout] 80 | || (y == 2020 && (d == 24 || (d >= 27 && d <= 31)) && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(27..=31).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | || (y == 2023 && d >= 23 && d <= 27 && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(23..=27).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | || (y == 2011 && d >=3 && d <= 5 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use: `(3..=5).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:90:30 [INFO] [stdout] | [INFO] [stdout] 90 | || (y == 2012 && d >= 2 && d <= 4 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=4).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | || (y == 2013 && d >= 4 && d <= 5 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(4..=5).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | || (y == 2015 && d >= 5 && d <= 6 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(5..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | || (y == 2017 && d >= 3 && d <= 4 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(3..=4).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:96:30 [INFO] [stdout] | [INFO] [stdout] 96 | || (y == 2018 && d >= 5 && d <= 6 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(5..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:100:30 [INFO] [stdout] | [INFO] [stdout] 100 | || (y == 2022 && d >= 4 && d <= 5 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(4..=5).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | || (y <= 2007 && d >= 1 && d <= 7 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | || (y == 2008 && d >= 1 && d <= 2 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=2).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | || (y == 2014 && d >= 1 && d <=3 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use: `(1..=3).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | || (y == 2016 && d >= 1 && d <=2 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use: `(1..=2).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:116:30 [INFO] [stdout] | [INFO] [stdout] 116 | || (y == 2019 && d >= 1 && d <=3 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use: `(1..=3).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:119:30 [INFO] [stdout] | [INFO] [stdout] 119 | || (y == 2022 && d >= 2 && d <= 4 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=4).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:120:30 [INFO] [stdout] | [INFO] [stdout] 120 | || (y == 2023 && d >= 1 && d <= 3 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=3).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 125 | || (y == 2010 && d >= 14 && d <= 16 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(14..=16).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:126:30 [INFO] [stdout] | [INFO] [stdout] 126 | || (y == 2011 && d >= 4 && d <= 6 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(4..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:127:30 [INFO] [stdout] | [INFO] [stdout] 127 | || (y == 2012 && d >= 22 && d <= 24 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(22..=24).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/africa/botswana.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | ((d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::July) || [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | || (y == 2013 && d >= 10 && d <= 12 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(10..=12).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:131:30 [INFO] [stdout] | [INFO] [stdout] 131 | || (y == 2016 && d >= 9 && d <= 10 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use: `(9..=10).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | || (y == 2017 && d >= 29 && d <= 30 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(29..=30).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:135:30 [INFO] [stdout] | [INFO] [stdout] 135 | || (y == 2020 && d >= 25 && d <= 26 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(25..=26).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | || (y == 2023 && d >= 22 && d <= 23 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(22..=23).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:142:30 [INFO] [stdout] | [INFO] [stdout] 142 | || (y == 2010 && d >= 22 && d <= 24 && m == Month::September) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(22..=24).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:143:30 [INFO] [stdout] | [INFO] [stdout] 143 | || (y == 2011 && d >= 10 && d <= 12 && m == Month::September) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(10..=12).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | || (y == 2013 && d >= 19 && d <= 20 && m == Month::September) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(19..=20).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:148:30 [INFO] [stdout] | [INFO] [stdout] 148 | || (y == 2016 && d >= 15 && d <= 16 && m == Month::September) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=16).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:156:30 [INFO] [stdout] | [INFO] [stdout] 156 | || (y <= 2007 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:158:30 [INFO] [stdout] | [INFO] [stdout] 158 | || (y == 2009 && d >= 1 && d <= 8 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=8).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:159:30 [INFO] [stdout] | [INFO] [stdout] 159 | || (y == 2010 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:160:30 [INFO] [stdout] | [INFO] [stdout] 160 | || (y == 2011 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:161:30 [INFO] [stdout] | [INFO] [stdout] 161 | || (y == 2012 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | || (y == 2013 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:163:30 [INFO] [stdout] | [INFO] [stdout] 163 | || (y == 2014 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:164:30 [INFO] [stdout] | [INFO] [stdout] 164 | || (y == 2015 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:165:30 [INFO] [stdout] | [INFO] [stdout] 165 | || (y == 2016 && d >= 3 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(3..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:166:30 [INFO] [stdout] | [INFO] [stdout] 166 | || (y == 2017 && d >= 2 && d <= 6 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:167:30 [INFO] [stdout] | [INFO] [stdout] 167 | || (y == 2018 && d >= 1 && d <= 5 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=5).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:168:30 [INFO] [stdout] | [INFO] [stdout] 168 | || (y == 2019 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:169:30 [INFO] [stdout] | [INFO] [stdout] 169 | || (y == 2020 && d >= 1 && d <= 2 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=2).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:170:30 [INFO] [stdout] | [INFO] [stdout] 170 | || (y == 2020 && d >= 5 && d <= 8 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(5..=8).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:172:30 [INFO] [stdout] | [INFO] [stdout] 172 | || (y == 2022 && d >= 3 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(3..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | || (y == 2023 && d >= 2 && d <= 6 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `HongKongCalendar` [INFO] [stdout] --> src/countries/asia/hong_kong.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | / pub fn new() -> Self { [INFO] [stdout] 81 | | Self [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 78 + impl Default for HongKongCalendar { [INFO] [stdout] 79 + fn default() -> Self { [INFO] [stdout] 80 + Self::new() [INFO] [stdout] 81 + } [INFO] [stdout] 82 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:62:30 [INFO] [stdout] | [INFO] [stdout] 62 | || (y == 2004 && d >= 19 && d <= 28 && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(19..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | || (y == 2005 && d >= 7 && d <= 15 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(7..=15).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/countries/europe/austria.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / (d == 1 && m == Month::January) || [INFO] [stdout] ... | [INFO] [stdout] 44 | | (d == 6 && m == Month::January) || [INFO] [stdout] | |___________________________________________^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 41 - (d == 1 && m == Month::January) || [INFO] [stdout] 42 - [INFO] [stdout] 43 - // Epiphany [INFO] [stdout] 44 - (d == 6 && m == Month::January) || [INFO] [stdout] 41 + !(m != Month::January || d != 1 && d != 6) || [INFO] [stdout] | [INFO] [stdout] 41 - (d == 1 && m == Month::January) || [INFO] [stdout] 42 - [INFO] [stdout] 43 - // Epiphany [INFO] [stdout] 44 - (d == 6 && m == Month::January) || [INFO] [stdout] 41 + (d == 6 || d == 1) && m == Month::January || [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 66 | || (y == 2007 && d >= 17 && d <= 25 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(17..=25).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 67 | || (y == 2008 && d >= 6 && d <= 12 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use: `(6..=12).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | || (y == 2009 && d >= 26 && d <= 30 && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(26..=30).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:69:30 [INFO] [stdout] | [INFO] [stdout] 69 | || (y == 2010 && d >= 15 && d <= 19 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=19).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/europe/austria.rs:68:49 [INFO] [stdout] | [INFO] [stdout] 68 | (d == 12 && m == Month::November && y >= 1919 && y <= 1934) || [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(1919..=1934).contains(&y)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:70:30 [INFO] [stdout] | [INFO] [stdout] 70 | || (y == 2011 && d >= 2 && d <= 8 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=8).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:71:30 [INFO] [stdout] | [INFO] [stdout] 71 | || (y == 2012 && d >= 23 && d <= 28 && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(23..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:72:30 [INFO] [stdout] | [INFO] [stdout] 72 | || (y == 2013 && d >= 11 && d <= 15 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(11..=15).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | || (y == 2015 && d >= 18 && d <= 24 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(18..=24).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:76:30 [INFO] [stdout] | [INFO] [stdout] 76 | || (y == 2016 && d >= 8 && d <= 12 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use: `(8..=12).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | || (y == 2018 && (d >= 15 && d <= 21 && m == Month::February)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:79:30 [INFO] [stdout] | [INFO] [stdout] 79 | || (y == 2019 && d >= 4 && d <= 8 && m == Month::February) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(4..=8).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:80:42 [INFO] [stdout] | [INFO] [stdout] 80 | || (y == 2020 && (d == 24 || (d >= 27 && d <= 31)) && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(27..=31).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | || (y == 2023 && d >= 23 && d <= 27 && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(23..=27).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | || (y == 2011 && d >=3 && d <= 5 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use: `(3..=5).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:90:30 [INFO] [stdout] | [INFO] [stdout] 90 | || (y == 2012 && d >= 2 && d <= 4 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=4).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | || (y == 2013 && d >= 4 && d <= 5 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(4..=5).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | || (y == 2015 && d >= 5 && d <= 6 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(5..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | || (y == 2017 && d >= 3 && d <= 4 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(3..=4).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:96:30 [INFO] [stdout] | [INFO] [stdout] 96 | || (y == 2018 && d >= 5 && d <= 6 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(5..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:100:30 [INFO] [stdout] | [INFO] [stdout] 100 | || (y == 2022 && d >= 4 && d <= 5 && m == Month::April) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(4..=5).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | || (y <= 2007 && d >= 1 && d <= 7 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | || (y == 2008 && d >= 1 && d <= 2 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=2).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | || (y == 2014 && d >= 1 && d <=3 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use: `(1..=3).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | || (y == 2016 && d >= 1 && d <=2 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use: `(1..=2).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:116:30 [INFO] [stdout] | [INFO] [stdout] 116 | || (y == 2019 && d >= 1 && d <=3 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use: `(1..=3).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:119:30 [INFO] [stdout] | [INFO] [stdout] 119 | || (y == 2022 && d >= 2 && d <= 4 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=4).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:120:30 [INFO] [stdout] | [INFO] [stdout] 120 | || (y == 2023 && d >= 1 && d <= 3 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=3).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 125 | || (y == 2010 && d >= 14 && d <= 16 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(14..=16).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:126:30 [INFO] [stdout] | [INFO] [stdout] 126 | || (y == 2011 && d >= 4 && d <= 6 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(4..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:127:30 [INFO] [stdout] | [INFO] [stdout] 127 | || (y == 2012 && d >= 22 && d <= 24 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(22..=24).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | || (y == 2013 && d >= 10 && d <= 12 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(10..=12).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:131:30 [INFO] [stdout] | [INFO] [stdout] 131 | || (y == 2016 && d >= 9 && d <= 10 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use: `(9..=10).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | || (y == 2017 && d >= 29 && d <= 30 && m == Month::May) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(29..=30).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:135:30 [INFO] [stdout] | [INFO] [stdout] 135 | || (y == 2020 && d >= 25 && d <= 26 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(25..=26).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | || (y == 2023 && d >= 22 && d <= 23 && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(22..=23).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:142:30 [INFO] [stdout] | [INFO] [stdout] 142 | || (y == 2010 && d >= 22 && d <= 24 && m == Month::September) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(22..=24).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:143:30 [INFO] [stdout] | [INFO] [stdout] 143 | || (y == 2011 && d >= 10 && d <= 12 && m == Month::September) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(10..=12).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | || (y == 2013 && d >= 19 && d <= 20 && m == Month::September) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(19..=20).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:148:30 [INFO] [stdout] | [INFO] [stdout] 148 | || (y == 2016 && d >= 15 && d <= 16 && m == Month::September) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=16).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:156:30 [INFO] [stdout] | [INFO] [stdout] 156 | || (y <= 2007 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:158:30 [INFO] [stdout] | [INFO] [stdout] 158 | || (y == 2009 && d >= 1 && d <= 8 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=8).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:159:30 [INFO] [stdout] | [INFO] [stdout] 159 | || (y == 2010 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:160:30 [INFO] [stdout] | [INFO] [stdout] 160 | || (y == 2011 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:161:30 [INFO] [stdout] | [INFO] [stdout] 161 | || (y == 2012 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | || (y == 2013 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:163:30 [INFO] [stdout] | [INFO] [stdout] 163 | || (y == 2014 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:164:30 [INFO] [stdout] | [INFO] [stdout] 164 | || (y == 2015 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:165:30 [INFO] [stdout] | [INFO] [stdout] 165 | || (y == 2016 && d >= 3 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(3..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:166:30 [INFO] [stdout] | [INFO] [stdout] 166 | || (y == 2017 && d >= 2 && d <= 6 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:167:30 [INFO] [stdout] | [INFO] [stdout] 167 | || (y == 2018 && d >= 1 && d <= 5 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=5).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:168:30 [INFO] [stdout] | [INFO] [stdout] 168 | || (y == 2019 && d >= 1 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/countries/europe/finland.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / (d == 1 && m == Month::January) [INFO] [stdout] 42 | | // Epiphany [INFO] [stdout] 43 | | || (d == 6 && m == Month::January) [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 41 - (d == 1 && m == Month::January) [INFO] [stdout] 42 - // Epiphany [INFO] [stdout] 43 - || (d == 6 && m == Month::January) [INFO] [stdout] 41 + !(m != Month::January || d != 1 && d != 6) [INFO] [stdout] | [INFO] [stdout] 41 - (d == 1 && m == Month::January) [INFO] [stdout] 42 - // Epiphany [INFO] [stdout] 43 - || (d == 6 && m == Month::January) [INFO] [stdout] 41 + (d == 6 || d == 1) && m == Month::January [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:169:30 [INFO] [stdout] | [INFO] [stdout] 169 | || (y == 2020 && d >= 1 && d <= 2 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(1..=2).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:170:30 [INFO] [stdout] | [INFO] [stdout] 170 | || (y == 2020 && d >= 5 && d <= 8 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(5..=8).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:172:30 [INFO] [stdout] | [INFO] [stdout] 172 | || (y == 2022 && d >= 3 && d <= 7 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(3..=7).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/asia/china.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | || (y == 2023 && d >= 2 && d <= 6 && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(2..=6).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `HongKongCalendar` [INFO] [stdout] --> src/countries/asia/hong_kong.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | / pub fn new() -> Self { [INFO] [stdout] 81 | | Self [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 78 + impl Default for HongKongCalendar { [INFO] [stdout] 79 + fn default() -> Self { [INFO] [stdout] 80 + Self::new() [INFO] [stdout] 81 + } [INFO] [stdout] 82 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/canada.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | || ((d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February && y >= 2008) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | || ((d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::January && y >= 1983) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | || ((d >= 22 && d <= 28) && wd == Weekday::Thursday && m == Month::November) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(22..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `UnitedStatesCalendar` [INFO] [stdout] --> src/countries/north_america/united_states.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | / pub fn new() -> Self { [INFO] [stdout] 86 | | UnitedStatesCalendar [INFO] [stdout] 87 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 83 + impl Default for UnitedStatesCalendar { [INFO] [stdout] 84 + fn default() -> Self { [INFO] [stdout] 85 + Self::new() [INFO] [stdout] 86 + } [INFO] [stdout] 87 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | return (d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 94 - return (d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February; [INFO] [stdout] 94 + (d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | / return (d == 22 [INFO] [stdout] 98 | | || (d == 23 && wd == Weekday::Monday) [INFO] [stdout] 99 | | || (d == 21 && wd == Weekday::Friday)) [INFO] [stdout] 100 | | && m == Month::February; [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 97 ~ (d == 22 [INFO] [stdout] 98 + || (d == 23 && wd == Weekday::Monday) [INFO] [stdout] 99 + || (d == 21 && wd == Weekday::Friday)) [INFO] [stdout] 100 ~ && m == Month::February [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | return (d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | return d >= 25 && wd == Weekday::Monday && m == Month::May; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 109 - return d >= 25 && wd == Weekday::Monday && m == Month::May; [INFO] [stdout] 109 + d >= 25 && wd == Weekday::Monday && m == Month::May [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | / return (d == 30 [INFO] [stdout] 113 | | || (d == 31 && wd == Weekday::Monday) [INFO] [stdout] 114 | | || (d == 29 && wd == Weekday::Friday)) [INFO] [stdout] 115 | | && m == Month::May; [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 112 ~ (d == 30 [INFO] [stdout] 113 + || (d == 31 && wd == Weekday::Monday) [INFO] [stdout] 114 + || (d == 29 && wd == Weekday::Friday)) [INFO] [stdout] 115 ~ && m == Month::May [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | return d <= 7 && wd == Weekday::Monday && m == Month::September; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 123 - return d <= 7 && wd == Weekday::Monday && m == Month::September; [INFO] [stdout] 123 + d <= 7 && wd == Weekday::Monday && m == Month::September [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | return (d >= 8 && d <= 14) && wd == Weekday::Monday && m == Month::October && y >= 1971; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 130 - return (d >= 8 && d <= 14) && wd == Weekday::Monday && m == Month::October && y >= 1971; [INFO] [stdout] 130 + (d >= 8 && d <= 14) && wd == Weekday::Monday && m == Month::October && y >= 1971 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | return (d >= 8 && d <= 14) && wd == Weekday::Monday && m == Month::October && y >= 1971; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: use: `(8..=14).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | / return (d == 11 [INFO] [stdout] 139 | | || (d == 12 && wd == Weekday::Monday) [INFO] [stdout] 140 | | || (d == 10 && wd == Weekday::Friday)) [INFO] [stdout] 141 | | && m == Month::November; [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 138 ~ (d == 11 [INFO] [stdout] 139 + || (d == 12 && wd == Weekday::Monday) [INFO] [stdout] 140 + || (d == 10 && wd == Weekday::Friday)) [INFO] [stdout] 141 ~ && m == Month::November [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | return (d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 144 - return (d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October; [INFO] [stdout] 144 + (d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | return (d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(22..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/countries/europe/austria.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / (d == 1 && m == Month::January) || [INFO] [stdout] ... | [INFO] [stdout] 44 | | (d == 6 && m == Month::January) || [INFO] [stdout] | |___________________________________________^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 41 - (d == 1 && m == Month::January) || [INFO] [stdout] 42 - [INFO] [stdout] 43 - // Epiphany [INFO] [stdout] 44 - (d == 6 && m == Month::January) || [INFO] [stdout] 41 + !(m != Month::January || d != 1 && d != 6) || [INFO] [stdout] | [INFO] [stdout] 41 - (d == 1 && m == Month::January) || [INFO] [stdout] 42 - [INFO] [stdout] 43 - // Epiphany [INFO] [stdout] 44 - (d == 6 && m == Month::January) || [INFO] [stdout] 41 + (d == 6 || d == 1) && m == Month::January || [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/europe/austria.rs:68:49 [INFO] [stdout] | [INFO] [stdout] 68 | (d == 12 && m == Month::November && y >= 1919 && y <= 1934) || [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(1919..=1934).contains(&y)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | / return (d == 19 [INFO] [stdout] 153 | | || (d == 20 && wd == Weekday::Monday) [INFO] [stdout] 154 | | || ((d == 18 && wd == Weekday::Friday) && move_to_friday)) [INFO] [stdout] 155 | | && m == Month::June [INFO] [stdout] 156 | | && y >= 2022; [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 152 ~ (d == 19 [INFO] [stdout] 153 + || (d == 20 && wd == Weekday::Monday) [INFO] [stdout] 154 + || ((d == 18 && wd == Weekday::Friday) && move_to_friday)) [INFO] [stdout] 155 + && m == Month::June [INFO] [stdout] 156 ~ && y >= 2022 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/oceania/new_zealand.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | || ((d >= 19 && d <= 25) && wd == Weekday::Monday && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(19..=25).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/oceania/new_zealand.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | || ((d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(22..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/south_america/argentina.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | || (d >= 15 && d <= 21 && wd == Weekday::Monday && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/south_america/argentina.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | || (d >= 15 && d <= 21 && wd == Weekday::Monday && m == Month::August) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/countries/europe/finland.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / (d == 1 && m == Month::January) [INFO] [stdout] 42 | | // Epiphany [INFO] [stdout] 43 | | || (d == 6 && m == Month::January) [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 41 - (d == 1 && m == Month::January) [INFO] [stdout] 42 - // Epiphany [INFO] [stdout] 43 - || (d == 6 && m == Month::January) [INFO] [stdout] 41 + !(m != Month::January || d != 1 && d != 6) [INFO] [stdout] | [INFO] [stdout] 41 - (d == 1 && m == Month::January) [INFO] [stdout] 42 - // Epiphany [INFO] [stdout] 43 - || (d == 6 && m == Month::January) [INFO] [stdout] 41 + (d == 6 || d == 1) && m == Month::January [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/utilities.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | current_date = current_date + Duration::days(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `current_date += Duration::days(1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/canada.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | || ((d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February && y >= 2008) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | || ((d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::January && y >= 1983) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | || ((d >= 22 && d <= 28) && wd == Weekday::Thursday && m == Month::November) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(22..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `UnitedStatesCalendar` [INFO] [stdout] --> src/countries/north_america/united_states.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | / pub fn new() -> Self { [INFO] [stdout] 86 | | UnitedStatesCalendar [INFO] [stdout] 87 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 83 + impl Default for UnitedStatesCalendar { [INFO] [stdout] 84 + fn default() -> Self { [INFO] [stdout] 85 + Self::new() [INFO] [stdout] 86 + } [INFO] [stdout] 87 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | return (d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 94 - return (d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February; [INFO] [stdout] 94 + (d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | / return (d == 22 [INFO] [stdout] 98 | | || (d == 23 && wd == Weekday::Monday) [INFO] [stdout] 99 | | || (d == 21 && wd == Weekday::Friday)) [INFO] [stdout] 100 | | && m == Month::February; [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 97 ~ (d == 22 [INFO] [stdout] 98 + || (d == 23 && wd == Weekday::Monday) [INFO] [stdout] 99 + || (d == 21 && wd == Weekday::Friday)) [INFO] [stdout] 100 ~ && m == Month::February [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | return (d >= 15 && d <= 21) && wd == Weekday::Monday && m == Month::February; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | return d >= 25 && wd == Weekday::Monday && m == Month::May; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 109 - return d >= 25 && wd == Weekday::Monday && m == Month::May; [INFO] [stdout] 109 + d >= 25 && wd == Weekday::Monday && m == Month::May [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | / return (d == 30 [INFO] [stdout] 113 | | || (d == 31 && wd == Weekday::Monday) [INFO] [stdout] 114 | | || (d == 29 && wd == Weekday::Friday)) [INFO] [stdout] 115 | | && m == Month::May; [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 112 ~ (d == 30 [INFO] [stdout] 113 + || (d == 31 && wd == Weekday::Monday) [INFO] [stdout] 114 + || (d == 29 && wd == Weekday::Friday)) [INFO] [stdout] 115 ~ && m == Month::May [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | return d <= 7 && wd == Weekday::Monday && m == Month::September; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 123 - return d <= 7 && wd == Weekday::Monday && m == Month::September; [INFO] [stdout] 123 + d <= 7 && wd == Weekday::Monday && m == Month::September [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | return (d >= 8 && d <= 14) && wd == Weekday::Monday && m == Month::October && y >= 1971; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 130 - return (d >= 8 && d <= 14) && wd == Weekday::Monday && m == Month::October && y >= 1971; [INFO] [stdout] 130 + (d >= 8 && d <= 14) && wd == Weekday::Monday && m == Month::October && y >= 1971 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | return (d >= 8 && d <= 14) && wd == Weekday::Monday && m == Month::October && y >= 1971; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: use: `(8..=14).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | / return (d == 11 [INFO] [stdout] 139 | | || (d == 12 && wd == Weekday::Monday) [INFO] [stdout] 140 | | || (d == 10 && wd == Weekday::Friday)) [INFO] [stdout] 141 | | && m == Month::November; [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 138 ~ (d == 11 [INFO] [stdout] 139 + || (d == 12 && wd == Weekday::Monday) [INFO] [stdout] 140 + || (d == 10 && wd == Weekday::Friday)) [INFO] [stdout] 141 ~ && m == Month::November [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | return (d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 144 - return (d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October; [INFO] [stdout] 144 + (d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/north_america/united_states.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | return (d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(22..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/countries/north_america/united_states.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | / return (d == 19 [INFO] [stdout] 153 | | || (d == 20 && wd == Weekday::Monday) [INFO] [stdout] 154 | | || ((d == 18 && wd == Weekday::Friday) && move_to_friday)) [INFO] [stdout] 155 | | && m == Month::June [INFO] [stdout] 156 | | && y >= 2022; [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 152 ~ (d == 19 [INFO] [stdout] 153 + || (d == 20 && wd == Weekday::Monday) [INFO] [stdout] 154 + || ((d == 18 && wd == Weekday::Friday) && move_to_friday)) [INFO] [stdout] 155 + && m == Month::June [INFO] [stdout] 156 ~ && y >= 2022 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/oceania/new_zealand.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | || ((d >= 19 && d <= 25) && wd == Weekday::Monday && m == Month::January) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(19..=25).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/oceania/new_zealand.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | || ((d >= 22 && d <= 28) && wd == Weekday::Monday && m == Month::October) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `(22..=28).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/south_america/argentina.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | || (d >= 15 && d <= 21 && wd == Weekday::Monday && m == Month::June) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/countries/south_america/argentina.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | || (d >= 15 && d <= 21 && wd == Weekday::Monday && m == Month::August) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use: `(15..=21).contains(&d)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/utilities.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | current_date = current_date + Duration::days(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `current_date += Duration::days(1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.25s [INFO] running `Command { std: "docker" "inspect" "5a79c1ad6404af298cfa49ffbcb138c8945fdd57b91b4dbdb68e63b3bb081754", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a79c1ad6404af298cfa49ffbcb138c8945fdd57b91b4dbdb68e63b3bb081754", kill_on_drop: false }` [INFO] [stdout] 5a79c1ad6404af298cfa49ffbcb138c8945fdd57b91b4dbdb68e63b3bb081754