[INFO] fetching crate cgx-core 0.0.8... [INFO] linting cgx-core-0.0.8 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate cgx-core 0.0.8 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate cgx-core 0.0.8 [INFO] finished tweaking crates.io crate cgx-core 0.0.8 [INFO] tweaked toml for crates.io crate cgx-core 0.0.8 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cgx-core 0.0.8 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate cgx-core 0.0.8 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded compression-codecs v0.4.32 [INFO] [stderr] Downloaded which v8.0.0 [INFO] [stderr] Downloaded compression-core v0.4.30 [INFO] [stderr] Downloaded schemafy_core v0.6.0 [INFO] [stderr] Downloaded gix-config-value v0.15.3 [INFO] [stderr] Downloaded gix-prompt v0.11.2 [INFO] [stderr] Downloaded gix-trace v0.1.15 [INFO] [stderr] Downloaded gix-mailmap v0.27.4 [INFO] [stderr] Downloaded gix-bitmap v0.2.15 [INFO] [stderr] Downloaded build-context v0.1.3 [INFO] [stderr] Downloaded serde-untagged v0.1.9 [INFO] [stderr] Downloaded gix-status v0.21.1 [INFO] [stderr] Downloaded gix-odb v0.71.1 [INFO] [stderr] Downloaded gix-blame v0.4.0 [INFO] [stderr] Downloaded jiff-static v0.2.16 [INFO] [stderr] Downloaded gix-pack v0.61.1 [INFO] [stderr] Downloaded gix-transport v0.49.1 [INFO] [stderr] Downloaded imara-diff v0.1.8 [INFO] [stderr] Downloaded prodash v30.0.1 [INFO] [stderr] Downloaded insta v1.43.2 [INFO] [stderr] Downloaded gix-dir v0.16.0 [INFO] [stderr] Downloaded gix-ref v0.54.1 [INFO] [stderr] Downloaded gix-config v0.47.1 [INFO] [stderr] Downloaded gix-path v0.10.21 [INFO] [stderr] Downloaded gix-object v0.51.1 [INFO] [stderr] Downloaded serde-cyclonedx v0.10.0 [INFO] [stderr] Downloaded gix v0.74.1 [INFO] [stderr] Downloaded gix-protocol v0.52.1 [INFO] [stderr] Downloaded gix-diff v0.54.1 [INFO] [stderr] Downloaded gix-index v0.42.1 [INFO] [stderr] Downloaded gix-filter v0.21.0 [INFO] [stderr] Downloaded jiff-tzdb v0.1.4 [INFO] [stderr] Downloaded gix-revwalk v0.22.0 [INFO] [stderr] Downloaded async-compression v0.4.33 [INFO] [stderr] Downloaded tame-index v0.24.1 [INFO] [stderr] Downloaded gix-submodule v0.21.0 [INFO] [stderr] Downloaded gix-credentials v0.31.1 [INFO] [stderr] Downloaded gix-url v0.33.1 [INFO] [stderr] Downloaded gix-commitgraph v0.30.1 [INFO] [stderr] Downloaded toml-span v0.6.0 [INFO] [stderr] Downloaded cargo_metadata v0.20.0 [INFO] [stderr] Downloaded gix-shallow v0.6.0 [INFO] [stderr] Downloaded gix-discover v0.42.0 [INFO] [stderr] Downloaded gix-pathspec v0.13.0 [INFO] [stderr] Downloaded gix-revision v0.36.1 [INFO] [stderr] Downloaded gix-refspec v0.32.0 [INFO] [stderr] Downloaded gix-packetline v0.19.3 [INFO] [stderr] Downloaded gix-worktree v0.43.1 [INFO] [stderr] Downloaded kstring v2.0.2 [INFO] [stderr] Downloaded jiff v0.2.16 [INFO] [stderr] Downloaded gix-attributes v0.28.1 [INFO] [stderr] Downloaded bytesize v2.2.0 [INFO] [stderr] Downloaded gix-hash v0.20.1 [INFO] [stderr] Downloaded gix-traverse v0.48.0 [INFO] [stderr] Downloaded gix-worktree-stream v0.23.0 [INFO] [stderr] Downloaded camino v1.2.1 [INFO] [stderr] Downloaded gix-archive v0.23.1 [INFO] [stderr] Downloaded gix-ignore v0.17.1 [INFO] [stderr] Downloaded gix-worktree-state v0.21.0 [INFO] [stderr] Downloaded gix-command v0.6.3 [INFO] [stderr] Downloaded gix-packetline-blocking v0.19.3 [INFO] [stderr] Downloaded gix-chunk v0.4.12 [INFO] [stderr] Downloaded gix-actor v0.35.6 [INFO] [stderr] Downloaded gix-date v0.10.7 [INFO] [stderr] Downloaded gix-negotiate v0.22.0 [INFO] [stderr] Downloaded gix-sec v0.12.2 [INFO] [stderr] Downloaded gix-lock v19.0.0 [INFO] [stderr] Downloaded gix-glob v0.22.1 [INFO] [stderr] Downloaded jiff-tzdb-platform v0.1.3 [INFO] [stderr] Downloaded human_format v1.1.0 [INFO] [stderr] Downloaded rustc-stable-hash v0.1.2 [INFO] [stderr] Downloaded io-close v0.3.7 [INFO] [stderr] Downloaded gix-hashtable v0.10.0 [INFO] [stderr] Downloaded schemafy_lib v0.6.0 [INFO] [stderr] Downloaded gix-quote v0.6.1 [INFO] [stderr] Downloaded faster-hex v0.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 5166a79ec52515dc8a2cb094ef97711e993b8333490ae9ca0901a51d179ca5f0 [INFO] running `Command { std: "docker" "start" "-a" "5166a79ec52515dc8a2cb094ef97711e993b8333490ae9ca0901a51d179ca5f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5166a79ec52515dc8a2cb094ef97711e993b8333490ae9ca0901a51d179ca5f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5166a79ec52515dc8a2cb094ef97711e993b8333490ae9ca0901a51d179ca5f0", kill_on_drop: false }` [INFO] [stdout] 5166a79ec52515dc8a2cb094ef97711e993b8333490ae9ca0901a51d179ca5f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 8ae980a38dbd7a8b03cce18b42ef6114db484982283e294edb97091e35659249 [INFO] running `Command { std: "docker" "start" "-a" "8ae980a38dbd7a8b03cce18b42ef6114db484982283e294edb97091e35659249", kill_on_drop: false }` [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking gix-trace v0.1.15 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking unicode-normalization v0.1.25 [INFO] [stderr] Checking human_format v1.1.0 [INFO] [stderr] Checking zlib-rs v0.5.2 [INFO] [stderr] Checking bytesize v2.2.0 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Compiling heapless v0.8.0 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking hash32 v0.3.1 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking jiff v0.2.16 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking unicode-bom v2.0.3 [INFO] [stderr] Checking sha1-checked v0.10.0 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Compiling cc v1.2.46 [INFO] [stderr] Checking kstring v2.0.2 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking gix-sec v0.12.2 [INFO] [stderr] Checking filetime v0.2.26 [INFO] [stderr] Checking prodash v30.0.1 [INFO] [stderr] Compiling rustls v0.23.35 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Checking compression-core v0.4.30 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking webpki-roots v1.0.4 [INFO] [stderr] Checking faster-hex v0.10.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Checking compression-codecs v0.4.32 [INFO] [stderr] Checking libz-rs-sys v0.5.2 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling erased-serde v0.4.9 [INFO] [stderr] Compiling uriparse v0.6.4 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling camino v1.2.1 [INFO] [stderr] Checking imara-diff v0.1.8 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking uluru v3.1.0 [INFO] [stderr] Checking ordered-float v2.10.1 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Checking clru v0.6.2 [INFO] [stderr] Checking io-close v0.3.7 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Checking serde-untagged v0.1.9 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Compiling build-context v0.1.3 [INFO] [stderr] Checking bstr v1.12.1 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking clap_builder v4.5.51 [INFO] [stderr] Checking gix-utils v0.3.1 [INFO] [stderr] Checking globset v0.4.18 [INFO] [stderr] Checking xattr v1.6.1 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking toml-span v0.6.0 [INFO] [stderr] Checking env_home v0.1.0 [INFO] [stderr] Checking humantime v2.3.0 [INFO] [stderr] Checking rustc-stable-hash v0.1.2 [INFO] [stderr] Checking which v8.0.0 [INFO] [stderr] Checking tar v0.4.44 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking ignore v0.4.25 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking toml_parser v1.0.4 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking serde_spanned v1.0.3 [INFO] [stderr] Checking toml_datetime v0.7.3 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking etcetera v0.10.0 [INFO] [stderr] Checking similar v2.7.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking toml v0.9.8 [INFO] [stderr] Checking insta v1.43.2 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking async-compression v0.4.33 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling maybe-async v0.2.10 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling snafu-derive v0.8.9 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Checking pear v0.2.9 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking gix-validate v0.10.1 [INFO] [stderr] Checking gix-date v0.10.7 [INFO] [stderr] Checking gix-chunk v0.4.12 [INFO] [stderr] Checking gix-quote v0.6.1 [INFO] [stderr] Checking gix-packetline-blocking v0.19.3 [INFO] [stderr] Checking gix-bitmap v0.2.15 [INFO] [stderr] Checking gix-packetline v0.19.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking snafu v0.8.9 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking gix-actor v0.35.6 [INFO] [stderr] Checking gix-path v0.10.21 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking rustls-webpki v0.103.8 [INFO] [stderr] Checking gix-mailmap v0.27.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking gix-features v0.44.1 [INFO] [stderr] Checking gix-config-value v0.15.3 [INFO] [stderr] Checking gix-command v0.6.3 [INFO] [stderr] Checking gix-prompt v0.11.2 [INFO] [stderr] Checking gix-hash v0.20.1 [INFO] [stderr] Checking gix-fs v0.17.0 [INFO] [stderr] Checking gix-glob v0.22.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking clap v4.5.51 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking gix-tempfile v19.0.1 [INFO] [stderr] Checking gix-attributes v0.28.1 [INFO] [stderr] Checking gix-ignore v0.17.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking gix-hashtable v0.10.0 [INFO] [stderr] Checking gix-commitgraph v0.30.1 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking cargo-platform v0.2.0 [INFO] [stderr] Checking smol_str v0.3.2 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking gix-object v0.51.1 [INFO] [stderr] Checking gix-lock v19.0.0 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking humantime-serde v1.1.1 [INFO] [stderr] Checking gix-pathspec v0.13.0 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking gix-shallow v0.6.0 [INFO] [stderr] Compiling schemafy_core v0.6.0 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking icu_properties v2.1.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Compiling schemafy_lib v0.6.0 [INFO] [stderr] Compiling serde-cyclonedx v0.10.0 [INFO] [stderr] Checking gix-revwalk v0.22.0 [INFO] [stderr] Checking gix-ref v0.54.1 [INFO] [stderr] Checking gix-filter v0.21.0 [INFO] [stderr] Checking gix-pack v0.61.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking gix-traverse v0.48.0 [INFO] [stderr] Checking gix-revision v0.36.1 [INFO] [stderr] Checking gix-negotiate v0.22.0 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking gix-discover v0.42.0 [INFO] [stderr] Checking gix-config v0.47.1 [INFO] [stderr] Checking gix-index v0.42.1 [INFO] [stderr] Checking gix-worktree-stream v0.23.0 [INFO] [stderr] Checking gix-refspec v0.32.0 [INFO] [stderr] Checking gix-archive v0.23.1 [INFO] [stderr] Checking gix-url v0.33.1 [INFO] [stderr] Checking cargo-util-schemas v0.2.0 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking gix-credentials v0.31.1 [INFO] [stderr] Checking gix-odb v0.71.1 [INFO] [stderr] Checking hyper-util v0.1.18 [INFO] [stderr] Checking gix-worktree v0.43.1 [INFO] [stderr] Checking gix-submodule v0.21.0 [INFO] [stderr] Checking gix-diff v0.54.1 [INFO] [stderr] Checking gix-dir v0.16.0 [INFO] [stderr] Checking gix-worktree-state v0.21.0 [INFO] [stderr] Checking cargo_metadata v0.20.0 [INFO] [stderr] Checking gix-blame v0.4.0 [INFO] [stderr] Checking gix-status v0.21.1 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Checking gix-transport v0.49.1 [INFO] [stderr] Checking tame-index v0.24.1 [INFO] [stderr] Checking gix-protocol v0.52.1 [INFO] [stderr] Checking gix v0.74.1 [INFO] [stderr] Checking cgx-core v0.0.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: lint `clippy::string_to_string` has been removed: `clippy::implicit_clone` covers those cases [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W clippy::string_to_string` [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `clippy::match_on_vec_items` has been removed: `clippy::indexing_slicing` covers indexing and slicing on `Vec<_>` [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W clippy::match_on_vec_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `clippy::empty_enum` has been renamed to `clippy::empty_enums` [INFO] [stdout] | [INFO] [stdout] = help: use the new name `clippy::empty_enums` [INFO] [stdout] = note: requested on the command line with `-W clippy::empty_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `clippy::string_to_string` has been removed: `clippy::implicit_clone` covers those cases [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W clippy::string_to_string` [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `clippy::match_on_vec_items` has been removed: `clippy::indexing_slicing` covers indexing and slicing on `Vec<_>` [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W clippy::match_on_vec_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `clippy::empty_enum` has been renamed to `clippy::empty_enums` [INFO] [stdout] | [INFO] [stdout] = help: use the new name `clippy::empty_enums` [INFO] [stdout] = note: requested on the command line with `-W clippy::empty_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:107:53 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn load(config: &Config, args: &CliArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:187:10 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> Result<(Option, Vec, Vec)>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:195:73 [INFO] [stdout] | [INFO] [stdout] 195 | fn build(&self, krate: &DownloadedCrate, options: &BuildOptions) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/builder.rs:262:69 [INFO] [stdout] | [INFO] [stdout] 262 | .get_or_build_binary(&krate.resolved, options.as_ref(), || { [INFO] [stdout] | _____________________________________________________________________^ [INFO] [stdout] 263 | | self.build_uncached(krate, options.as_ref(), &metadata) [INFO] [stdout] 264 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | ) -> Result<(Option, Vec, Vec)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:339:10 [INFO] [stdout] | [INFO] [stdout] 339 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:453:10 [INFO] [stdout] | [INFO] [stdout] 453 | ) -> Result<(PathBuf, crate::sbom::CycloneDx)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:491:85 [INFO] [stdout] | [INFO] [stdout] 491 | fn prepare_build_dir(&self, krate: &DownloadedCrate, options: &BuildOptions) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:530:71 [INFO] [stdout] | [INFO] [stdout] 530 | fn resolve_package_name(metadata: &Metadata, crate_name: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/builder.rs:540:20 [INFO] [stdout] | [INFO] [stdout] 540 | if workspace_members.iter().any(|name| *name == crate_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `workspace_members.contains(&crate_name)` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:91:78 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) fn get_or_resolve(&self, spec: &CrateSpec, resolver: F) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:182:10 [INFO] [stdout] | [INFO] [stdout] 182 | ) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:273:49 [INFO] [stdout] | [INFO] [stdout] 273 | fn get_resolved(&self, spec: &CrateSpec) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:288:75 [INFO] [stdout] | [INFO] [stdout] 288 | fn put_resolved(&self, spec: &CrateSpec, resolved: &ResolvedCrate) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:308:55 [INFO] [stdout] | [INFO] [stdout] 308 | fn resolve_cache_path(&self, spec: &CrateSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:319:47 [INFO] [stdout] | [INFO] [stdout] 319 | fn compute_spec_hash(spec: &CrateSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:343:62 [INFO] [stdout] | [INFO] [stdout] 343 | fn get_cached_source(&self, resolved: &ResolvedCrate) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:357:62 [INFO] [stdout] | [INFO] [stdout] 357 | fn source_cache_path(&self, resolved: &ResolvedCrate) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:493:10 [INFO] [stdout] | [INFO] [stdout] 493 | ) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cargo.rs:117:78 [INFO] [stdout] | [INFO] [stdout] 117 | fn metadata(&self, source_dir: &Path, options: &CargoMetadataOptions) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cargo.rs:154:90 [INFO] [stdout] | [INFO] [stdout] 154 | fn build(&self, source_dir: &Path, package: Option<&str>, options: &BuildOptions) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cargo.rs:158:56 [INFO] [stdout] | [INFO] [stdout] 158 | pub(crate) fn find_cargo(reporter: MessageReporter) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/cargo.rs:401:33 [INFO] [stdout] | [INFO] [stdout] 401 | ... kinds.iter().any(|k| *k == cargo_metadata::TargetKind::Bin) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `kinds.contains(&cargo_metadata::TargetKind::Bin)` [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: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/cargo.rs:404:33 [INFO] [stdout] | [INFO] [stdout] 404 | ... kinds.iter().any(|k| *k == cargo_metadata::TargetKind::Bin) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `kinds.contains(&cargo_metadata::TargetKind::Bin)` [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: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/cargo.rs:408:33 [INFO] [stdout] | [INFO] [stdout] 408 | ... kinds.iter().any(|k| *k == cargo_metadata::TargetKind::Example) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `kinds.contains(&cargo_metadata::TargetKind::Example)` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cargo.rs:471:50 [INFO] [stdout] | [INFO] [stdout] 471 | fn find_executable(name: &str, env_var: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/config.rs:215:36 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn load(args: &CliArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/config.rs:223:57 [INFO] [stdout] | [INFO] [stdout] 223 | pub fn load_from_dir(cwd: &Path, args: &CliArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/config.rs:328:61 [INFO] [stdout] | [INFO] [stdout] 328 | fn discover_config_files(cwd: &Path, args: &CliArgs) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/config.rs:392:27 [INFO] [stdout] | [INFO] [stdout] 392 | fn get_user_dirs() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cratespec.rs:108:53 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn load(config: &Config, args: &CliArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cratespec.rs:356:52 [INFO] [stdout] | [INFO] [stdout] 356 | fn parse_crate_name_and_version(spec: &str) -> Result<(String, Option)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cratespec.rs:365:44 [INFO] [stdout] | [INFO] [stdout] 365 | fn parse_owner_repo(repo_str: &str) -> Result<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/downloader.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | fn download(&self, krate: ResolvedCrate) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/downloader.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/downloader.rs:203:86 [INFO] [stdout] | [INFO] [stdout] 203 | fn download_git(&self, krate: &ResolvedCrate, repo_url: &str, commit: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct pattern is not needed for a unit variant [INFO] [stdout] --> src/downloader.rs:256:37 [INFO] [stdout] | [INFO] [stdout] 256 | ResolvedSource::CratesIo { .. } | ResolvedSource::Registry { .. } => { [INFO] [stdout] | ^^^^^^^ help: remove the struct pattern [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_struct_pattern [INFO] [stdout] = note: `#[warn(clippy::unneeded_struct_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/downloader.rs:261:46 [INFO] [stdout] | [INFO] [stdout] 261 | .get_or_download(&krate, |download_path| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] ... | [INFO] [stdout] 289 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map().unwrap_or_else()` on an `Option` value [INFO] [stdout] --> src/error.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | exit_code.map(|c| c.to_string()).unwrap_or_else(|| "unknown".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `exit_code.map_or_else(|| "unknown".to_string(), |c| c.to_string())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or [INFO] [stdout] = note: requested on the command line with `-W clippy::map-unwrap-or` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/helpers.rs:9:59 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn copy_source_tree(src: &Path, dst: &Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:60:44 [INFO] [stdout] | [INFO] [stdout] 60 | fn resolve(&self, spec: &CrateSpec) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:141:10 [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:369:10 [INFO] [stdout] | [INFO] [stdout] 369 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/resolver.rs:441:41 [INFO] [stdout] | [INFO] [stdout] 441 | self.cache.get_or_resolve(spec, || self.inner.resolve(spec)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runner.rs:40:51 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn run(bin_path: &Path, args: &[OsString]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runner.rs:63:56 [INFO] [stdout] | [INFO] [stdout] 63 | fn exec_replace(bin_path: &Path, args: &[OsString]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:176:78 [INFO] [stdout] | [INFO] [stdout] 176 | fn build_main_component(resolved: &ResolvedCrate, options: &BuildOptions) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:296:6 [INFO] [stdout] | [INFO] [stdout] 296 | ) -> Result<( [INFO] [stdout] | ______^ [INFO] [stdout] 297 | | Vec, [INFO] [stdout] 298 | | std::collections::HashMap, [INFO] [stdout] 299 | | )> { [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:379:67 [INFO] [stdout] | [INFO] [stdout] 379 | fn build_dependency_graph(metadata: &cargo_metadata::Metadata) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:433:50 [INFO] [stdout] | [INFO] [stdout] 433 | fn build_metadata(main_component: &Component) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lib.rs:45:72 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn new(config: Config, reporter: messages::MessageReporter) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lib.rs:84:80 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn run(&self, crate_spec: &CrateSpec, build_options: &BuildOptions) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lib.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | ) -> Result<( [INFO] [stdout] | __________^ [INFO] [stdout] 122 | | String, [INFO] [stdout] 123 | | Option, [INFO] [stdout] 124 | | Vec, [INFO] [stdout] 125 | | Vec, [INFO] [stdout] 126 | | )> { [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:107:53 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn load(config: &Config, args: &CliArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:187:10 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> Result<(Option, Vec, Vec)>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:195:73 [INFO] [stdout] | [INFO] [stdout] 195 | fn build(&self, krate: &DownloadedCrate, options: &BuildOptions) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/builder.rs:262:69 [INFO] [stdout] | [INFO] [stdout] 262 | .get_or_build_binary(&krate.resolved, options.as_ref(), || { [INFO] [stdout] | _____________________________________________________________________^ [INFO] [stdout] 263 | | self.build_uncached(krate, options.as_ref(), &metadata) [INFO] [stdout] 264 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | ) -> Result<(Option, Vec, Vec)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:339:10 [INFO] [stdout] | [INFO] [stdout] 339 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:453:10 [INFO] [stdout] | [INFO] [stdout] 453 | ) -> Result<(PathBuf, crate::sbom::CycloneDx)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:491:85 [INFO] [stdout] | [INFO] [stdout] 491 | fn prepare_build_dir(&self, krate: &DownloadedCrate, options: &BuildOptions) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/builder.rs:530:71 [INFO] [stdout] | [INFO] [stdout] 530 | fn resolve_package_name(metadata: &Metadata, crate_name: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/builder.rs:540:20 [INFO] [stdout] | [INFO] [stdout] 540 | if workspace_members.iter().any(|name| *name == crate_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `workspace_members.contains(&crate_name)` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:91:78 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) fn get_or_resolve(&self, spec: &CrateSpec, resolver: F) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:182:10 [INFO] [stdout] | [INFO] [stdout] 182 | ) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:273:49 [INFO] [stdout] | [INFO] [stdout] 273 | fn get_resolved(&self, spec: &CrateSpec) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:288:75 [INFO] [stdout] | [INFO] [stdout] 288 | fn put_resolved(&self, spec: &CrateSpec, resolved: &ResolvedCrate) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:308:55 [INFO] [stdout] | [INFO] [stdout] 308 | fn resolve_cache_path(&self, spec: &CrateSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:319:47 [INFO] [stdout] | [INFO] [stdout] 319 | fn compute_spec_hash(spec: &CrateSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:343:62 [INFO] [stdout] | [INFO] [stdout] 343 | fn get_cached_source(&self, resolved: &ResolvedCrate) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:357:62 [INFO] [stdout] | [INFO] [stdout] 357 | fn source_cache_path(&self, resolved: &ResolvedCrate) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:446:10 [INFO] [stdout] | [INFO] [stdout] 446 | ) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cache.rs:493:10 [INFO] [stdout] | [INFO] [stdout] 493 | ) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:746:54 [INFO] [stdout] | [INFO] [stdout] 746 | let result = cache.get_or_resolve(&spec, || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 747 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 748 | | Ok(resolved_clone.clone()) [INFO] [stdout] 749 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:770:54 [INFO] [stdout] | [INFO] [stdout] 770 | let result = cache.get_or_resolve(&spec, || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 771 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 772 | | Ok(test_resolved_alt()) [INFO] [stdout] 773 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:794:54 [INFO] [stdout] | [INFO] [stdout] 794 | let result = cache.get_or_resolve(&spec, || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 795 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 796 | | Ok(new_resolved_clone.clone()) [INFO] [stdout] 797 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:813:54 [INFO] [stdout] | [INFO] [stdout] 813 | let result = cache.get_or_resolve(&spec, || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 814 | | Err( [INFO] [stdout] 815 | | error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::new( [INFO] [stdout] 816 | | std::io::ErrorKind::Other, [INFO] [stdout] ... | [INFO] [stdout] 820 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/cache.rs:815:75 [INFO] [stdout] | [INFO] [stdout] 815 | error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::new( [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 816 | | std::io::ErrorKind::Other, [INFO] [stdout] 817 | | "network error", [INFO] [stdout] 818 | | ))), [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 815 ~ error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::other( [INFO] [stdout] 816 ~ "network error", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:831:54 [INFO] [stdout] | [INFO] [stdout] 831 | let result = cache.get_or_resolve(&spec, || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 832 | | Err( [INFO] [stdout] 833 | | error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::new( [INFO] [stdout] 834 | | std::io::ErrorKind::Other, [INFO] [stdout] ... | [INFO] [stdout] 838 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/cache.rs:833:75 [INFO] [stdout] | [INFO] [stdout] 833 | error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::new( [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 834 | | std::io::ErrorKind::Other, [INFO] [stdout] 835 | | "network error", [INFO] [stdout] 836 | | ))), [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 833 ~ error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::other( [INFO] [stdout] 834 ~ "network error", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:852:54 [INFO] [stdout] | [INFO] [stdout] 852 | let result = cache.get_or_resolve(&spec, || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 853 | | Err(error::IoSnafu { [INFO] [stdout] 854 | | path: PathBuf::from("/fake/test/path"), [INFO] [stdout] ... | [INFO] [stdout] 857 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/cache.rs:856:29 [INFO] [stdout] | [INFO] [stdout] 856 | .into_error(std::io::Error::new(std::io::ErrorKind::Other, "io error"))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 856 - .into_error(std::io::Error::new(std::io::ErrorKind::Other, "io error"))) [INFO] [stdout] 856 + .into_error(std::io::Error::other("io error"))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:875:54 [INFO] [stdout] | [INFO] [stdout] 875 | let result = cache.get_or_resolve(&spec, || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 876 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 877 | | error::VersionMismatchSnafu { [INFO] [stdout] 878 | | requirement: "2.0.0".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 881 | | .fail() [INFO] [stdout] 882 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:898:54 [INFO] [stdout] | [INFO] [stdout] 898 | let result = cache.get_or_resolve(&spec, || Ok(new_resolved.clone())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:921:40 [INFO] [stdout] | [INFO] [stdout] 921 | .get_or_resolve(&spec, || { [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 922 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 923 | | Ok(new_resolved_clone.clone()) [INFO] [stdout] 924 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:945:54 [INFO] [stdout] | [INFO] [stdout] 945 | let result = cache.get_or_resolve(&spec, || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 946 | | Err( [INFO] [stdout] 947 | | error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::new( [INFO] [stdout] 948 | | std::io::ErrorKind::Other, [INFO] [stdout] ... | [INFO] [stdout] 952 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/cache.rs:947:75 [INFO] [stdout] | [INFO] [stdout] 947 | error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::new( [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 948 | | std::io::ErrorKind::Other, [INFO] [stdout] 949 | | "network error", [INFO] [stdout] 950 | | ))), [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 947 ~ error::RegistrySnafu.into_error(tame_index::Error::Io(std::io::Error::other( [INFO] [stdout] 948 ~ "network error", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:972:59 [INFO] [stdout] | [INFO] [stdout] 972 | let result = cache.get_or_download(&resolved, |_download_path| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 973 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 974 | | Err(error::IoSnafu { [INFO] [stdout] 975 | | path: PathBuf::from("/fake/test/path"), [INFO] [stdout] ... | [INFO] [stdout] 980 | | ))) [INFO] [stdout] 981 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/cache.rs:977:29 [INFO] [stdout] | [INFO] [stdout] 977 | .into_error(std::io::Error::new( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 978 | | std::io::ErrorKind::Other, [INFO] [stdout] 979 | | "should not be called", [INFO] [stdout] 980 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 977 ~ .into_error(std::io::Error::other( [INFO] [stdout] 978 ~ "should not be called", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:997:59 [INFO] [stdout] | [INFO] [stdout] 997 | let result = cache.get_or_download(&resolved, |download_path| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 998 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 999 | | // Create a test file to simulate successful download [INFO] [stdout] 1000 | | fs::create_dir_all(download_path).unwrap(); [INFO] [stdout] 1001 | | fs::write(download_path.join("test.txt"), b"test content").unwrap(); [INFO] [stdout] 1002 | | Ok(()) [INFO] [stdout] 1003 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:1018:59 [INFO] [stdout] | [INFO] [stdout] 1018 | let result = cache.get_or_download(&resolved, |_download_path| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 1019 | | Err(error::IoSnafu { [INFO] [stdout] 1020 | | path: PathBuf::from("/fake/test/path"), [INFO] [stdout] ... | [INFO] [stdout] 1023 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/cache.rs:1022:29 [INFO] [stdout] | [INFO] [stdout] 1022 | .into_error(std::io::Error::new(std::io::ErrorKind::Other, "download failed"))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 1022 - .into_error(std::io::Error::new(std::io::ErrorKind::Other, "download failed"))) [INFO] [stdout] 1022 + .into_error(std::io::Error::other("download failed"))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:1037:59 [INFO] [stdout] | [INFO] [stdout] 1037 | let result = cache.get_or_download(&resolved, |download_path| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 1038 | | // Create multiple files to simulate real download [INFO] [stdout] 1039 | | fs::create_dir_all(download_path).unwrap(); [INFO] [stdout] 1040 | | fs::write(download_path.join("Cargo.toml"), b"[package]\nname = \"test\"").unwrap(); [INFO] [stdout] 1041 | | fs::write(download_path.join("lib.rs"), b"pub fn test() {}").unwrap(); [INFO] [stdout] 1042 | | Ok(()) [INFO] [stdout] 1043 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:1060:59 [INFO] [stdout] | [INFO] [stdout] 1060 | let result = cache.get_or_download(&resolved, |download_path| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 1061 | | // Create some files but then fail [INFO] [stdout] 1062 | | fs::create_dir_all(download_path).unwrap(); [INFO] [stdout] 1063 | | fs::write(download_path.join("partial.txt"), b"partial data").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 1070 | | ))) [INFO] [stdout] 1071 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/cache.rs:1067:29 [INFO] [stdout] | [INFO] [stdout] 1067 | .into_error(std::io::Error::new( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 1068 | | std::io::ErrorKind::Other, [INFO] [stdout] 1069 | | "simulated failure", [INFO] [stdout] 1070 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 1067 ~ .into_error(std::io::Error::other( [INFO] [stdout] 1068 ~ "simulated failure", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:1097:60 [INFO] [stdout] | [INFO] [stdout] 1097 | let result1 = cache.get_or_download(&resolved, |download_path| { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 1098 | | fs::create_dir_all(download_path).unwrap(); [INFO] [stdout] 1099 | | fs::write(download_path.join("version.txt"), b"download1").unwrap(); [INFO] [stdout] 1100 | | Ok(()) [INFO] [stdout] 1101 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:1112:60 [INFO] [stdout] | [INFO] [stdout] 1112 | let result2 = cache.get_or_download(&resolved, |download_path| { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 1113 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 1114 | | fs::create_dir_all(download_path).unwrap(); [INFO] [stdout] 1115 | | fs::write(download_path.join("version.txt"), b"download2").unwrap(); [INFO] [stdout] 1116 | | Ok(()) [INFO] [stdout] 1117 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/cache.rs:1143:59 [INFO] [stdout] | [INFO] [stdout] 1143 | let result = cache.get_or_download(&resolved, |download_path| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 1144 | | *call_count_clone.borrow_mut() += 1; [INFO] [stdout] 1145 | | fs::create_dir_all(download_path).unwrap(); [INFO] [stdout] 1146 | | fs::write(download_path.join("fresh.txt"), b"fresh content").unwrap(); [INFO] [stdout] 1147 | | Ok(()) [INFO] [stdout] 1148 | | }); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cargo.rs:117:78 [INFO] [stdout] | [INFO] [stdout] 117 | fn metadata(&self, source_dir: &Path, options: &CargoMetadataOptions) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cargo.rs:154:90 [INFO] [stdout] | [INFO] [stdout] 154 | fn build(&self, source_dir: &Path, package: Option<&str>, options: &BuildOptions) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cargo.rs:158:56 [INFO] [stdout] | [INFO] [stdout] 158 | pub(crate) fn find_cargo(reporter: MessageReporter) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/cargo.rs:401:33 [INFO] [stdout] | [INFO] [stdout] 401 | ... kinds.iter().any(|k| *k == cargo_metadata::TargetKind::Bin) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `kinds.contains(&cargo_metadata::TargetKind::Bin)` [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: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/cargo.rs:404:33 [INFO] [stdout] | [INFO] [stdout] 404 | ... kinds.iter().any(|k| *k == cargo_metadata::TargetKind::Bin) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `kinds.contains(&cargo_metadata::TargetKind::Bin)` [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: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/cargo.rs:408:33 [INFO] [stdout] | [INFO] [stdout] 408 | ... kinds.iter().any(|k| *k == cargo_metadata::TargetKind::Example) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `kinds.contains(&cargo_metadata::TargetKind::Example)` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cargo.rs:471:50 [INFO] [stdout] | [INFO] [stdout] 471 | fn find_executable(name: &str, env_var: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cli.rs:635:56 [INFO] [stdout] | [INFO] [stdout] 635 | fn parse_cratespec_from_args(args: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cli.rs:1138:60 [INFO] [stdout] | [INFO] [stdout] 1138 | fn parse_build_options_from_args(args: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/config.rs:215:36 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn load(args: &CliArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/config.rs:223:57 [INFO] [stdout] | [INFO] [stdout] 223 | pub fn load_from_dir(cwd: &Path, args: &CliArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/config.rs:328:61 [INFO] [stdout] | [INFO] [stdout] 328 | fn discover_config_files(cwd: &Path, args: &CliArgs) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/config.rs:392:27 [INFO] [stdout] | [INFO] [stdout] 392 | fn get_user_dirs() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cratespec.rs:108:53 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn load(config: &Config, args: &CliArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cratespec.rs:356:52 [INFO] [stdout] | [INFO] [stdout] 356 | fn parse_crate_name_and_version(spec: &str) -> Result<(String, Option)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/cratespec.rs:365:44 [INFO] [stdout] | [INFO] [stdout] 365 | fn parse_owner_repo(repo_str: &str) -> Result<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/downloader.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | fn download(&self, krate: ResolvedCrate) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/downloader.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/downloader.rs:203:86 [INFO] [stdout] | [INFO] [stdout] 203 | fn download_git(&self, krate: &ResolvedCrate, repo_url: &str, commit: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct pattern is not needed for a unit variant [INFO] [stdout] --> src/downloader.rs:256:37 [INFO] [stdout] | [INFO] [stdout] 256 | ResolvedSource::CratesIo { .. } | ResolvedSource::Registry { .. } => { [INFO] [stdout] | ^^^^^^^ help: remove the struct pattern [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_struct_pattern [INFO] [stdout] = note: `#[warn(clippy::unneeded_struct_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/downloader.rs:261:46 [INFO] [stdout] | [INFO] [stdout] 261 | .get_or_download(&krate, |download_path| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] ... | [INFO] [stdout] 289 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map().unwrap_or_else()` on an `Option` value [INFO] [stdout] --> src/error.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | exit_code.map(|c| c.to_string()).unwrap_or_else(|| "unknown".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `exit_code.map_or_else(|| "unknown".to_string(), |c| c.to_string())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or [INFO] [stdout] = note: requested on the command line with `-W clippy::map-unwrap-or` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/helpers.rs:9:59 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn copy_source_tree(src: &Path, dst: &Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:60:44 [INFO] [stdout] | [INFO] [stdout] 60 | fn resolve(&self, spec: &CrateSpec) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:141:10 [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/resolver.rs:369:10 [INFO] [stdout] | [INFO] [stdout] 369 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/resolver.rs:441:41 [INFO] [stdout] | [INFO] [stdout] 441 | self.cache.get_or_resolve(spec, || self.inner.resolve(spec)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runner.rs:40:51 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn run(bin_path: &Path, args: &[OsString]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runner.rs:63:56 [INFO] [stdout] | [INFO] [stdout] 63 | fn exec_replace(bin_path: &Path, args: &[OsString]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:176:78 [INFO] [stdout] | [INFO] [stdout] 176 | fn build_main_component(resolved: &ResolvedCrate, options: &BuildOptions) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:296:6 [INFO] [stdout] | [INFO] [stdout] 296 | ) -> Result<( [INFO] [stdout] | ______^ [INFO] [stdout] 297 | | Vec, [INFO] [stdout] 298 | | std::collections::HashMap, [INFO] [stdout] 299 | | )> { [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:379:67 [INFO] [stdout] | [INFO] [stdout] 379 | fn build_dependency_graph(metadata: &cargo_metadata::Metadata) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:433:50 [INFO] [stdout] | [INFO] [stdout] 433 | fn build_metadata(main_component: &Component) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: item in documentation is missing backticks [INFO] [stdout] --> src/sbom.rs:471:15 [INFO] [stdout] | [INFO] [stdout] 471 | /// Get a CargoRunner for testing. [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown [INFO] [stdout] = note: requested on the command line with `-W clippy::doc-markdown` [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 471 - /// Get a CargoRunner for testing. [INFO] [stdout] 471 + /// Get a `CargoRunner` for testing. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/sbom.rs:480:87 [INFO] [stdout] | [INFO] [stdout] 480 | fn generate_sbom_for_testcase(testcase: &CrateTestCase, options: BuildOptions) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lib.rs:45:72 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn new(config: Config, reporter: messages::MessageReporter) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lib.rs:84:80 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn run(&self, crate_spec: &CrateSpec, build_options: &BuildOptions) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lib.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | ) -> Result<( [INFO] [stdout] | __________^ [INFO] [stdout] 122 | | String, [INFO] [stdout] 123 | | Option, [INFO] [stdout] 124 | | Vec, [INFO] [stdout] 125 | | Vec, [INFO] [stdout] 126 | | )> { [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | ConfigLoad { path: PathBuf, source: figment::Error }, [INFO] [stdout] | ---------------------------------------------------- the largest variant contains at least 232 bytes [INFO] [stdout] ... [INFO] [stdout] 186 | ConfigExtract { source: figment::Error }, [INFO] [stdout] | ---------------------------------------- the variant `ConfigExtract` contains at least 208 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "8ae980a38dbd7a8b03cce18b42ef6114db484982283e294edb97091e35659249", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ae980a38dbd7a8b03cce18b42ef6114db484982283e294edb97091e35659249", kill_on_drop: false }` [INFO] [stdout] 8ae980a38dbd7a8b03cce18b42ef6114db484982283e294edb97091e35659249