[INFO] cloning repository https://github.com/auser/export-type [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/auser/export-type" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fauser%2Fexport-type", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fauser%2Fexport-type'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca32cca44f518e4741eb062bf92eebc0f579df86 [INFO] linting auser/export-type against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fauser%2Fexport-type" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/auser/export-type [INFO] finished tweaking git repo https://github.com/auser/export-type [INFO] tweaked toml for git repo https://github.com/auser/export-type written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/auser/export-type on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/auser/export-type already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror v2.0.3 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.97 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.97 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.97 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.97 [INFO] [stderr] Downloaded js-sys v0.3.74 [INFO] [stderr] Downloaded wasm-bindgen v0.2.97 [INFO] [stderr] Downloaded thiserror-impl v2.0.3 [INFO] [stderr] Downloaded cc v1.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 1657438d9039d5cfec403c2d9f6257f3c2514b9db211547a1b46ed10ffad4b03 [INFO] running `Command { std: "docker" "start" "-a" "1657438d9039d5cfec403c2d9f6257f3c2514b9db211547a1b46ed10ffad4b03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1657438d9039d5cfec403c2d9f6257f3c2514b9db211547a1b46ed10ffad4b03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1657438d9039d5cfec403c2d9f6257f3c2514b9db211547a1b46ed10ffad4b03", kill_on_drop: false }` [INFO] [stdout] 1657438d9039d5cfec403c2d9f6257f3c2514b9db211547a1b46ed10ffad4b03 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] bb46c8cc811715d76c4cf940f668678f7ab38875a76b86ad07c14e551f7b90be [INFO] running `Command { std: "docker" "start" "-a" "bb46c8cc811715d76c4cf940f668678f7ab38875a76b86ad07c14e551f7b90be", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Checking cpufeatures v0.2.16 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Checking num-traits v0.2.19 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling thiserror v2.0.3 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Checking pretty_assertions v1.4.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v2.0.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking export-type v0.1.15 (/opt/rustwide/workdir) [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stdout] warning: all variants have the same postfix: `Case` [INFO] [stdout] --> src/case.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / pub enum RenameRule { [INFO] [stdout] 5 | | CamelCase, [INFO] [stdout] 6 | | PascalCase, [INFO] [stdout] 7 | | SnakeCase, [INFO] [stdout] 8 | | ScreamingSnakeCase, [INFO] [stdout] 9 | | KebabCase, [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same postfix: `Case` [INFO] [stdout] --> src/case.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / pub enum RenameRule { [INFO] [stdout] 5 | | CamelCase, [INFO] [stdout] 6 | | PascalCase, [INFO] [stdout] 7 | | SnakeCase, [INFO] [stdout] 8 | | ScreamingSnakeCase, [INFO] [stdout] 9 | | KebabCase, [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/lang/typescript.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 132 - pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] 132 + pub fn write_single_file(path: &Path) -> TSTypeResult<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/lang/typescript.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 132 - pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] 132 + pub fn write_single_file(path: &Path) -> TSTypeResult<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/parsers.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | .map(|v| parse_variant(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `parse_variant` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or_else` to construct default value [INFO] [stdout] --> src/parsers.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | .unwrap_or_else(|| "".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/parsers.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | .map(|v| parse_variant(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `parse_variant` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or_else` to construct default value [INFO] [stdout] --> src/parsers.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | .unwrap_or_else(|| "".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 195 | | ... return Ok(Type::Array(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 196 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 194 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 224 | | ... return Ok(Type::Optional(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 225 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 222 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 223 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 195 | | ... return Ok(Type::Array(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 196 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 194 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:57:63 [INFO] [stdout] | [INFO] [stdout] 57 | if std::env::var("CARGO_PUBLISH").is_err() && !std::env::var("OUT_DIR").is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::env::var("OUT_DIR").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 224 | | ... return Ok(Type::Optional(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 225 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 222 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 223 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:57:63 [INFO] [stdout] | [INFO] [stdout] 57 | if std::env::var("CARGO_PUBLISH").is_err() && !std::env::var("OUT_DIR").is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::env::var("OUT_DIR").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Compiling rsa v0.9.7 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking sqlx-core v0.8.2 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Checking sqlx-mysql v0.8.2 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stdout] warning: all variants have the same postfix: `Case` [INFO] [stdout] --> src/case.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / pub enum RenameRule { [INFO] [stdout] 5 | | CamelCase, [INFO] [stdout] 6 | | PascalCase, [INFO] [stdout] 7 | | SnakeCase, [INFO] [stdout] 8 | | ScreamingSnakeCase, [INFO] [stdout] 9 | | KebabCase, [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/lang/typescript.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 132 - pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] 132 + pub fn write_single_file(path: &Path) -> TSTypeResult<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/parsers.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | .map(|v| parse_variant(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `parse_variant` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or_else` to construct default value [INFO] [stdout] --> src/parsers.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | .unwrap_or_else(|| "".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 195 | | ... return Ok(Type::Array(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 196 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 194 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 224 | | ... return Ok(Type::Optional(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 225 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 222 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 223 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "bb46c8cc811715d76c4cf940f668678f7ab38875a76b86ad07c14e551f7b90be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb46c8cc811715d76c4cf940f668678f7ab38875a76b86ad07c14e551f7b90be", kill_on_drop: false }` [INFO] [stdout] bb46c8cc811715d76c4cf940f668678f7ab38875a76b86ad07c14e551f7b90be