[INFO] cloning repository https://github.com/mozilla/hglib-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mozilla/hglib-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmozilla%2Fhglib-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmozilla%2Fhglib-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ddcdecf98a60bb29557a339cbbb248542d3c6bfc
[INFO] linting mozilla/hglib-rust against nightly for clippy-nonminimal_bool-denied
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmozilla%2Fhglib-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/mozilla/hglib-rust
[INFO] finished tweaking git repo https://github.com/mozilla/hglib-rust
[INFO] tweaked toml for git repo https://github.com/mozilla/hglib-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/mozilla/hglib-rust on toolchain nightly
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/mozilla/hglib-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded subprocess v0.1.20
[INFO] [stderr] Downloaded libc v0.2.69
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] ab8a82288d0573dc6a56a552de69b4a3dc6c84ec1a14782072860756f11b5d20
[INFO] running `Command { std: "docker" "start" "-a" "ab8a82288d0573dc6a56a552de69b4a3dc6c84ec1a14782072860756f11b5d20", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ab8a82288d0573dc6a56a552de69b4a3dc6c84ec1a14782072860756f11b5d20", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ab8a82288d0573dc6a56a552de69b4a3dc6c84ec1a14782072860756f11b5d20", kill_on_drop: false }`
[INFO] [stdout] ab8a82288d0573dc6a56a552de69b4a3dc6c84ec1a14782072860756f11b5d20
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 973fda445e346962259f4a33d11f1cb351135b25f8f197921000e75f8de2c706
[INFO] running `Command { std: "docker" "start" "-a" "973fda445e346962259f4a33d11f1cb351135b25f8f197921000e75f8de2c706", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.69
[INFO] [stderr] Compiling num-traits v0.2.11
[INFO] [stderr] Compiling num-integer v0.1.42
[INFO] [stderr] Checking regex-syntax v0.6.17
[INFO] [stderr] Checking aho-corasick v0.7.10
[INFO] [stderr] Checking time v0.1.43
[INFO] [stderr] Checking subprocess v0.1.20
[INFO] [stderr] Checking chrono v0.4.11
[INFO] [stderr] Checking regex v1.3.7
[INFO] [stderr] Checking hglib-rs v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: field `msg` is never read
[INFO] [stdout] --> src/client.rs:46:5
[INFO] [stdout] |
[INFO] [stdout] 43 | pub struct HglibError {
[INFO] [stdout] | ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 46 | msg: String,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `HglibError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `msg` is never read
[INFO] [stdout] --> src/client.rs:46:5
[INFO] [stdout] |
[INFO] [stdout] 43 | pub struct HglibError {
[INFO] [stdout] | ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 46 | msg: String,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `HglibError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: manual implementation of `Option::map`
[INFO] [stdout] --> src/builder.rs:20:9
[INFO] [stdout] |
[INFO] [stdout] 20 | / if let Some(x) = self {
[INFO] [stdout] 21 | | Some(x.to_string())
[INFO] [stdout] 22 | | } else {
[INFO] [stdout] 23 | | None
[INFO] [stdout] 24 | | }
[INFO] [stdout] | |_________^ help: try: `self.as_ref().map(|x| x.to_string())`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
[INFO] [stdout] = note: `#[warn(clippy::manual_map)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler
[INFO] [stdout] --> src/builder.rs:39:27
[INFO] [stdout] |
[INFO] [stdout] 39 | args.push(&v);
[INFO] [stdout] | ^^ help: change this to: `v`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: manual implementation of `Option::map`
[INFO] [stdout] --> src/builder.rs:20:9
[INFO] [stdout] |
[INFO] [stdout] 20 | / if let Some(x) = self {
[INFO] [stdout] 21 | | Some(x.to_string())
[INFO] [stdout] 22 | | } else {
[INFO] [stdout] 23 | | None
[INFO] [stdout] 24 | | }
[INFO] [stdout] | |_________^ help: try: `self.as_ref().map(|x| x.to_string())`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
[INFO] [stdout] = note: `#[warn(clippy::manual_map)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler
[INFO] [stdout] --> src/builder.rs:39:27
[INFO] [stdout] |
[INFO] [stdout] 39 | args.push(&v);
[INFO] [stdout] | ^^ help: change this to: `v`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler
[INFO] [stdout] --> src/commands/common.rs:51:28
[INFO] [stdout] |
[INFO] [stdout] 51 | parts[count] = &buf;
[INFO] [stdout] | ^^^^ help: change this to: `buf`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/add.rs:16:1
[INFO] [stdout] |
[INFO] [stdout] 16 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 17 | | fn default() -> Self {
[INFO] [stdout] 18 | | Self {
[INFO] [stdout] 19 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 26 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler
[INFO] [stdout] --> src/commands/common.rs:51:28
[INFO] [stdout] |
[INFO] [stdout] 51 | parts[count] = &buf;
[INFO] [stdout] | ^^^^ help: change this to: `buf`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/addremove.rs:17:1
[INFO] [stdout] |
[INFO] [stdout] 17 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 18 | | fn default() -> Self {
[INFO] [stdout] 19 | | Self {
[INFO] [stdout] 20 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 28 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/add.rs:16:1
[INFO] [stdout] |
[INFO] [stdout] 16 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 17 | | fn default() -> Self {
[INFO] [stdout] 18 | | Self {
[INFO] [stdout] 19 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 26 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/annotate.rs:24:1
[INFO] [stdout] |
[INFO] [stdout] 24 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 25 | | fn default() -> Self {
[INFO] [stdout] 26 | | Self {
[INFO] [stdout] 27 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 42 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/addremove.rs:17:1
[INFO] [stdout] |
[INFO] [stdout] 17 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 18 | | fn default() -> Self {
[INFO] [stdout] 19 | | Self {
[INFO] [stdout] 20 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 28 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/annotate.rs:24:1
[INFO] [stdout] |
[INFO] [stdout] 24 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 25 | | fn default() -> Self {
[INFO] [stdout] 26 | | Self {
[INFO] [stdout] 27 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 42 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/archive.rs:19:1
[INFO] [stdout] |
[INFO] [stdout] 19 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 20 | | fn default() -> Self {
[INFO] [stdout] 21 | | Self {
[INFO] [stdout] 22 | | dest: "",
[INFO] [stdout] ... |
[INFO] [stdout] 32 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/archive.rs:19:1
[INFO] [stdout] |
[INFO] [stdout] 19 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 20 | | fn default() -> Self {
[INFO] [stdout] 21 | | Self {
[INFO] [stdout] 22 | | dest: "",
[INFO] [stdout] ... |
[INFO] [stdout] 32 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/backout.rs:19:1
[INFO] [stdout] |
[INFO] [stdout] 19 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 20 | | fn default() -> Self {
[INFO] [stdout] 21 | | Self {
[INFO] [stdout] 22 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 32 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/backout.rs:19:1
[INFO] [stdout] |
[INFO] [stdout] 19 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 20 | | fn default() -> Self {
[INFO] [stdout] 21 | | Self {
[INFO] [stdout] 22 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 32 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/bookmark.rs:17:1
[INFO] [stdout] |
[INFO] [stdout] 17 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 18 | | fn default() -> Self {
[INFO] [stdout] 19 | | Self {
[INFO] [stdout] 20 | | name: "",
[INFO] [stdout] ... |
[INFO] [stdout] 28 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/bookmark.rs:17:1
[INFO] [stdout] |
[INFO] [stdout] 17 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 18 | | fn default() -> Self {
[INFO] [stdout] 19 | | Self {
[INFO] [stdout] 20 | | name: "",
[INFO] [stdout] ... |
[INFO] [stdout] 28 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/bookmarks.rs:10:1
[INFO] [stdout] |
[INFO] [stdout] 10 | / impl Default for Arg {
[INFO] [stdout] 11 | | fn default() -> Self {
[INFO] [stdout] 12 | | Self {}
[INFO] [stdout] 13 | | }
[INFO] [stdout] 14 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg {}
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/bookmarks.rs:10:1
[INFO] [stdout] |
[INFO] [stdout] 10 | / impl Default for Arg {
[INFO] [stdout] 11 | | fn default() -> Self {
[INFO] [stdout] 12 | | Self {}
[INFO] [stdout] 13 | | }
[INFO] [stdout] 14 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg {}
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient
[INFO] [stdout] --> src/commands/bookmarks.rs:52:16
[INFO] [stdout] |
[INFO] [stdout] 52 | if start.iter().any(|x| *x == b'*') {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `start.contains(&b'*')`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains
[INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient
[INFO] [stdout] --> src/commands/bookmarks.rs:52:16
[INFO] [stdout] |
[INFO] [stdout] 52 | if start.iter().any(|x| *x == b'*') {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `start.contains(&b'*')`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains
[INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/branch.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self {
[INFO] [stdout] 17 | | name: "",
[INFO] [stdout] ... |
[INFO] [stdout] 22 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/branch.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self {
[INFO] [stdout] 17 | | name: "",
[INFO] [stdout] ... |
[INFO] [stdout] 22 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/branches.rs:13:1
[INFO] [stdout] |
[INFO] [stdout] 13 | / impl Default for Arg {
[INFO] [stdout] 14 | | fn default() -> Self {
[INFO] [stdout] 15 | | Self {
[INFO] [stdout] 16 | | active: false,
[INFO] [stdout] ... |
[INFO] [stdout] 20 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/branches.rs:13:1
[INFO] [stdout] |
[INFO] [stdout] 13 | / impl Default for Arg {
[INFO] [stdout] 14 | | fn default() -> Self {
[INFO] [stdout] 15 | | Self {
[INFO] [stdout] 16 | | active: false,
[INFO] [stdout] ... |
[INFO] [stdout] 20 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/bundle.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 23 | | fn default() -> Self {
[INFO] [stdout] 24 | | Self {
[INFO] [stdout] 25 | | file: "",
[INFO] [stdout] ... |
[INFO] [stdout] 38 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/bundle.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 23 | | fn default() -> Self {
[INFO] [stdout] 24 | | Self {
[INFO] [stdout] 25 | | file: "",
[INFO] [stdout] ... |
[INFO] [stdout] 38 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/cat.rs:17:1
[INFO] [stdout] |
[INFO] [stdout] 17 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 18 | | fn default() -> Self {
[INFO] [stdout] 19 | | Self {
[INFO] [stdout] 20 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 28 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/cat.rs:17:1
[INFO] [stdout] |
[INFO] [stdout] 17 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 18 | | fn default() -> Self {
[INFO] [stdout] 19 | | Self {
[INFO] [stdout] 20 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 28 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/commit.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 23 | | fn default() -> Self {
[INFO] [stdout] 24 | | Self {
[INFO] [stdout] 25 | | message: "",
[INFO] [stdout] ... |
[INFO] [stdout] 38 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/commit.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 23 | | fn default() -> Self {
[INFO] [stdout] 24 | | Self {
[INFO] [stdout] 25 | | message: "",
[INFO] [stdout] ... |
[INFO] [stdout] 38 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: casting integer literal to `u32` is unnecessary
[INFO] [stdout] --> src/commands/commit.rs:91:17
[INFO] [stdout] |
[INFO] [stdout] 91 | 1 as u32,
[INFO] [stdout] | ^^^^^^^^ help: try: `1_u32`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
[INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: casting integer literal to `u32` is unnecessary
[INFO] [stdout] --> src/commands/commit.rs:91:17
[INFO] [stdout] |
[INFO] [stdout] 91 | 1 as u32,
[INFO] [stdout] | ^^^^^^^^ help: try: `1_u32`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
[INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/config.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self {
[INFO] [stdout] 17 | | names: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 22 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/config.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self {
[INFO] [stdout] 17 | | names: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 22 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/copy.rs:18:1
[INFO] [stdout] |
[INFO] [stdout] 18 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 19 | | fn default() -> Self {
[INFO] [stdout] 20 | | Self {
[INFO] [stdout] 21 | | source: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/diff.rs:27:1
[INFO] [stdout] |
[INFO] [stdout] 27 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 28 | | fn default() -> Self {
[INFO] [stdout] 29 | | Self {
[INFO] [stdout] 30 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 48 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/copy.rs:18:1
[INFO] [stdout] |
[INFO] [stdout] 18 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 19 | | fn default() -> Self {
[INFO] [stdout] 20 | | Self {
[INFO] [stdout] 21 | | source: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/export.rs:17:1
[INFO] [stdout] |
[INFO] [stdout] 17 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 18 | | fn default() -> Self {
[INFO] [stdout] 19 | | Self {
[INFO] [stdout] 20 | | revs: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 28 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/diff.rs:27:1
[INFO] [stdout] |
[INFO] [stdout] 27 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 28 | | fn default() -> Self {
[INFO] [stdout] 29 | | Self {
[INFO] [stdout] 30 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 48 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/forget.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self {
[INFO] [stdout] 17 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 22 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/grep.rs:24:1
[INFO] [stdout] |
[INFO] [stdout] 24 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 25 | | fn default() -> Self {
[INFO] [stdout] 26 | | Self {
[INFO] [stdout] 27 | | pattern: "",
[INFO] [stdout] ... |
[INFO] [stdout] 41 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/export.rs:17:1
[INFO] [stdout] |
[INFO] [stdout] 17 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 18 | | fn default() -> Self {
[INFO] [stdout] 19 | | Self {
[INFO] [stdout] 20 | | revs: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 28 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/forget.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self {
[INFO] [stdout] 17 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 22 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/grep.rs:24:1
[INFO] [stdout] |
[INFO] [stdout] 24 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 25 | | fn default() -> Self {
[INFO] [stdout] 26 | | Self {
[INFO] [stdout] 27 | | pattern: "",
[INFO] [stdout] ... |
[INFO] [stdout] 41 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/heads.rs:16:1
[INFO] [stdout] |
[INFO] [stdout] 16 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 17 | | fn default() -> Self {
[INFO] [stdout] 18 | | Self {
[INFO] [stdout] 19 | | rev: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 25 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/identify.rs:18:1
[INFO] [stdout] |
[INFO] [stdout] 18 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 19 | | fn default() -> Self {
[INFO] [stdout] 20 | | Self {
[INFO] [stdout] 21 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/import.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 23 | | fn default() -> Self {
[INFO] [stdout] 24 | | Self {
[INFO] [stdout] 25 | | patches: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 38 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient
[INFO] [stdout] --> src/commands/import.rs:70:39
[INFO] [stdout] |
[INFO] [stdout] 70 | if self.patches.len() == 1 && self.patches[0].as_bytes().iter().any(|c| *c == b'\n') {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.patches[0].as_bytes().contains(&b'\n')`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/heads.rs:16:1
[INFO] [stdout] |
[INFO] [stdout] 16 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 17 | | fn default() -> Self {
[INFO] [stdout] 18 | | Self {
[INFO] [stdout] 19 | | rev: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 25 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/identify.rs:18:1
[INFO] [stdout] |
[INFO] [stdout] 18 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 19 | | fn default() -> Self {
[INFO] [stdout] 20 | | Self {
[INFO] [stdout] 21 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/incoming.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 23 | | fn default() -> Self {
[INFO] [stdout] 24 | | Self {
[INFO] [stdout] 25 | | revrange: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 37 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/import.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 23 | | fn default() -> Self {
[INFO] [stdout] 24 | | Self {
[INFO] [stdout] 25 | | patches: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 38 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient
[INFO] [stdout] --> src/commands/import.rs:70:39
[INFO] [stdout] |
[INFO] [stdout] 70 | if self.patches.len() == 1 && self.patches[0].as_bytes().iter().any(|c| *c == b'\n') {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.patches[0].as_bytes().contains(&b'\n')`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/init.rs:15:1
[INFO] [stdout] |
[INFO] [stdout] 15 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 16 | | fn default() -> Self {
[INFO] [stdout] 17 | | Self {
[INFO] [stdout] 18 | | dest: "",
[INFO] [stdout] ... |
[INFO] [stdout] 24 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/log.rs:29:1
[INFO] [stdout] |
[INFO] [stdout] 29 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 30 | | fn default() -> Self {
[INFO] [stdout] 31 | | Self {
[INFO] [stdout] 32 | | revrange: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 51 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/incoming.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 23 | | fn default() -> Self {
[INFO] [stdout] 24 | | Self {
[INFO] [stdout] 25 | | revrange: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 37 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/manifest.rs:13:1
[INFO] [stdout] |
[INFO] [stdout] 13 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 14 | | fn default() -> Self {
[INFO] [stdout] 15 | | Self {
[INFO] [stdout] 16 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 20 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/init.rs:15:1
[INFO] [stdout] |
[INFO] [stdout] 15 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 16 | | fn default() -> Self {
[INFO] [stdout] 17 | | Self {
[INFO] [stdout] 18 | | dest: "",
[INFO] [stdout] ... |
[INFO] [stdout] 24 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/log.rs:29:1
[INFO] [stdout] |
[INFO] [stdout] 29 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 30 | | fn default() -> Self {
[INFO] [stdout] 31 | | Self {
[INFO] [stdout] 32 | | revrange: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 51 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/merge.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self {
[INFO] [stdout] 17 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 22 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/move.rs:18:1
[INFO] [stdout] |
[INFO] [stdout] 18 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 19 | | fn default() -> Self {
[INFO] [stdout] 20 | | Self {
[INFO] [stdout] 21 | | source: "",
[INFO] [stdout] ... |
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/outgoing.rs:21:1
[INFO] [stdout] |
[INFO] [stdout] 21 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 22 | | fn default() -> Self {
[INFO] [stdout] 23 | | Self {
[INFO] [stdout] 24 | | revrange: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 35 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/manifest.rs:13:1
[INFO] [stdout] |
[INFO] [stdout] 13 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 14 | | fn default() -> Self {
[INFO] [stdout] 15 | | Self {
[INFO] [stdout] 16 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 20 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/parents.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self { rev: "", file: "" }
[INFO] [stdout] 17 | | }
[INFO] [stdout] 18 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/merge.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self {
[INFO] [stdout] 17 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 22 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/paths.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self { name: "" }
[INFO] [stdout] 17 | | }
[INFO] [stdout] 18 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 10 + #[derive(Default)]
[INFO] [stdout] 11 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/move.rs:18:1
[INFO] [stdout] |
[INFO] [stdout] 18 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 19 | | fn default() -> Self {
[INFO] [stdout] 20 | | Self {
[INFO] [stdout] 21 | | source: "",
[INFO] [stdout] ... |
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/phase.rs:16:1
[INFO] [stdout] |
[INFO] [stdout] 16 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 17 | | fn default() -> Self {
[INFO] [stdout] 18 | | Self {
[INFO] [stdout] 19 | | revs: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 26 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/outgoing.rs:21:1
[INFO] [stdout] |
[INFO] [stdout] 21 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 22 | | fn default() -> Self {
[INFO] [stdout] 23 | | Self {
[INFO] [stdout] 24 | | revrange: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 35 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/pull.rs:21:1
[INFO] [stdout] |
[INFO] [stdout] 21 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 22 | | fn default() -> Self {
[INFO] [stdout] 23 | | Self {
[INFO] [stdout] 24 | | source: "",
[INFO] [stdout] ... |
[INFO] [stdout] 36 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/push.rs:20:1
[INFO] [stdout] |
[INFO] [stdout] 20 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 21 | | fn default() -> Self {
[INFO] [stdout] 22 | | Self {
[INFO] [stdout] 23 | | dest: "",
[INFO] [stdout] ... |
[INFO] [stdout] 34 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/parents.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self { rev: "", file: "" }
[INFO] [stdout] 17 | | }
[INFO] [stdout] 18 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/paths.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self { name: "" }
[INFO] [stdout] 17 | | }
[INFO] [stdout] 18 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 10 + #[derive(Default)]
[INFO] [stdout] 11 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/remove.rs:16:1
[INFO] [stdout] |
[INFO] [stdout] 16 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 17 | | fn default() -> Self {
[INFO] [stdout] 18 | | Self {
[INFO] [stdout] 19 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 26 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/resolve.rs:19:1
[INFO] [stdout] |
[INFO] [stdout] 19 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 20 | | fn default() -> Self {
[INFO] [stdout] 21 | | Self {
[INFO] [stdout] 22 | | file: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 32 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/phase.rs:16:1
[INFO] [stdout] |
[INFO] [stdout] 16 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 17 | | fn default() -> Self {
[INFO] [stdout] 18 | | Self {
[INFO] [stdout] 19 | | revs: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 26 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/pull.rs:21:1
[INFO] [stdout] |
[INFO] [stdout] 21 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 22 | | fn default() -> Self {
[INFO] [stdout] 23 | | Self {
[INFO] [stdout] 24 | | source: "",
[INFO] [stdout] ... |
[INFO] [stdout] 36 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/revert.rs:19:1
[INFO] [stdout] |
[INFO] [stdout] 19 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 20 | | fn default() -> Self {
[INFO] [stdout] 21 | | Self {
[INFO] [stdout] 22 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 32 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/root.rs:10:1
[INFO] [stdout] |
[INFO] [stdout] 10 | / impl Default for Arg {
[INFO] [stdout] 11 | | fn default() -> Self {
[INFO] [stdout] 12 | | Self {}
[INFO] [stdout] 13 | | }
[INFO] [stdout] 14 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg {}
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/status.rs:25:1
[INFO] [stdout] |
[INFO] [stdout] 25 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 26 | | fn default() -> Self {
[INFO] [stdout] 27 | | Self {
[INFO] [stdout] 28 | | rev: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 44 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/push.rs:20:1
[INFO] [stdout] |
[INFO] [stdout] 20 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 21 | | fn default() -> Self {
[INFO] [stdout] 22 | | Self {
[INFO] [stdout] 23 | | dest: "",
[INFO] [stdout] ... |
[INFO] [stdout] 34 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/remove.rs:16:1
[INFO] [stdout] |
[INFO] [stdout] 16 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 17 | | fn default() -> Self {
[INFO] [stdout] 18 | | Self {
[INFO] [stdout] 19 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 26 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/summary.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl Default for Arg {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self { remote: false }
[INFO] [stdout] 17 | | }
[INFO] [stdout] 18 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 10 + #[derive(Default)]
[INFO] [stdout] 11 | pub struct Arg {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/resolve.rs:19:1
[INFO] [stdout] |
[INFO] [stdout] 19 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 20 | | fn default() -> Self {
[INFO] [stdout] 21 | | Self {
[INFO] [stdout] 22 | | file: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 32 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/tag.rs:18:1
[INFO] [stdout] |
[INFO] [stdout] 18 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 19 | | fn default() -> Self {
[INFO] [stdout] 20 | | Self {
[INFO] [stdout] 21 | | names: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/tags.rs:10:1
[INFO] [stdout] |
[INFO] [stdout] 10 | / impl Default for Arg {
[INFO] [stdout] 11 | | fn default() -> Self {
[INFO] [stdout] 12 | | Self {}
[INFO] [stdout] 13 | | }
[INFO] [stdout] 14 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg {}
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/revert.rs:19:1
[INFO] [stdout] |
[INFO] [stdout] 19 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 20 | | fn default() -> Self {
[INFO] [stdout] 21 | | Self {
[INFO] [stdout] 22 | | files: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 32 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/tip.rs:11:1
[INFO] [stdout] |
[INFO] [stdout] 11 | / impl Default for Arg {
[INFO] [stdout] 12 | | fn default() -> Self {
[INFO] [stdout] 13 | | Self {}
[INFO] [stdout] 14 | | }
[INFO] [stdout] 15 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 9 + #[derive(Default)]
[INFO] [stdout] 10 | pub struct Arg {}
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/root.rs:10:1
[INFO] [stdout] |
[INFO] [stdout] 10 | / impl Default for Arg {
[INFO] [stdout] 11 | | fn default() -> Self {
[INFO] [stdout] 12 | | Self {}
[INFO] [stdout] 13 | | }
[INFO] [stdout] 14 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg {}
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/update.rs:15:1
[INFO] [stdout] |
[INFO] [stdout] 15 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 16 | | fn default() -> Self {
[INFO] [stdout] 17 | | Self {
[INFO] [stdout] 18 | | rev: "",
[INFO] [stdout] ... |
[INFO] [stdout] 24 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/status.rs:25:1
[INFO] [stdout] |
[INFO] [stdout] 25 | / impl<'a> Default for Arg<'a> {
[INFO] [stdout] 26 | | fn default() -> Self {
[INFO] [stdout] 27 | | Self {
[INFO] [stdout] 28 | | rev: &[],
[INFO] [stdout] ... |
[INFO] [stdout] 44 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 8 + #[derive(Default)]
[INFO] [stdout] 9 | pub struct Arg<'a> {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: called `unwrap` on `err.out` after checking its variant with `is_some`
[INFO] [stdout] --> src/commands/update.rs:58:21
[INFO] [stdout] |
[INFO] [stdout] 57 | if err.code == 1 && err.out.is_some() {
[INFO] [stdout] | ----------------- the check is happening here
[INFO] [stdout] 58 | err.out.unwrap()
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: try using `match`
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
[INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/version.rs:12:1
[INFO] [stdout] |
[INFO] [stdout] 12 | / impl Default for Arg {
[INFO] [stdout] 13 | | fn default() -> Self {
[INFO] [stdout] 14 | | Self {}
[INFO] [stdout] 15 | | }
[INFO] [stdout] 16 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 10 + #[derive(Default)]
[INFO] [stdout] 11 | pub struct Arg {}
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: manual implementation of `Option::map`
[INFO] [stdout] --> src/commands/version.rs:84:21
[INFO] [stdout] |
[INFO] [stdout] 84 | let micro = if let Some(buf) = cap.get(3) {
[INFO] [stdout] | _____________________^
[INFO] [stdout] 85 | | Some(
[INFO] [stdout] 86 | | buf.as_bytes()
[INFO] [stdout] 87 | | .iter()
[INFO] [stdout] ... |
[INFO] [stdout] 91 | | None
[INFO] [stdout] 92 | | };
[INFO] [stdout] | |_________^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
[INFO] [stdout] help: try
[INFO] [stdout] |
[INFO] [stdout] 84 ~ let micro = cap.get(3).map(|buf| buf.as_bytes()
[INFO] [stdout] 85 + .iter()
[INFO] [stdout] 86 ~ .fold(0, |r, x| r * 10 + u32::from(*x - b'0')));
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this `impl` can be derived
[INFO] [stdout] --> src/commands/summary.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | / impl Default for Arg {
[INFO] [stdout] 15 | | fn default() -> Self {
[INFO] [stdout] 16 | | Self { remote: false }
[INFO] [stdout] 17 | | }
[INFO] [stdout] 18 | | }
[INFO] [stdout] | |_^
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[INFO] [stdout] help: replace the manual implementation with a derive attribute
[INFO] [stdout] |
[INFO] [stdout] 10 + #[derive(Default)]
[INFO] [stdout] 11 | pub struct Arg {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout] --> src/commands/annotate.rs:94:22
[INFO] [stdout] |
[INFO] [stdout] 94 | pub fn next_line(&mut self) -> Result