[INFO] cloning repository https://github.com/JudgementalBird/my_date_stuff [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JudgementalBird/my_date_stuff" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJudgementalBird%2Fmy_date_stuff", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJudgementalBird%2Fmy_date_stuff'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 05f5424aabad650ad9c2d64fa04924124e4f850a [INFO] linting JudgementalBird/my_date_stuff against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJudgementalBird%2Fmy_date_stuff" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JudgementalBird/my_date_stuff [INFO] finished tweaking git repo https://github.com/JudgementalBird/my_date_stuff [INFO] tweaked toml for git repo https://github.com/JudgementalBird/my_date_stuff written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JudgementalBird/my_date_stuff on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JudgementalBird/my_date_stuff 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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29bc27c249c3e639b8dcd603fe1eaa499a076341ab0dc88e83baeaf07b5a9f94 [INFO] running `Command { std: "docker" "start" "-a" "29bc27c249c3e639b8dcd603fe1eaa499a076341ab0dc88e83baeaf07b5a9f94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29bc27c249c3e639b8dcd603fe1eaa499a076341ab0dc88e83baeaf07b5a9f94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29bc27c249c3e639b8dcd603fe1eaa499a076341ab0dc88e83baeaf07b5a9f94", kill_on_drop: false }` [INFO] [stdout] 29bc27c249c3e639b8dcd603fe1eaa499a076341ab0dc88e83baeaf07b5a9f94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 878a3398151f6a3396f3ff6b66b165f2edb19537b67aa846b54d74e5a194999d [INFO] running `Command { std: "docker" "start" "-a" "878a3398151f6a3396f3ff6b66b165f2edb19537b67aa846b54d74e5a194999d", kill_on_drop: false }` [INFO] [stderr] Checking garbo_datetime v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | year: year, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `year` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | month: month, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `month` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | day: day, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `day` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | hour: hour, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `hour` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | minute: minute, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `minute` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | second: second, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `second` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | /// year: 1970, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] = note: `#[warn(clippy::tabs_in_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | /// month: 1, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | /// day: 1, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | /// hour: 0, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | /// minute: 0, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | /// second: 0, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | /// assert_eq!(is_leap_year(3), false); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | /// assert_eq!(is_leap_year(4), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | /// [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | /// assert_eq!(is_leap_year(5), false); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | /// assert_eq!(is_leap_year(8), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | /// assert_eq!(is_leap_year(200), false); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | /// assert_eq!(is_leap_year(400), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | /// [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | /// assert_eq!(is_leap_year(1000), false); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | /// assert_eq!(is_leap_year(2000), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | /// assert_eq!(is_leap_year(2024), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::gregorian_and_utc` [INFO] [stdout] --> src/uts.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::gregorian_and_utc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utc` [INFO] [stdout] --> src/uts.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn from_utc(utc: DateTime) -> UTSDateTime { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_utc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uts_start_gmt` [INFO] [stdout] --> src/uts.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | let uts_start_gmt = DateTime::initialize(2022, 8, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_uts_start_gmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_leap_year` is never used [INFO] [stdout] --> src/leap.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn is_leap_year(year: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UTSDateTime` is never constructed [INFO] [stdout] --> src/uts.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct UTSDateTime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_utc` is never used [INFO] [stdout] --> src/uts.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | impl UTSDateTime { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 15 | pub fn from_utc(utc: DateTime) -> UTSDateTime { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/gregorian_and_utc.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 56 | self.second = self.second%60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.second %= 60` [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 implementation of an assign operation [INFO] [stdout] --> src/gregorian_and_utc.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | self.minute = self.minute%60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.minute %= 60` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/gregorian_and_utc.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | self.hour = self.hour%24; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.hour %= 24` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/leap.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | ((year%4) == 0) && (!((year%100) == 0) | ((year%400) == 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `((year%100) != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/leap.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | ((year%4) == 0) && (!((year%100) == 0) | ((year%400) == 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: replace with: `year.is_multiple_of(4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/leap.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | ((year%4) == 0) && (!((year%100) == 0) | ((year%400) == 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace with: `year.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/leap.rs:26:43 [INFO] [stdout] | [INFO] [stdout] 26 | ((year%4) == 0) && (!((year%100) == 0) | ((year%400) == 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace with: `year.is_multiple_of(400)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | year: year, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `year` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | month: month, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `month` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | day: day, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `day` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | hour: hour, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `hour` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | minute: minute, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `minute` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/gregorian_and_utc.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | second: second, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `second` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | /// year: 1970, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] = note: `#[warn(clippy::tabs_in_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | /// month: 1, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | /// day: 1, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | /// hour: 0, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | /// minute: 0, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/gregorian_and_utc.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | /// second: 0, [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | /// assert_eq!(is_leap_year(3), false); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | /// assert_eq!(is_leap_year(4), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | /// [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | /// assert_eq!(is_leap_year(5), false); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | /// assert_eq!(is_leap_year(8), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | /// assert_eq!(is_leap_year(200), false); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | /// assert_eq!(is_leap_year(400), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | /// [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | /// assert_eq!(is_leap_year(1000), false); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | /// assert_eq!(is_leap_year(2000), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/leap.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | /// assert_eq!(is_leap_year(2024), true); [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::gregorian_and_utc` [INFO] [stdout] --> src/uts.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::gregorian_and_utc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utc` [INFO] [stdout] --> src/uts.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn from_utc(utc: DateTime) -> UTSDateTime { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_utc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uts_start_gmt` [INFO] [stdout] --> src/uts.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | let uts_start_gmt = DateTime::initialize(2022, 8, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_uts_start_gmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_leap_year` is never used [INFO] [stdout] --> src/leap.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn is_leap_year(year: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UTSDateTime` is never constructed [INFO] [stdout] --> src/uts.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct UTSDateTime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_utc` is never used [INFO] [stdout] --> src/uts.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | impl UTSDateTime { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 15 | pub fn from_utc(utc: DateTime) -> UTSDateTime { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/gregorian_and_utc.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 56 | self.second = self.second%60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.second %= 60` [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 implementation of an assign operation [INFO] [stdout] --> src/gregorian_and_utc.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | self.minute = self.minute%60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.minute %= 60` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/gregorian_and_utc.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | self.hour = self.hour%24; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.hour %= 24` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/leap.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | ((year%4) == 0) && (!((year%100) == 0) | ((year%400) == 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `((year%100) != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/leap.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | ((year%4) == 0) && (!((year%100) == 0) | ((year%400) == 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: replace with: `year.is_multiple_of(4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/leap.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | ((year%4) == 0) && (!((year%100) == 0) | ((year%400) == 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace with: `year.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/leap.rs:26:43 [INFO] [stdout] | [INFO] [stdout] 26 | ((year%4) == 0) && (!((year%100) == 0) | ((year%400) == 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace with: `year.is_multiple_of(400)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "878a3398151f6a3396f3ff6b66b165f2edb19537b67aa846b54d74e5a194999d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "878a3398151f6a3396f3ff6b66b165f2edb19537b67aa846b54d74e5a194999d", kill_on_drop: false }` [INFO] [stdout] 878a3398151f6a3396f3ff6b66b165f2edb19537b67aa846b54d74e5a194999d