[INFO] fetching crate filigree-cli 0.4.1... [INFO] linting filigree-cli-0.4.1 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate filigree-cli 0.4.1 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate filigree-cli 0.4.1 [INFO] finished tweaking crates.io crate filigree-cli 0.4.1 [INFO] tweaked toml for crates.io crate filigree-cli 0.4.1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate filigree-cli 0.4.1 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 filigree-cli 0.4.1 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 windows-targets v0.52.3 [INFO] [stderr] Downloaded spin v0.5.2 [INFO] [stderr] Downloaded itoa v1.0.10 [INFO] [stderr] Downloaded time-macros v0.2.18 [INFO] [stderr] Downloaded phf_codegen v0.11.2 [INFO] [stderr] Downloaded iana-time-zone v0.1.60 [INFO] [stderr] Downloaded globset v0.4.14 [INFO] [stderr] Downloaded atoi v2.0.0 [INFO] [stderr] Downloaded event-listener v5.3.1 [INFO] [stderr] Downloaded etcetera v0.8.0 [INFO] [stderr] Downloaded dotenvy v0.15.7 [INFO] [stderr] Downloaded base64ct v1.6.0 [INFO] [stderr] Downloaded foreign-types v0.3.2 [INFO] [stderr] Downloaded rustls-native-certs v0.6.3 [INFO] [stderr] Downloaded cssparser-macros v0.6.1 [INFO] [stderr] Downloaded clap v4.5.1 [INFO] [stderr] Downloaded diffy v0.3.0 [INFO] [stderr] Downloaded error-stack v0.5.0 [INFO] [stderr] Downloaded encode_unicode v0.3.6 [INFO] [stderr] Downloaded unicode-width v0.1.11 [INFO] [stderr] Downloaded cargo_toml v0.17.2 [INFO] [stderr] Downloaded anstyle-query v1.0.2 [INFO] [stderr] Downloaded anstyle-parse v0.2.3 [INFO] [stderr] Downloaded anstyle-wincon v3.0.2 [INFO] [stderr] Downloaded clap_builder v4.5.1 [INFO] [stderr] Downloaded hyper v1.2.0 [INFO] [stderr] Downloaded axum v0.7.4 [INFO] [stderr] Downloaded reqwest v0.11.24 [INFO] [stderr] Downloaded hyper v0.14.28 [INFO] [stderr] Downloaded fxhash v0.2.1 [INFO] [stderr] Downloaded anstream v0.6.13 [INFO] [stderr] Downloaded openssl-sys v0.9.101 [INFO] [stderr] Downloaded h2 v0.4.4 [INFO] [stderr] Downloaded jsonschema v0.17.1 [INFO] [stderr] Downloaded num-bigint v0.4.4 [INFO] [stderr] Downloaded openssl v0.10.63 [INFO] [stderr] Downloaded security-framework v2.9.2 [INFO] [stderr] Downloaded web-sys v0.3.67 [INFO] [stderr] Downloaded clap_lex v0.7.0 [INFO] [stderr] Downloaded strsim v0.11.0 [INFO] [stderr] Downloaded markup5ever v0.11.0 [INFO] [stderr] Downloaded phf v0.10.1 [INFO] [stderr] Downloaded phf_generator v0.10.0 [INFO] [stderr] Downloaded rustc_version v0.4.0 [INFO] [stderr] Downloaded bit-set v0.5.3 [INFO] [stderr] Downloaded unicode-segmentation v1.11.0 [INFO] [stderr] Downloaded shell-words v1.1.0 [INFO] [stderr] Downloaded headers v0.4.0 [INFO] [stderr] Downloaded axum-macros v0.4.1 [INFO] [stderr] Downloaded matchit v0.7.3 [INFO] [stderr] Downloaded clap_derive v4.5.0 [INFO] [stderr] Downloaded string_cache_codegen v0.5.2 [INFO] [stderr] Downloaded futf v0.1.5 [INFO] [stderr] Downloaded mac v0.1.1 [INFO] [stderr] Downloaded libsqlite3-sys v0.28.0 [INFO] [stderr] Downloaded tendril v0.4.3 [INFO] [stderr] Downloaded html5ever v0.26.0 [INFO] [stderr] Downloaded dtoa-short v0.3.4 [INFO] [stderr] Downloaded precomputed-hash v0.1.1 [INFO] [stderr] Downloaded servo_arc v0.3.0 [INFO] [stderr] Downloaded bytecount v0.6.7 [INFO] [stderr] Downloaded bit-vec v0.6.3 [INFO] [stderr] Downloaded brotli v3.4.0 [INFO] [stderr] Downloaded linux-raw-sys v0.4.13 [INFO] [stderr] Downloaded publicsuffix v2.2.3 [INFO] [stderr] Downloaded console v0.15.8 [INFO] [stderr] Downloaded dialoguer v0.11.0 [INFO] [stderr] Downloaded serde_html_form v0.2.4 [INFO] [stderr] Downloaded utf-8 v0.7.6 [INFO] [stderr] Downloaded cssparser v0.31.2 [INFO] [stderr] Downloaded ring v0.17.8 [INFO] [stderr] Downloaded derive_more v0.99.17 [INFO] [stderr] Downloaded selectors v0.25.0 [INFO] [stderr] Downloaded css-inline v0.12.0 [INFO] [stderr] Downloaded num-bigint-dig v0.8.4 [INFO] [stderr] Downloaded der v0.7.8 [INFO] [stderr] Downloaded rsa v0.9.6 [INFO] [stderr] Downloaded fraction v0.13.1 [INFO] [stderr] Downloaded anstyle v1.0.6 [INFO] [stderr] Downloaded string_cache v0.8.7 [INFO] [stderr] Downloaded new_debug_unreachable v1.0.4 [INFO] [stderr] Downloaded phf_codegen v0.10.0 [INFO] [stderr] Downloaded hyper-util v0.1.3 [INFO] [stderr] Downloaded encoding_rs v0.8.33 [INFO] [stderr] Downloaded futures v0.3.30 [INFO] [stderr] Downloaded cookie v0.17.0 [INFO] [stderr] Downloaded object_store v0.9.1 [INFO] [stderr] Downloaded finl_unicode v1.2.0 [INFO] [stderr] Downloaded idna v0.3.0 [INFO] [stderr] Downloaded tokio v1.36.0 [INFO] [stderr] Downloaded quick-xml v0.31.0 [INFO] [stderr] Downloaded fancy-regex v0.11.0 [INFO] [stderr] Downloaded snafu v0.7.5 [INFO] [stderr] Downloaded psl-types v2.0.11 [INFO] [stderr] Downloaded http v0.2.11 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.52.3 [INFO] [stderr] Downloaded windows_i686_gnu v0.52.3 [INFO] [stderr] Downloaded windows_i686_msvc v0.52.3 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.52.3 [INFO] [stderr] Downloaded headers-core v0.3.0 [INFO] [stderr] Downloaded multer v3.0.0 [INFO] [stderr] Downloaded axum-extra v0.9.2 [INFO] [stderr] Downloaded axum-jsonschema v0.8.0 [INFO] [stderr] Downloaded dtoa v1.0.9 [INFO] [stderr] Downloaded phf_shared v0.10.0 [INFO] [stderr] Downloaded num-rational v0.4.1 [INFO] [stderr] Downloaded zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Downloaded gimli v0.28.1 [INFO] [stderr] Downloaded rust-embed v8.3.0 [INFO] [stderr] Downloaded libc v0.2.153 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.52.3 [INFO] [stderr] Downloaded num v0.4.1 [INFO] [stderr] Downloaded num-cmp v0.1.0 [INFO] [stderr] Downloaded doc-comment v0.3.3 [INFO] [stderr] Downloaded cookie_store v0.20.0 [INFO] [stderr] Downloaded object v0.32.2 [INFO] [stderr] Downloaded chrono-tz v0.8.4 [INFO] [stderr] Downloaded regex-automata v0.4.5 [INFO] [stderr] Downloaded num-complex v0.4.4 [INFO] [stderr] Downloaded iso8601 v0.6.1 [INFO] [stderr] Downloaded snafu-derive v0.7.5 [INFO] [stderr] Downloaded httparse v1.8.0 [INFO] [stderr] Downloaded hyper-tls v0.5.0 [INFO] [stderr] Downloaded ipnet v2.9.0 [INFO] [stderr] Downloaded foreign-types-shared v0.1.1 [INFO] [stderr] Downloaded openssl-probe v0.1.5 [INFO] [stderr] Downloaded schannel v0.1.23 [INFO] [stderr] Downloaded native-tls v0.2.11 [INFO] [stderr] Downloaded wasm-streams v0.4.0 [INFO] [stderr] Downloaded schemars v0.8.16 [INFO] [stderr] Downloaded hkdf v0.12.4 [INFO] [stderr] Downloaded sqlx v0.8.0 [INFO] [stderr] Downloaded brotli-decompressor v2.5.1 [INFO] [stderr] Downloaded rayon v1.9.0 [INFO] [stderr] Downloaded openssl-macros v0.1.1 [INFO] [stderr] Downloaded dyn-clone v1.0.16 [INFO] [stderr] Downloaded serde_derive_internals v0.26.0 [INFO] [stderr] Downloaded sqlx-postgres v0.8.0 [INFO] [stderr] Downloaded sqlx-core v0.8.0 [INFO] [stderr] Downloaded async-compression v0.4.6 [INFO] [stderr] Downloaded http v1.1.0 [INFO] [stderr] Downloaded iri-string v0.7.0 [INFO] [stderr] Downloaded tokio-util v0.7.10 [INFO] [stderr] Downloaded tower v0.4.13 [INFO] [stderr] Downloaded tower-http v0.5.2 [INFO] [stderr] Downloaded futures-util v0.3.30 [INFO] [stderr] Downloaded mio v0.8.11 [INFO] [stderr] Downloaded opentelemetry_sdk v0.21.2 [INFO] [stderr] Downloaded tracing-opentelemetry v0.22.0 [INFO] [stderr] Downloaded filigree v0.4.1 [INFO] [stderr] Downloaded time v0.3.36 [INFO] [stderr] Downloaded serde_with v3.9.0 [INFO] [stderr] Downloaded sqlparser v0.45.0 [INFO] [stderr] Downloaded winsafe v0.0.19 [INFO] [stderr] Downloaded security-framework-sys v2.9.1 [INFO] [stderr] Downloaded tokio-native-tls v0.3.1 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.40 [INFO] [stderr] Downloaded schemars_derive v0.8.16 [INFO] [stderr] Downloaded serde_path_to_error v0.1.15 [INFO] [stderr] Downloaded keccak v0.1.4 [INFO] [stderr] Downloaded fastrand v2.0.1 [INFO] [stderr] Downloaded tempfile v3.10.1 [INFO] [stderr] Downloaded sqlx-macros-core v0.8.0 [INFO] [stderr] Downloaded sqlx-macros v0.8.0 [INFO] [stderr] Downloaded num-iter v0.1.43 [INFO] [stderr] Downloaded num-integer v0.1.45 [INFO] [stderr] Downloaded pkcs1 v0.7.5 [INFO] [stderr] Downloaded zeroize v1.7.0 [INFO] [stderr] Downloaded sqlx-mysql v0.8.0 [INFO] [stderr] Downloaded futures-intrusive v0.5.0 [INFO] [stderr] Downloaded unicode_categories v0.1.1 [INFO] [stderr] Downloaded sqlx-sqlite v0.8.0 [INFO] [stderr] Downloaded flate2 v1.0.28 [INFO] [stderr] Downloaded pin-project v1.1.4 [INFO] [stderr] Downloaded crossbeam-channel v0.5.11 [INFO] [stderr] Downloaded opentelemetry v0.21.0 [INFO] [stderr] Downloaded miniz_oxide v0.7.2 [INFO] [stderr] Downloaded backtrace v0.3.69 [INFO] [stderr] Downloaded bytes v1.5.0 [INFO] [stderr] Downloaded socket2 v0.5.6 [INFO] [stderr] Downloaded darling_core v0.20.8 [INFO] [stderr] Downloaded serde_with_macros v3.9.0 [INFO] [stderr] Downloaded bstr v1.9.0 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.52.3 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.52.3 [INFO] [stderr] Downloaded rustix v0.38.31 [INFO] [stderr] Downloaded flume v0.11.0 [INFO] [stderr] Downloaded hashlink v0.9.1 [INFO] [stderr] Downloaded sqlformat v0.2.3 [INFO] [stderr] Downloaded rustversion v1.0.14 [INFO] [stderr] Downloaded cookie v0.18.0 [INFO] [stderr] Downloaded crc32fast v1.4.0 [INFO] [stderr] Downloaded zstd v0.13.0 [INFO] [stderr] Downloaded pkg-config v0.3.30 [INFO] [stderr] Downloaded zstd-safe v7.0.0 [INFO] [stderr] Downloaded pin-project-internal v1.1.4 [INFO] [stderr] Downloaded async-trait v0.1.77 [INFO] [stderr] Downloaded futures-executor v0.3.30 [INFO] [stderr] Downloaded futures-channel v0.3.30 [INFO] [stderr] Downloaded tokio-stream v0.1.15 [INFO] [stderr] Downloaded uuid v1.7.0 [INFO] [stderr] Downloaded glob v0.3.1 [INFO] [stderr] Downloaded libredox v0.0.1 [INFO] [stderr] Downloaded semver v1.0.22 [INFO] [stderr] Downloaded darling_macro v0.20.8 [INFO] [stderr] Downloaded cc v1.0.88 [INFO] [stderr] Downloaded chrono v0.4.34 [INFO] [stderr] Downloaded regex v1.10.3 [INFO] [stderr] Downloaded idna v0.5.0 [INFO] [stderr] Downloaded syn v2.0.52 [INFO] [stderr] Downloaded md-5 v0.10.6 [INFO] [stderr] Downloaded paste v1.0.14 [INFO] [stderr] Downloaded axum-core v0.4.3 [INFO] [stderr] Downloaded tower-cookies v0.10.0 [INFO] [stderr] Downloaded http-body v1.0.0 [INFO] [stderr] Downloaded http-body-util v0.1.0 [INFO] [stderr] Downloaded http-range-header v0.4.0 [INFO] [stderr] Downloaded unicase v2.7.0 [INFO] [stderr] Downloaded tracing-error v0.2.0 [INFO] [stderr] Downloaded addr2line v0.21.0 [INFO] [stderr] Downloaded signal-hook-registry v1.4.1 [INFO] [stderr] Downloaded tokio-macros v2.2.0 [INFO] [stderr] Downloaded atomic v0.5.3 [INFO] [stderr] Downloaded pathdiff v0.2.1 [INFO] [stderr] Downloaded redox_users v0.4.4 [INFO] [stderr] Downloaded shellexpand v3.1.0 [INFO] [stderr] Downloaded rust-embed-impl v8.3.0 [INFO] [stderr] Downloaded core-foundation-sys v0.8.6 [INFO] [stderr] Downloaded windows-core v0.52.0 [INFO] [stderr] Downloaded deunicode v1.4.1 [INFO] [stderr] Downloaded wasm-bindgen v0.2.90 [INFO] [stderr] Downloaded winnow v0.6.5 [INFO] [stderr] Downloaded tracing-subscriber v0.3.18 [INFO] [stderr] Downloaded stringprep v0.1.4 [INFO] [stderr] Downloaded wasite v0.1.0 [INFO] [stderr] Downloaded whoami v1.5.1 [INFO] [stderr] Downloaded alloc-stdlib v0.2.2 [INFO] [stderr] Downloaded mime_guess v2.0.4 [INFO] [stderr] Downloaded futures-io v0.3.30 [INFO] [stderr] Downloaded futures-task v0.3.30 [INFO] [stderr] Downloaded futures-sink v0.3.30 [INFO] [stderr] Downloaded ordered-float v4.2.0 [INFO] [stderr] Downloaded futures-core v0.3.30 [INFO] [stderr] Downloaded adler v1.0.2 [INFO] [stderr] Downloaded rustc-demangle v0.1.23 [INFO] [stderr] Downloaded web-time v0.2.4 [INFO] [stderr] Downloaded typed-builder-macro v0.18.1 [INFO] [stderr] Downloaded typed-builder v0.18.1 [INFO] [stderr] Downloaded indoc v2.0.5 [INFO] [stderr] Downloaded serde_derive_default v0.1.1 [INFO] [stderr] Downloaded darling v0.20.8 [INFO] [stderr] Downloaded deranged v0.3.11 [INFO] [stderr] Downloaded libm v0.2.8 [INFO] [stderr] Downloaded pest v2.7.5 [INFO] [stderr] Downloaded serde_json v1.0.114 [INFO] [stderr] Downloaded tera v1.19.1 [INFO] [stderr] Downloaded zerocopy v0.7.32 [INFO] [stderr] Downloaded toml_edit v0.22.6 [INFO] [stderr] Downloaded unicode-normalization v0.1.23 [INFO] [stderr] Downloaded url v2.5.0 [INFO] [stderr] Downloaded alloc-no-stdlib v2.0.4 [INFO] [stderr] Downloaded tower-layer v0.3.2 [INFO] [stderr] Downloaded tower-service v0.3.2 [INFO] [stderr] Downloaded futures-macro v0.3.30 [INFO] [stderr] Downloaded hermit-abi v0.3.4 [INFO] [stderr] Downloaded num_cpus v1.16.0 [INFO] [stderr] Downloaded rust-embed-utils v8.3.0 [INFO] [stderr] Downloaded num-traits v0.2.18 [INFO] [stderr] Downloaded parse-zoneinfo v0.3.0 [INFO] [stderr] Downloaded ignore v0.4.22 [INFO] [stderr] Downloaded ryu v1.0.17 [INFO] [stderr] Downloaded js-sys v0.3.67 [INFO] [stderr] Downloaded bumpalo v3.14.0 [INFO] [stderr] Downloaded getrandom v0.2.12 [INFO] [stderr] Downloaded allocator-api2 v0.2.16 [INFO] [stderr] Downloaded indexmap v2.2.5 [INFO] [stderr] Downloaded toml v0.8.10 [INFO] [stderr] Downloaded memchr v2.7.1 [INFO] [stderr] Downloaded tracing v0.1.40 [INFO] [stderr] Downloaded log v0.4.21 [INFO] [stderr] Downloaded once_cell v1.19.0 [INFO] [stderr] Downloaded tracing-core v0.1.32 [INFO] [stderr] Downloaded unicode-bidi v0.3.15 [INFO] [stderr] Downloaded proc-macro2 v1.0.86 [INFO] [stderr] Downloaded serde_derive v1.0.197 [INFO] [stderr] Downloaded serde v1.0.197 [INFO] [stderr] Downloaded bitflags v2.4.2 [INFO] [stderr] Downloaded crc v3.0.1 [INFO] [stderr] Downloaded crossbeam-queue v0.3.9 [INFO] [stderr] Downloaded parking v2.2.0 [INFO] [stderr] Downloaded sql-migration-sim v0.1.6 [INFO] [stderr] Downloaded phf_shared v0.11.2 [INFO] [stderr] Downloaded phf v0.11.2 [INFO] [stderr] Downloaded crossbeam-utils v0.8.19 [INFO] [stderr] Downloaded crossbeam-deque v0.8.5 [INFO] [stderr] Downloaded ucd-trie v0.1.6 [INFO] [stderr] Downloaded typenum v1.17.0 [INFO] [stderr] Downloaded pest_meta v2.7.5 [INFO] [stderr] Downloaded pest_derive v2.7.5 [INFO] [stderr] Downloaded unic-ucd-segment v0.9.0 [INFO] [stderr] Downloaded unic-segment v0.9.0 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.90 [INFO] [stderr] Downloaded zerocopy-derive v0.7.32 [INFO] [stderr] Downloaded ahash v0.8.10 [INFO] [stderr] Downloaded smallvec v1.13.2 [INFO] [stderr] Downloaded thread_local v1.1.7 [INFO] [stderr] Downloaded pin-project-lite v0.2.13 [INFO] [stderr] Downloaded tracing-attributes v0.1.27 [INFO] [stderr] Downloaded valuable v0.1.0 [INFO] [stderr] Downloaded either v1.10.0 [INFO] [stderr] Downloaded quote v1.0.35 [INFO] [stderr] Downloaded errno v0.3.8 [INFO] [stderr] Downloaded globwalk v0.8.1 [INFO] [stderr] Downloaded cpufeatures v0.2.12 [INFO] [stderr] Downloaded sha2 v0.10.8 [INFO] [stderr] Downloaded pest_generator v2.7.5 [INFO] [stderr] Downloaded ppv-lite86 v0.2.17 [INFO] [stderr] Downloaded unic-char-property v0.9.0 [INFO] [stderr] Downloaded unic-char-range v0.9.0 [INFO] [stderr] Downloaded unic-common v0.9.0 [INFO] [stderr] Downloaded thiserror-impl v1.0.57 [INFO] [stderr] Downloaded thiserror v1.0.57 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.90 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.90 [INFO] [stderr] Downloaded serde_spanned v0.6.5 [INFO] [stderr] Downloaded chrono-tz-build v0.2.1 [INFO] [stderr] Downloaded phf_generator v0.11.2 [INFO] [stderr] Downloaded humansize v2.1.3 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.90 [INFO] [stderr] Downloaded siphasher v0.3.11 [INFO] [stderr] Downloaded subtle v2.5.0 [INFO] [stderr] Downloaded which v6.0.1 [INFO] [stderr] Downloaded phf_macros v0.11.2 [INFO] [stderr] Downloaded unic-ucd-version v0.9.0 [INFO] [stderr] Downloaded slug v0.1.5 [INFO] [stderr] Downloaded home v0.5.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ecdf211a732b82e628150eda9b2cf274095f5734eacf1aa72556a10badefdce [INFO] running `Command { std: "docker" "start" "-a" "1ecdf211a732b82e628150eda9b2cf274095f5734eacf1aa72556a10badefdce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ecdf211a732b82e628150eda9b2cf274095f5734eacf1aa72556a10badefdce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ecdf211a732b82e628150eda9b2cf274095f5734eacf1aa72556a10badefdce", kill_on_drop: false }` [INFO] [stdout] 1ecdf211a732b82e628150eda9b2cf274095f5734eacf1aa72556a10badefdce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2f7b9eb4a5e91cebc178c7d23d3762d7423ea75455dbd9196ab168e5b0ffcb1 [INFO] running `Command { std: "docker" "start" "-a" "a2f7b9eb4a5e91cebc178c7d23d3762d7423ea75455dbd9196ab168e5b0ffcb1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.10 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Compiling cc v1.0.88 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling indexmap v2.2.5 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling openssl-sys v0.9.101 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Checking http v0.2.11 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling openssl v0.10.63 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling chrono v0.4.34 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.9 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling uuid v1.7.0 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling zstd-safe v7.0.0 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Compiling axum v0.7.4 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking bstr v1.9.0 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling winnow v0.6.5 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking psl-types v2.0.11 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking dtoa v1.0.9 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking globset v0.4.14 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking dtoa-short v0.3.4 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling pin-project-internal v1.1.4 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling axum-macros v0.4.1 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Checking pin-project v1.1.4 [INFO] [stderr] Checking publicsuffix v2.2.3 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling pest v2.7.5 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking brotli-decompressor v2.5.1 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling chrono-tz v0.8.4 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling cookie v0.18.0 [INFO] [stderr] Compiling multer v3.0.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Compiling schemars v0.8.16 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Compiling darling_macro v0.20.8 [INFO] [stderr] Checking brotli v3.4.0 [INFO] [stderr] Checking rustls-native-certs v0.6.3 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Compiling shellexpand v3.1.0 [INFO] [stderr] Compiling schemars_derive v0.8.16 [INFO] [stderr] Compiling error-stack v0.5.0 [INFO] [stderr] Checking fraction v0.13.1 [INFO] [stderr] Checking http-body-util v0.1.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling pest_meta v2.7.5 [INFO] [stderr] Compiling rust-embed-utils v8.3.0 [INFO] [stderr] Checking ignore v0.4.22 [INFO] [stderr] Checking fancy-regex v0.11.0 [INFO] [stderr] Compiling snafu-derive v0.7.5 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking iso8601 v0.6.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking headers-core v0.3.0 [INFO] [stderr] Compiling pest_generator v2.7.5 [INFO] [stderr] Checking ordered-float v4.2.0 [INFO] [stderr] Checking crossbeam-channel v0.5.11 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking bytecount v0.6.7 [INFO] [stderr] Checking deunicode v1.4.1 [INFO] [stderr] Checking dyn-clone v1.0.16 [INFO] [stderr] Checking num-cmp v0.1.0 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking slug v0.1.5 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Checking clap_builder v4.5.1 [INFO] [stderr] Checking headers v0.4.0 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Compiling rust-embed-impl v8.3.0 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling darling v0.20.8 [INFO] [stderr] Compiling clap_derive v4.5.0 [INFO] [stderr] Compiling typed-builder-macro v0.18.1 [INFO] [stderr] Compiling pest_derive v2.7.5 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking http-range-header v0.4.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking keccak v0.1.4 [INFO] [stderr] Checking snafu v0.7.5 [INFO] [stderr] Compiling filigree v0.4.1 [INFO] [stderr] Checking iri-string v0.7.0 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Compiling serde_with_macros v3.9.0 [INFO] [stderr] Checking rust-embed v8.3.0 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Checking sqlparser v0.45.0 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Checking zeroize v1.7.0 [INFO] [stderr] Compiling serde_derive_default v0.1.1 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Checking diffy v0.3.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling serde_spanned v0.6.5 [INFO] [stderr] Checking typed-builder v0.18.1 [INFO] [stderr] Checking pathdiff v0.2.1 [INFO] [stderr] Compiling toml_edit v0.22.6 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking clap v4.5.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.15 [INFO] [stderr] Checking cssparser v0.31.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking string_cache v0.8.7 [INFO] [stderr] Checking quick-xml v0.31.0 [INFO] [stderr] Checking tower-cookies v0.10.0 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Checking cookie_store v0.20.0 [INFO] [stderr] Checking jsonschema v0.17.1 [INFO] [stderr] Checking which v6.0.1 [INFO] [stderr] Compiling sqlformat v0.2.3 [INFO] [stderr] Compiling toml v0.8.10 [INFO] [stderr] Checking opentelemetry v0.21.0 [INFO] [stderr] Checking zstd v0.13.0 [INFO] [stderr] Checking serde_html_form v0.2.4 [INFO] [stderr] Compiling cargo_toml v0.17.2 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking serde_with v3.9.0 [INFO] [stderr] Checking css-inline v0.12.0 [INFO] [stderr] Checking sql-migration-sim v0.1.6 [INFO] [stderr] Compiling sqlx-core v0.8.0 [INFO] [stderr] Checking tera v1.19.1 [INFO] [stderr] Compiling filigree-cli v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> build.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, path::Path}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking async-compression v0.4.6 [INFO] [stderr] Checking opentelemetry_sdk v0.21.2 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tracing-opentelemetry v0.22.0 [INFO] [stderr] Compiling sqlx-postgres v0.8.0 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Compiling sqlx-macros-core v0.8.0 [INFO] [stderr] Compiling sqlx-macros v0.8.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.24 [INFO] [stderr] Checking sqlx v0.8.0 [INFO] [stderr] Checking object_store v0.9.1 [INFO] [stderr] Checking axum-extra v0.9.2 [INFO] [stderr] Checking axum-jsonschema v0.8.0 [INFO] [stdout] warning: unused import: `config::find_up_file` [INFO] [stdout] --> src/format.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{config::find_up_file, Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `config::find_up_file` [INFO] [stdout] --> src/format.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{config::find_up_file, Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `pub(self)` [INFO] [stdout] --> src/model/sql/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub(self) mod permissions; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self [INFO] [stdout] = note: `#[warn(clippy::needless_pub_self)]` on by default [INFO] [stdout] = help: remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReferenceFieldContext` [INFO] [stdout] --> src/model/sql/population.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | generator::{ChildContext, ReferenceFieldContext}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> src/model/sql/queries/lookup_object_permissions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `QueryBuilder` and `bindings` [INFO] [stdout] --> src/model/sql/queries/lookup_object_permissions.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{bindings, QueryBuilder, SqlBuilder, SqlQueryContext}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `pub(self)` [INFO] [stdout] --> src/model/sql/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub(self) mod permissions; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self [INFO] [stdout] = note: `#[warn(clippy::needless_pub_self)]` on by default [INFO] [stdout] = help: remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReferenceFieldContext` [INFO] [stdout] --> src/model/sql/population.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | generator::{ChildContext, ReferenceFieldContext}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> src/model/sql/queries/lookup_object_permissions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `QueryBuilder` and `bindings` [INFO] [stdout] --> src/model/sql/queries/lookup_object_permissions.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{bindings, QueryBuilder, SqlBuilder, SqlQueryContext}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/model/sql/queries/lookup_object_permissions.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_query(data: &SqlBuilder) -> SqlQueryContext { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/model/sql/queries/lookup_object_permissions.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_query(data: &SqlBuilder) -> SqlQueryContext { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/config.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 399 | pub struct FullConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 406 | pub state: State, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FullConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id_field_contexts` and `id_and_org_field_contexts` are never used [INFO] [stdout] --> src/model/sql/ids.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'a> SqlBuilder<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn id_field_contexts(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn id_and_org_field_contexts(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `permissions_lookup_query` and `object_permissions_value_query` are never used [INFO] [stdout] --> src/model/sql/permissions.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'a> SqlBuilder<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn permissions_lookup_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn object_permissions_value_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_query` is never used [INFO] [stdout] --> src/model/sql/queries/lookup_object_permissions.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_query(data: &SqlBuilder) -> SqlQueryContext { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_initial` is never used [INFO] [stdout] --> src/model/sql/query_builder.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl QueryBuilder { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn with_initial(query: String, bindings: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/add_deps.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | cmd.arg(&format!("{name}@{version}")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{name}@{version}")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/config/custom_endpoint.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | / match self.method.to_lowercase().as_str() { [INFO] [stdout] 66 | | "post" | "patch" | "put" => true, [INFO] [stdout] 67 | | _ => false, [INFO] [stdout] 68 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 65 - match self.method.to_lowercase().as_str() { [INFO] [stdout] 66 - "post" | "patch" | "put" => true, [INFO] [stdout] 67 - _ => false, [INFO] [stdout] 68 - } [INFO] [stdout] 65 + matches!(self.method.to_lowercase().as_str(), "post" | "patch" | "put") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/config/generators.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | / match self { [INFO] [stdout] 27 | | ObjectRefOrDef::Empty => true, [INFO] [stdout] 28 | | _ => false, [INFO] [stdout] 29 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 26 - match self { [INFO] [stdout] 27 - ObjectRefOrDef::Empty => true, [INFO] [stdout] 28 - _ => false, [INFO] [stdout] 29 - } [INFO] [stdout] 26 + matches!(self, ObjectRefOrDef::Empty) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/config/generators.rs:162:52 [INFO] [stdout] | [INFO] [stdout] 162 | Cow::Owned(format!("${{{s}}}", s = &s[1..])) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/config/generators.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | if s.starts_with(':') { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 161 ~ if let Some() = s.strip_prefix(':') { [INFO] [stdout] 162 ~ Cow::Owned(format!("${{{s}}}", s = )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeMap` [INFO] [stdout] --> src/config/job.rs:177:10 [INFO] [stdout] | [INFO] [stdout] 177 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] = note: `#[warn(clippy::into_iter_on_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/config/pages.rs:178:24 [INFO] [stdout] | [INFO] [stdout] 178 | "path": if page.path.0 == "" { "/" } else { &page.path.0 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `page.path.0.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/config/pages.rs:184:71 [INFO] [stdout] | [INFO] [stdout] 184 | "actions": page.actions.iter().map(|a| a.template_context(&page, permission, require_auth)).collect::>(), [INFO] [stdout] | ^^^^^ help: change this to: `page` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: iterating on a map's keys [INFO] [stdout] --> src/config/storage.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 102 | (None, true) => self [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 103 | | .provider [INFO] [stdout] 104 | | .iter() [INFO] [stdout] 105 | | .map(|(k, _)| k.as_str()) [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map [INFO] [stdout] = note: `#[warn(clippy::iter_kv_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 102 ~ (None, true) => self [INFO] [stdout] 103 + .provider.keys().map(|k| k.as_str()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/config/web.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / match self.framework { [INFO] [stdout] 80 | | Some(WebFramework::Htmx) => Self::add_htmx_deps(cwd, manifest)?, [INFO] [stdout] 81 | | _ => {} [INFO] [stdout] 82 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(WebFramework::Htmx) = self.framework { Self::add_htmx_deps(cwd, manifest)? }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/config.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 399 | pub struct FullConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 406 | pub state: State, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FullConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id_field_contexts` and `id_and_org_field_contexts` are never used [INFO] [stdout] --> src/model/sql/ids.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'a> SqlBuilder<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn id_field_contexts(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn id_and_org_field_contexts(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `permissions_lookup_query` and `object_permissions_value_query` are never used [INFO] [stdout] --> src/model/sql/permissions.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'a> SqlBuilder<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn permissions_lookup_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn object_permissions_value_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_query` is never used [INFO] [stdout] --> src/model/sql/queries/lookup_object_permissions.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_query(data: &SqlBuilder) -> SqlQueryContext { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/add_deps.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | cmd.arg(&format!("{name}@{version}")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{name}@{version}")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/config/custom_endpoint.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | / match self.method.to_lowercase().as_str() { [INFO] [stdout] 66 | | "post" | "patch" | "put" => true, [INFO] [stdout] 67 | | _ => false, [INFO] [stdout] 68 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 65 - match self.method.to_lowercase().as_str() { [INFO] [stdout] 66 - "post" | "patch" | "put" => true, [INFO] [stdout] 67 - _ => false, [INFO] [stdout] 68 - } [INFO] [stdout] 65 + matches!(self.method.to_lowercase().as_str(), "post" | "patch" | "put") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/config/generators.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | / match self { [INFO] [stdout] 27 | | ObjectRefOrDef::Empty => true, [INFO] [stdout] 28 | | _ => false, [INFO] [stdout] 29 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 26 - match self { [INFO] [stdout] 27 - ObjectRefOrDef::Empty => true, [INFO] [stdout] 28 - _ => false, [INFO] [stdout] 29 - } [INFO] [stdout] 26 + matches!(self, ObjectRefOrDef::Empty) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/config/generators.rs:162:52 [INFO] [stdout] | [INFO] [stdout] 162 | Cow::Owned(format!("${{{s}}}", s = &s[1..])) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/config/generators.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | if s.starts_with(':') { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 161 ~ if let Some() = s.strip_prefix(':') { [INFO] [stdout] 162 ~ Cow::Owned(format!("${{{s}}}", s = )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeMap` [INFO] [stdout] --> src/config/job.rs:177:10 [INFO] [stdout] | [INFO] [stdout] 177 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] = note: `#[warn(clippy::into_iter_on_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/init.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | fn valid_id(input: &String, message: &str) -> Result<(), String> { [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] 30 - fn valid_id(input: &String, message: &str) -> Result<(), String> { [INFO] [stdout] 30 + fn valid_id(input: &str, message: &str) -> Result<(), String> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/init.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn no_whitespace(input: &String) -> Result<(), String> { [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] help: change this to [INFO] [stdout] | [INFO] [stdout] 41 - fn no_whitespace(input: &String) -> Result<(), String> { [INFO] [stdout] 41 + fn no_whitespace(input: &str) -> Result<(), String> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or` to construct default value [INFO] [stdout] --> src/init.rs:99:54 [INFO] [stdout] | [INFO] [stdout] 99 | let existing = std::env::var("DATABASE_URL").unwrap_or(String::new()); [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 expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/init.rs:198:30 [INFO] [stdout] | [INFO] [stdout] 198 | url.set_username(&user).ok(); [INFO] [stdout] | ^^^^^ help: change this to: `user` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/init.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | / match framework { [INFO] [stdout] 281 | | Some(WebFramework::SvelteKit) => { [INFO] [stdout] 282 | | let create_web = dialoguer::Confirm::new() [INFO] [stdout] 283 | | .with_prompt("Create SvelteKit project?") [INFO] [stdout] ... | [INFO] [stdout] 301 | | _ => {} [INFO] [stdout] 302 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: you might want to preserve the comments from inside the `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 280 ~ if let Some(WebFramework::SvelteKit) = framework { [INFO] [stdout] 281 + let create_web = dialoguer::Confirm::new() [INFO] [stdout] 282 + .with_prompt("Create SvelteKit project?") [INFO] [stdout] 283 + .interact() [INFO] [stdout] 284 + .change_context(Error::Input)?; [INFO] [stdout] 285 + [INFO] [stdout] 286 + if create_web { [INFO] [stdout] 287 + let run = std::process::Command::new("npm") [INFO] [stdout] 288 + .arg("create") [INFO] [stdout] 289 + .arg("svelte@latest") [INFO] [stdout] 290 + .arg(&web_dir) [INFO] [stdout] 291 + .status() [INFO] [stdout] 292 + .change_context(Error::Npm)?; [INFO] [stdout] 293 + if !run.success() { [INFO] [stdout] 294 + return Err(Report::new(Error::Npm) [INFO] [stdout] 295 + .attach_printable("Failed to initialize SvelteKit project")); [INFO] [stdout] 296 + } [INFO] [stdout] 297 + } [INFO] [stdout] 298 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/init.rs:349:17 [INFO] [stdout] | [INFO] [stdout] 349 | .create(&dir.join("filigree")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `dir.join("filigree")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/config/pages.rs:178:24 [INFO] [stdout] | [INFO] [stdout] 178 | "path": if page.path.0 == "" { "/" } else { &page.path.0 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `page.path.0.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/config/pages.rs:184:71 [INFO] [stdout] | [INFO] [stdout] 184 | "actions": page.actions.iter().map(|a| a.template_context(&page, permission, require_auth)).collect::>(), [INFO] [stdout] | ^^^^^ help: change this to: `page` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `from_*` usually take no `self` [INFO] [stdout] --> src/merge_files/mod.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_rendered_file(&self, file: RenderedFile) -> MergeFile { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/migrations.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for copying elements [INFO] [stdout] --> src/migrations.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | let model = models_by_table.get(table_name).map(|m| *m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `models_by_table.get(table_name).copied()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] = note: `#[warn(clippy::map_clone)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] = note: `#[warn(clippy::write_with_newline)]` on by default [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 343 - write!(f, "{statement};\n") [INFO] [stdout] 343 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:358:17 [INFO] [stdout] | [INFO] [stdout] 358 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 358 - write!(f, "{statement};\n") [INFO] [stdout] 358 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:376:17 [INFO] [stdout] | [INFO] [stdout] 376 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 376 - write!(f, "{statement};\n") [INFO] [stdout] 376 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | write!(f, "{statement};\n")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 395 - write!(f, "{statement};\n")?; [INFO] [stdout] 395 + writeln!(f, "{statement};")?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:411:17 [INFO] [stdout] | [INFO] [stdout] 411 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 411 - write!(f, "{statement};\n") [INFO] [stdout] 411 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 430 - write!(f, "{statement};\n") [INFO] [stdout] 430 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:478:25 [INFO] [stdout] | [INFO] [stdout] 478 | write!(f, "{statement};\n")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 478 - write!(f, "{statement};\n")?; [INFO] [stdout] 478 + writeln!(f, "{statement};")?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `Option::map` [INFO] [stdout] --> src/migrations.rs:543:13 [INFO] [stdout] | [INFO] [stdout] 543 | / if let Some(default_value) = default_value { [INFO] [stdout] 544 | | Some(AlterColumnOperation::SetDefault { [INFO] [stdout] 545 | | value: default_value.clone(), [INFO] [stdout] 546 | | }) [INFO] [stdout] 547 | | } else { [INFO] [stdout] 548 | | None [INFO] [stdout] 549 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map [INFO] [stdout] = note: `#[warn(clippy::manual_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 543 ~ default_value.map(|default_value| AlterColumnOperation::SetDefault { [INFO] [stdout] 544 + value: default_value.clone(), [INFO] [stdout] 545 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `Option::map` [INFO] [stdout] --> src/migrations.rs:558:13 [INFO] [stdout] | [INFO] [stdout] 558 | / if let Some(data_type) = data_type { [INFO] [stdout] 559 | | Some(AlterColumnOperation::SetDataType { [INFO] [stdout] 560 | | data_type: data_type.clone(), [INFO] [stdout] 561 | | using: None, [INFO] [stdout] ... | [INFO] [stdout] 564 | | None [INFO] [stdout] 565 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 558 ~ data_type.map(|data_type| AlterColumnOperation::SetDataType { [INFO] [stdout] 559 + data_type: data_type.clone(), [INFO] [stdout] 560 + using: None, [INFO] [stdout] 561 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:588:24 [INFO] [stdout] | [INFO] [stdout] 588 | on_delete: on_delete.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*on_delete` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:589:24 [INFO] [stdout] | [INFO] [stdout] 589 | on_update: on_update.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*on_update` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:590:30 [INFO] [stdout] | [INFO] [stdout] 590 | characteristics: characteristics.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*characteristics` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:604:38 [INFO] [stdout] | [INFO] [stdout] 604 | characteristics: characteristics.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*characteristics` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:610:38 [INFO] [stdout] | [INFO] [stdout] 610 | characteristics: characteristics.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*characteristics` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: iterating on a map's keys [INFO] [stdout] --> src/config/storage.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 102 | (None, true) => self [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 103 | | .provider [INFO] [stdout] 104 | | .iter() [INFO] [stdout] 105 | | .map(|(k, _)| k.as_str()) [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map [INFO] [stdout] = note: `#[warn(clippy::iter_kv_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 102 ~ (None, true) => self [INFO] [stdout] 103 + .provider.keys().map(|k| k.as_str()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/config/web.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / match self.framework { [INFO] [stdout] 80 | | Some(WebFramework::Htmx) => Self::add_htmx_deps(cwd, manifest)?, [INFO] [stdout] 81 | | _ => {} [INFO] [stdout] 82 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(WebFramework::Htmx) = self.framework { Self::add_htmx_deps(cwd, manifest)? }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant name ends with the enum's name [INFO] [stdout] --> src/model/field.rs:435:5 [INFO] [stdout] | [INFO] [stdout] 435 | NotDeferrable, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [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: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/model/field.rs:468:25 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn to_rust_type(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/model/field.rs:484:27 [INFO] [stdout] | [INFO] [stdout] 484 | pub fn to_client_type(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/model/field.rs:500:24 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn to_zod_type(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/model/field.rs:516:24 [INFO] [stdout] | [INFO] [stdout] 516 | pub fn to_sql_type(&self, dialect: SqlDialect) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/model/field.rs:553:1 [INFO] [stdout] | [INFO] [stdout] 553 | / impl Default for Access { [INFO] [stdout] 554 | | fn default() -> Self { [INFO] [stdout] 555 | | Self::ReadWrite [INFO] [stdout] 556 | | } [INFO] [stdout] 557 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 542 + #[derive(Default)] [INFO] [stdout] 543 | pub enum Access { [INFO] [stdout] 544 | /// No access [INFO] [stdout] ... [INFO] [stdout] 550 | /// Read and write [INFO] [stdout] 551 ~ #[default] [INFO] [stdout] 552 ~ ReadWrite, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/file.rs:155:40 [INFO] [stdout] | [INFO] [stdout] 155 | format_parameters.push_str(&name); [INFO] [stdout] | ^^^^^ help: change this to: `name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generate_types.rs:118:29 [INFO] [stdout] | [INFO] [stdout] 118 | ... &f.model, fetch_type, f.many, "", [INFO] [stdout] | ^^^^^^^^ help: change this to: `f.model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method chain can be written more clearly with `if .. else ..` [INFO] [stdout] --> src/model/generate_types.rs:196:35 [INFO] [stdout] | [INFO] [stdout] 196 | let aliases = (suffixes.len() > 1) [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 197 | | .then(|| { [INFO] [stdout] 198 | | suffixes [INFO] [stdout] 199 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 203 | | }) [INFO] [stdout] 204 | | .unwrap_or_default(); [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else [INFO] [stdout] = note: `#[warn(clippy::obfuscated_if_else)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 196 ~ let aliases = if suffixes.len() > 1 { { [INFO] [stdout] 197 + suffixes [INFO] [stdout] 198 + .iter() [INFO] [stdout] 199 + .filter(|(s, _)| *s != "AllFields" && *s != suffix) [INFO] [stdout] 200 + .map(|(s, _)| format!("{struct_base}{s}")) [INFO] [stdout] 201 + .collect::>() [INFO] [stdout] 202 ~ } } else { Default::default() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/init.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | fn valid_id(input: &String, message: &str) -> Result<(), String> { [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] 30 - fn valid_id(input: &String, message: &str) -> Result<(), String> { [INFO] [stdout] 30 + fn valid_id(input: &str, message: &str) -> Result<(), String> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/init.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn no_whitespace(input: &String) -> Result<(), String> { [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] help: change this to [INFO] [stdout] | [INFO] [stdout] 41 - fn no_whitespace(input: &String) -> Result<(), String> { [INFO] [stdout] 41 + fn no_whitespace(input: &str) -> Result<(), String> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or` to construct default value [INFO] [stdout] --> src/init.rs:99:54 [INFO] [stdout] | [INFO] [stdout] 99 | let existing = std::env::var("DATABASE_URL").unwrap_or(String::new()); [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 expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/init.rs:198:30 [INFO] [stdout] | [INFO] [stdout] 198 | url.set_username(&user).ok(); [INFO] [stdout] | ^^^^^ help: change this to: `user` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/init.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | / match framework { [INFO] [stdout] 281 | | Some(WebFramework::SvelteKit) => { [INFO] [stdout] 282 | | let create_web = dialoguer::Confirm::new() [INFO] [stdout] 283 | | .with_prompt("Create SvelteKit project?") [INFO] [stdout] ... | [INFO] [stdout] 301 | | _ => {} [INFO] [stdout] 302 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: you might want to preserve the comments from inside the `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 280 ~ if let Some(WebFramework::SvelteKit) = framework { [INFO] [stdout] 281 + let create_web = dialoguer::Confirm::new() [INFO] [stdout] 282 + .with_prompt("Create SvelteKit project?") [INFO] [stdout] 283 + .interact() [INFO] [stdout] 284 + .change_context(Error::Input)?; [INFO] [stdout] 285 + [INFO] [stdout] 286 + if create_web { [INFO] [stdout] 287 + let run = std::process::Command::new("npm") [INFO] [stdout] 288 + .arg("create") [INFO] [stdout] 289 + .arg("svelte@latest") [INFO] [stdout] 290 + .arg(&web_dir) [INFO] [stdout] 291 + .status() [INFO] [stdout] 292 + .change_context(Error::Npm)?; [INFO] [stdout] 293 + if !run.success() { [INFO] [stdout] 294 + return Err(Report::new(Error::Npm) [INFO] [stdout] 295 + .attach_printable("Failed to initialize SvelteKit project")); [INFO] [stdout] 296 + } [INFO] [stdout] 297 + } [INFO] [stdout] 298 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/init.rs:349:17 [INFO] [stdout] | [INFO] [stdout] 349 | .create(&dir.join("filigree")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `dir.join("filigree")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `from_*` usually take no `self` [INFO] [stdout] --> src/merge_files/mod.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_rendered_file(&self, file: RenderedFile) -> MergeFile { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for cloning elements [INFO] [stdout] --> src/model/generator.rs:214:24 [INFO] [stdout] | [INFO] [stdout] 214 | let children = model [INFO] [stdout] | ________________________^ [INFO] [stdout] 215 | | .has [INFO] [stdout] 216 | | .iter() [INFO] [stdout] 217 | | .map(|c| c.clone()) [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] help: consider calling the dedicated `cloned` method [INFO] [stdout] | [INFO] [stdout] 214 ~ let children = model [INFO] [stdout] 215 + .has [INFO] [stdout] 216 + .iter().cloned() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/migrations.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/model/generator.rs:465:48 [INFO] [stdout] | [INFO] [stdout] 465 | .chain(self.standard_fields()?.map(|field| Cow::Owned(field))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Cow::Owned` [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: redundant closure [INFO] [stdout] --> src/model/generator.rs:466:43 [INFO] [stdout] | [INFO] [stdout] 466 | .chain(self.fields.iter().map(|field| Cow::Borrowed(field))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for copying elements [INFO] [stdout] --> src/migrations.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | let model = models_by_table.get(table_name).map(|m| *m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `models_by_table.get(table_name).copied()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] = note: `#[warn(clippy::map_clone)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/model/generator.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | &full_default_sort_field[1..] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/model/generator.rs:529:34 [INFO] [stdout] | [INFO] [stdout] 529 | let default_sort_field = if full_default_sort_field.starts_with('-') { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 529 ~ let default_sort_field = if let Some() = full_default_sort_field.strip_prefix('-') { [INFO] [stdout] 530 ~ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] = note: `#[warn(clippy::write_with_newline)]` on by default [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 343 - write!(f, "{statement};\n") [INFO] [stdout] 343 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:358:17 [INFO] [stdout] | [INFO] [stdout] 358 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 358 - write!(f, "{statement};\n") [INFO] [stdout] 358 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:376:17 [INFO] [stdout] | [INFO] [stdout] 376 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 376 - write!(f, "{statement};\n") [INFO] [stdout] 376 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | write!(f, "{statement};\n")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 395 - write!(f, "{statement};\n")?; [INFO] [stdout] 395 + writeln!(f, "{statement};")?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:411:17 [INFO] [stdout] | [INFO] [stdout] 411 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 411 - write!(f, "{statement};\n") [INFO] [stdout] 411 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | write!(f, "{statement};\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 430 - write!(f, "{statement};\n") [INFO] [stdout] 430 + writeln!(f, "{statement};") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:643:50 [INFO] [stdout] | [INFO] [stdout] 643 | Self::child_model_field_name(&child_model, has.populate_on_get, has.many) [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:647:50 [INFO] [stdout] | [INFO] [stdout] 647 | Self::child_model_field_name(&child_model, has.populate_on_list, has.many) [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:651:50 [INFO] [stdout] | [INFO] [stdout] 651 | Self::child_model_field_type(&child_model, has.populate_on_get, has.many, ""); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:653:50 [INFO] [stdout] | [INFO] [stdout] 653 | Self::child_model_field_type(&child_model, has.populate_on_list, has.many, ""); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/migrations.rs:478:25 [INFO] [stdout] | [INFO] [stdout] 478 | write!(f, "{statement};\n")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 478 - write!(f, "{statement};\n")?; [INFO] [stdout] 478 + writeln!(f, "{statement};")?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:664:50 [INFO] [stdout] | [INFO] [stdout] 664 | Self::child_model_field_name(&child_model, ReferenceFetchType::Id, false), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:665:50 [INFO] [stdout] | [INFO] [stdout] 665 | Self::child_model_field_name(&child_model, ReferenceFetchType::Id, true), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:666:50 [INFO] [stdout] | [INFO] [stdout] 666 | Self::child_model_field_name(&child_model, ReferenceFetchType::Data, false), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:667:50 [INFO] [stdout] | [INFO] [stdout] 667 | Self::child_model_field_name(&child_model, ReferenceFetchType::Data, true), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:689:60 [INFO] [stdout] | [INFO] [stdout] 689 | .then(|| has.rust_child_field_name(&child_model)), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `Option::map` [INFO] [stdout] --> src/migrations.rs:543:13 [INFO] [stdout] | [INFO] [stdout] 543 | / if let Some(default_value) = default_value { [INFO] [stdout] 544 | | Some(AlterColumnOperation::SetDefault { [INFO] [stdout] 545 | | value: default_value.clone(), [INFO] [stdout] 546 | | }) [INFO] [stdout] 547 | | } else { [INFO] [stdout] 548 | | None [INFO] [stdout] 549 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map [INFO] [stdout] = note: `#[warn(clippy::manual_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 543 ~ default_value.map(|default_value| AlterColumnOperation::SetDefault { [INFO] [stdout] 544 + value: default_value.clone(), [INFO] [stdout] 545 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `Option::map` [INFO] [stdout] --> src/migrations.rs:558:13 [INFO] [stdout] | [INFO] [stdout] 558 | / if let Some(data_type) = data_type { [INFO] [stdout] 559 | | Some(AlterColumnOperation::SetDataType { [INFO] [stdout] 560 | | data_type: data_type.clone(), [INFO] [stdout] 561 | | using: None, [INFO] [stdout] ... | [INFO] [stdout] 564 | | None [INFO] [stdout] 565 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 558 ~ data_type.map(|data_type| AlterColumnOperation::SetDataType { [INFO] [stdout] 559 + data_type: data_type.clone(), [INFO] [stdout] 560 + using: None, [INFO] [stdout] 561 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:588:24 [INFO] [stdout] | [INFO] [stdout] 588 | on_delete: on_delete.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*on_delete` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:589:24 [INFO] [stdout] | [INFO] [stdout] 589 | on_update: on_update.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*on_update` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:590:30 [INFO] [stdout] | [INFO] [stdout] 590 | characteristics: characteristics.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*characteristics` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:604:38 [INFO] [stdout] | [INFO] [stdout] 604 | characteristics: characteristics.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*characteristics` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/migrations.rs:610:38 [INFO] [stdout] | [INFO] [stdout] 610 | characteristics: characteristics.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*characteristics` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1293:50 [INFO] [stdout] | [INFO] [stdout] 1293 | Self::child_model_field_name(&model, populate_type, has.many) [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1295:62 [INFO] [stdout] | [INFO] [stdout] 1295 | let rust_type = Self::child_model_field_type(&model, populate_type, has.many, ""); [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1296:64 [INFO] [stdout] | [INFO] [stdout] 1296 | let ts_type = Self::child_model_zod_field_type(&model, populate_type, has.many, ""); [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1375:50 [INFO] [stdout] | [INFO] [stdout] 1375 | Self::child_model_field_name(&model, ReferenceFetchType::Data, false) [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1473:53 [INFO] [stdout] | [INFO] [stdout] 1473 | name: has.rust_child_field_name(&has_model), [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `has_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/model/sql/queries/delete.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | / write!( [INFO] [stdout] 9 | | q, [INFO] [stdout] 10 | | "DELETE FROM {schema}.{table} WHERE \n", [INFO] [stdout] 11 | | schema = data.context.schema, [INFO] [stdout] 12 | | table = data.context.table [INFO] [stdout] 13 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 8 ~ writeln!( [INFO] [stdout] 9 | q, [INFO] [stdout] 10 ~ "DELETE FROM {schema}.{table} WHERE ", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/sql/queries/insert.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | sep.push(&field.0); [INFO] [stdout] | ^^^^^^^^ help: change this to: `field.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/model/sql/queries/update.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | fn update_query<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 52 | data: &'a SqlBuilder, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 51 ~ fn update_query( [INFO] [stdout] 52 ~ data: &SqlBuilder, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/sql/queries/upsert.rs:93:22 [INFO] [stdout] | [INFO] [stdout] 93 | sep.push(&field.0); [INFO] [stdout] | ^^^^^^^^ help: change this to: `field.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's values [INFO] [stdout] --> src/model/validate.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | for (_, model) in &models.0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `#[warn(clippy::for_kv_map)]` on by default [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 4 - for (_, model) in &models.0 { [INFO] [stdout] 4 + for model in models.0.values() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant name ends with the enum's name [INFO] [stdout] --> src/model/field.rs:435:5 [INFO] [stdout] | [INFO] [stdout] 435 | NotDeferrable, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [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: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/model/field.rs:468:25 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn to_rust_type(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/model/field.rs:484:27 [INFO] [stdout] | [INFO] [stdout] 484 | pub fn to_client_type(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/model/field.rs:500:24 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn to_zod_type(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/model/field.rs:516:24 [INFO] [stdout] | [INFO] [stdout] 516 | pub fn to_sql_type(&self, dialect: SqlDialect) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/model/field.rs:553:1 [INFO] [stdout] | [INFO] [stdout] 553 | / impl Default for Access { [INFO] [stdout] 554 | | fn default() -> Self { [INFO] [stdout] 555 | | Self::ReadWrite [INFO] [stdout] 556 | | } [INFO] [stdout] 557 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 542 + #[derive(Default)] [INFO] [stdout] 543 | pub enum Access { [INFO] [stdout] 544 | /// No access [INFO] [stdout] ... [INFO] [stdout] 550 | /// Read and write [INFO] [stdout] 551 ~ #[default] [INFO] [stdout] 552 ~ ReadWrite, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/model/mod.rs:255:28 [INFO] [stdout] | [INFO] [stdout] 255 | self.fields.extend(other_model.fields.into_iter()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/collect.rs:416:17 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 255 - self.fields.extend(other_model.fields.into_iter()); [INFO] [stdout] 255 + self.fields.extend(other_model.fields); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/model/mod.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | self.indexes.extend(other_model.indexes.into_iter()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/collect.rs:416:17 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 277 - self.indexes.extend(other_model.indexes.into_iter()); [INFO] [stdout] 277 + self.indexes.extend(other_model.indexes); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/file.rs:155:40 [INFO] [stdout] | [INFO] [stdout] 155 | format_parameters.push_str(&name); [INFO] [stdout] | ^^^^^ help: change this to: `name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generate_types.rs:118:29 [INFO] [stdout] | [INFO] [stdout] 118 | ... &f.model, fetch_type, f.many, "", [INFO] [stdout] | ^^^^^^^^ help: change this to: `f.model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method chain can be written more clearly with `if .. else ..` [INFO] [stdout] --> src/model/generate_types.rs:196:35 [INFO] [stdout] | [INFO] [stdout] 196 | let aliases = (suffixes.len() > 1) [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 197 | | .then(|| { [INFO] [stdout] 198 | | suffixes [INFO] [stdout] 199 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 203 | | }) [INFO] [stdout] 204 | | .unwrap_or_default(); [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else [INFO] [stdout] = note: `#[warn(clippy::obfuscated_if_else)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 196 ~ let aliases = if suffixes.len() > 1 { { [INFO] [stdout] 197 + suffixes [INFO] [stdout] 198 + .iter() [INFO] [stdout] 199 + .filter(|(s, _)| *s != "AllFields" && *s != suffix) [INFO] [stdout] 200 + .map(|(s, _)| format!("{struct_base}{s}")) [INFO] [stdout] 201 + .collect::>() [INFO] [stdout] 202 ~ } } else { Default::default() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | print_var(writer, &pc, "HOST", "::1", "Host to bind to")?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:150:23 [INFO] [stdout] | [INFO] [stdout] 150 | print_var(writer, &pc, "ENV", "development", "")?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:151:23 [INFO] [stdout] | [INFO] [stdout] 151 | print_var(writer, &pc, "LOG", "info", "Trace logging level to use")?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/print_env.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | / match config.error_reporting.provider { [INFO] [stdout] 154 | | crate::config::ErrorReportingProvider::Sentry => { [INFO] [stdout] 155 | | print_var( [INFO] [stdout] 156 | | writer, [INFO] [stdout] ... | [INFO] [stdout] 163 | | _ => {} [INFO] [stdout] 164 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 153 ~ if let crate::config::ErrorReportingProvider::Sentry = config.error_reporting.provider { [INFO] [stdout] 154 + print_var( [INFO] [stdout] 155 + writer, [INFO] [stdout] 156 + &pc, [INFO] [stdout] 157 + "SENTRY_DSN", [INFO] [stdout] 158 + "", [INFO] [stdout] 159 + "Sentry DSN to use for error reporting", [INFO] [stdout] 160 + )?; [INFO] [stdout] 161 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 281 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:297:9 [INFO] [stdout] | [INFO] [stdout] 297 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/print_env.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | &config.users.same_org_invites_require_email_verification, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `config.users.same_org_invites_require_email_verification` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:367:13 [INFO] [stdout] | [INFO] [stdout] 367 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:375:42 [INFO] [stdout] | [INFO] [stdout] 375 | print_worker_config_vars(writer, &pc, name, cfg)?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:379:52 [INFO] [stdout] | [INFO] [stdout] 379 | print_storage_provider_config_vars(writer, &pc, name, cfg)?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:383:50 [INFO] [stdout] | [INFO] [stdout] 383 | print_storage_bucket_config_vars(writer, &pc, name, cfg)?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:389:13 [INFO] [stdout] | [INFO] [stdout] 389 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for cloning elements [INFO] [stdout] --> src/model/generator.rs:214:24 [INFO] [stdout] | [INFO] [stdout] 214 | let children = model [INFO] [stdout] | ________________________^ [INFO] [stdout] 215 | | .has [INFO] [stdout] 216 | | .iter() [INFO] [stdout] 217 | | .map(|c| c.clone()) [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] help: consider calling the dedicated `cloned` method [INFO] [stdout] | [INFO] [stdout] 214 ~ let children = model [INFO] [stdout] 215 + .has [INFO] [stdout] 216 + .iter().cloned() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/print_env.rs:411:9 [INFO] [stdout] | [INFO] [stdout] 411 | &cfg.min_concurrency(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `cfg.min_concurrency()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/print_env.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 418 | &cfg.max_concurrency(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `cfg.max_concurrency()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:455:9 [INFO] [stdout] | [INFO] [stdout] 455 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:462:9 [INFO] [stdout] | [INFO] [stdout] 462 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:469:9 [INFO] [stdout] | [INFO] [stdout] 469 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 476 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:483:9 [INFO] [stdout] | [INFO] [stdout] 483 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:490:9 [INFO] [stdout] | [INFO] [stdout] 490 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:497:9 [INFO] [stdout] | [INFO] [stdout] 497 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:505:9 [INFO] [stdout] | [INFO] [stdout] 505 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:531:9 [INFO] [stdout] | [INFO] [stdout] 531 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/print_env.rs:533:9 [INFO] [stdout] | [INFO] [stdout] 533 | / &cfg.public_url [INFO] [stdout] 534 | | .as_ref() [INFO] [stdout] 535 | | .map(|u| u.to_string()) [INFO] [stdout] 536 | | .unwrap_or_default(), [INFO] [stdout] | |________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 533 ~ cfg.public_url [INFO] [stdout] 534 + .as_ref() [INFO] [stdout] 535 + .map(|u| u.to_string()) [INFO] [stdout] 536 ~ .unwrap_or_default(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/model/generator.rs:465:48 [INFO] [stdout] | [INFO] [stdout] 465 | .chain(self.standard_fields()?.map(|field| Cow::Owned(field))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Cow::Owned` [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: redundant closure [INFO] [stdout] --> src/model/generator.rs:466:43 [INFO] [stdout] | [INFO] [stdout] 466 | .chain(self.fields.iter().map(|field| Cow::Borrowed(field))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/model/generator.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | &full_default_sort_field[1..] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/model/generator.rs:529:34 [INFO] [stdout] | [INFO] [stdout] 529 | let default_sort_field = if full_default_sort_field.starts_with('-') { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 529 ~ let default_sort_field = if let Some() = full_default_sort_field.strip_prefix('-') { [INFO] [stdout] 530 ~ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: iterating on a map's keys [INFO] [stdout] --> src/root/mod.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | let job_list = config [INFO] [stdout] | ____________________^ [INFO] [stdout] 49 | | .job [INFO] [stdout] 50 | | .iter() [INFO] [stdout] 51 | | .map(|(k, _)| k.to_case(Case::Snake)) [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 48 ~ let job_list = config [INFO] [stdout] 49 + .job.keys().map(|k| k.to_case(Case::Snake)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:643:50 [INFO] [stdout] | [INFO] [stdout] 643 | Self::child_model_field_name(&child_model, has.populate_on_get, has.many) [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:647:50 [INFO] [stdout] | [INFO] [stdout] 647 | Self::child_model_field_name(&child_model, has.populate_on_list, has.many) [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:651:50 [INFO] [stdout] | [INFO] [stdout] 651 | Self::child_model_field_type(&child_model, has.populate_on_get, has.many, ""); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:653:50 [INFO] [stdout] | [INFO] [stdout] 653 | Self::child_model_field_type(&child_model, has.populate_on_list, has.many, ""); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:664:50 [INFO] [stdout] | [INFO] [stdout] 664 | Self::child_model_field_name(&child_model, ReferenceFetchType::Id, false), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:665:50 [INFO] [stdout] | [INFO] [stdout] 665 | Self::child_model_field_name(&child_model, ReferenceFetchType::Id, true), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:666:50 [INFO] [stdout] | [INFO] [stdout] 666 | Self::child_model_field_name(&child_model, ReferenceFetchType::Data, false), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:667:50 [INFO] [stdout] | [INFO] [stdout] 667 | Self::child_model_field_name(&child_model, ReferenceFetchType::Data, true), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:689:60 [INFO] [stdout] | [INFO] [stdout] 689 | .then(|| has.rust_child_field_name(&child_model)), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `child_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1293:50 [INFO] [stdout] | [INFO] [stdout] 1293 | Self::child_model_field_name(&model, populate_type, has.many) [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1295:62 [INFO] [stdout] | [INFO] [stdout] 1295 | let rust_type = Self::child_model_field_type(&model, populate_type, has.many, ""); [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1296:64 [INFO] [stdout] | [INFO] [stdout] 1296 | let ts_type = Self::child_model_zod_field_type(&model, populate_type, has.many, ""); [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/templates.rs:175:50 [INFO] [stdout] | [INFO] [stdout] 175 | Value::Object(_) => Err(tera::Error::msg(format!("to_sql does not support objects"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"to_sql does not support objects".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/templates.rs:181:57 [INFO] [stdout] | [INFO] [stdout] 181 | Value::String(s) => Ok(Value::String(sql_string(&s))), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1375:50 [INFO] [stdout] | [INFO] [stdout] 1375 | Self::child_model_field_name(&model, ReferenceFetchType::Data, false) [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/generator.rs:1473:53 [INFO] [stdout] | [INFO] [stdout] 1473 | name: has.rust_child_field_name(&has_model), [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `has_model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for copying elements [INFO] [stdout] --> src/write.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | self.0.get(name).map(|g| *g).ok_or_else(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `self.0.get(name).copied()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/write.rs:118:45 [INFO] [stdout] | [INFO] [stdout] 118 | models.push(file.generate_model(&model)); [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/write.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | models.extend(config_models.into_iter()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/collect.rs:416:17 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 122 - models.extend(config_models.into_iter()); [INFO] [stdout] 122 + models.extend(config_models); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `write!()` with a format string that ends in a single newline [INFO] [stdout] --> src/model/sql/queries/delete.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | / write!( [INFO] [stdout] 9 | | q, [INFO] [stdout] 10 | | "DELETE FROM {schema}.{table} WHERE \n", [INFO] [stdout] 11 | | schema = data.context.schema, [INFO] [stdout] 12 | | table = data.context.table [INFO] [stdout] 13 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stdout] help: use `writeln!` instead [INFO] [stdout] | [INFO] [stdout] 8 ~ writeln!( [INFO] [stdout] 9 | q, [INFO] [stdout] 10 ~ "DELETE FROM {schema}.{table} WHERE ", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/write.rs:282:16 [INFO] [stdout] | [INFO] [stdout] 282 | .chain(model_migrations.into_iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/iterator.rs:510:11 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 282 - .chain(model_migrations.into_iter()) [INFO] [stdout] 282 + .chain(model_migrations) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/write.rs:283:16 [INFO] [stdout] | [INFO] [stdout] 283 | .chain(last_fixed_migrations.into_iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/iterator.rs:510:11 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 283 - .chain(last_fixed_migrations.into_iter()) [INFO] [stdout] 283 + .chain(last_fixed_migrations) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/write.rs:337:16 [INFO] [stdout] | [INFO] [stdout] 337 | .chain(page_files.into_iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/iterator.rs:510:11 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 337 - .chain(page_files.into_iter()) [INFO] [stdout] 337 + .chain(page_files) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/sql/queries/insert.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | sep.push(&field.0); [INFO] [stdout] | ^^^^^^^^ help: change this to: `field.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/write.rs:354:49 [INFO] [stdout] | [INFO] [stdout] 354 | std::fs::create_dir_all(&base_dir.join(dir)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: change this to: `base_dir.join(dir)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/write.rs:361:84 [INFO] [stdout] | [INFO] [stdout] 361 | let gen_cache_dir = merge_tracker.base_generated_path.join(&dir); [INFO] [stdout] | ^^^^ help: change this to: `dir` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/model/sql/queries/update.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | fn update_query<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 52 | data: &'a SqlBuilder, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 51 ~ fn update_query( [INFO] [stdout] 52 ~ data: &SqlBuilder, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/model/sql/queries/upsert.rs:93:22 [INFO] [stdout] | [INFO] [stdout] 93 | sep.push(&field.0); [INFO] [stdout] | ^^^^^^^^ help: change this to: `field.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | / match args.command { [INFO] [stdout] 96 | | Command::Init(cmd) => return init::run(cmd), [INFO] [stdout] 97 | | _ => {} [INFO] [stdout] 98 | | }; [INFO] [stdout] | |_____^ help: try: `if let Command::Init(cmd) = args.command { return init::run(cmd) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/mod.rs:158:22 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn id_prefix(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 158 | pub fn id_prefix(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/mod.rs:225:19 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn plural(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 225 | pub fn plural(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/field.rs:193:22 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn rust_type(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 193 | pub fn rust_type(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/field.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn zod_type(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 209 | pub fn zod_type(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/generator.rs:459:23 [INFO] [stdout] | [INFO] [stdout] 459 | pub fn all_fields(&self) -> Result>, Error> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 459 | pub fn all_fields(&self) -> Result>, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/generator.rs:474:9 [INFO] [stdout] | [INFO] [stdout] 474 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 475 | for_update: bool, [INFO] [stdout] 476 | ) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 476 | ) -> Result>, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/generator.rs:1427:9 [INFO] [stdout] | [INFO] [stdout] 1427 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 1428 | for_update: bool, [INFO] [stdout] 1429 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1429 | ) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/write.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 91 | ) -> Result<&ModelGenerator, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |the same lifetime is hidden here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Result<&ModelGenerator<'_>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's values [INFO] [stdout] --> src/model/validate.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | for (_, model) in &models.0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `#[warn(clippy::for_kv_map)]` on by default [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 4 - for (_, model) in &models.0 { [INFO] [stdout] 4 + for model in models.0.values() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/model/mod.rs:255:28 [INFO] [stdout] | [INFO] [stdout] 255 | self.fields.extend(other_model.fields.into_iter()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/collect.rs:416:17 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 255 - self.fields.extend(other_model.fields.into_iter()); [INFO] [stdout] 255 + self.fields.extend(other_model.fields); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/model/mod.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | self.indexes.extend(other_model.indexes.into_iter()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/collect.rs:416:17 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 277 - self.indexes.extend(other_model.indexes.into_iter()); [INFO] [stdout] 277 + self.indexes.extend(other_model.indexes); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | print_var(writer, &pc, "HOST", "::1", "Host to bind to")?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:150:23 [INFO] [stdout] | [INFO] [stdout] 150 | print_var(writer, &pc, "ENV", "development", "")?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:151:23 [INFO] [stdout] | [INFO] [stdout] 151 | print_var(writer, &pc, "LOG", "info", "Trace logging level to use")?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/print_env.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | / match config.error_reporting.provider { [INFO] [stdout] 154 | | crate::config::ErrorReportingProvider::Sentry => { [INFO] [stdout] 155 | | print_var( [INFO] [stdout] 156 | | writer, [INFO] [stdout] ... | [INFO] [stdout] 163 | | _ => {} [INFO] [stdout] 164 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 153 ~ if let crate::config::ErrorReportingProvider::Sentry = config.error_reporting.provider { [INFO] [stdout] 154 + print_var( [INFO] [stdout] 155 + writer, [INFO] [stdout] 156 + &pc, [INFO] [stdout] 157 + "SENTRY_DSN", [INFO] [stdout] 158 + "", [INFO] [stdout] 159 + "Sentry DSN to use for error reporting", [INFO] [stdout] 160 + )?; [INFO] [stdout] 161 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 281 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:297:9 [INFO] [stdout] | [INFO] [stdout] 297 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/print_env.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | &config.users.same_org_invites_require_email_verification, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `config.users.same_org_invites_require_email_verification` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:367:13 [INFO] [stdout] | [INFO] [stdout] 367 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:375:42 [INFO] [stdout] | [INFO] [stdout] 375 | print_worker_config_vars(writer, &pc, name, cfg)?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:379:52 [INFO] [stdout] | [INFO] [stdout] 379 | print_storage_provider_config_vars(writer, &pc, name, cfg)?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:383:50 [INFO] [stdout] | [INFO] [stdout] 383 | print_storage_bucket_config_vars(writer, &pc, name, cfg)?; [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:389:13 [INFO] [stdout] | [INFO] [stdout] 389 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/print_env.rs:411:9 [INFO] [stdout] | [INFO] [stdout] 411 | &cfg.min_concurrency(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `cfg.min_concurrency()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/print_env.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 418 | &cfg.max_concurrency(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `cfg.max_concurrency()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:455:9 [INFO] [stdout] | [INFO] [stdout] 455 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:462:9 [INFO] [stdout] | [INFO] [stdout] 462 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:469:9 [INFO] [stdout] | [INFO] [stdout] 469 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 476 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:483:9 [INFO] [stdout] | [INFO] [stdout] 483 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:490:9 [INFO] [stdout] | [INFO] [stdout] 490 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:497:9 [INFO] [stdout] | [INFO] [stdout] 497 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:505:9 [INFO] [stdout] | [INFO] [stdout] 505 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/print_env.rs:531:9 [INFO] [stdout] | [INFO] [stdout] 531 | &pc, [INFO] [stdout] | ^^^ help: change this to: `pc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/print_env.rs:533:9 [INFO] [stdout] | [INFO] [stdout] 533 | / &cfg.public_url [INFO] [stdout] 534 | | .as_ref() [INFO] [stdout] 535 | | .map(|u| u.to_string()) [INFO] [stdout] 536 | | .unwrap_or_default(), [INFO] [stdout] | |________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 533 ~ cfg.public_url [INFO] [stdout] 534 + .as_ref() [INFO] [stdout] 535 + .map(|u| u.to_string()) [INFO] [stdout] 536 ~ .unwrap_or_default(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: iterating on a map's keys [INFO] [stdout] --> src/root/mod.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | let job_list = config [INFO] [stdout] | ____________________^ [INFO] [stdout] 49 | | .job [INFO] [stdout] 50 | | .iter() [INFO] [stdout] 51 | | .map(|(k, _)| k.to_case(Case::Snake)) [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 48 ~ let job_list = config [INFO] [stdout] 49 + .job.keys().map(|k| k.to_case(Case::Snake)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/templates.rs:175:50 [INFO] [stdout] | [INFO] [stdout] 175 | Value::Object(_) => Err(tera::Error::msg(format!("to_sql does not support objects"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"to_sql does not support objects".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/templates.rs:181:57 [INFO] [stdout] | [INFO] [stdout] 181 | Value::String(s) => Ok(Value::String(sql_string(&s))), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for copying elements [INFO] [stdout] --> src/write.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | self.0.get(name).map(|g| *g).ok_or_else(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `self.0.get(name).copied()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/write.rs:118:45 [INFO] [stdout] | [INFO] [stdout] 118 | models.push(file.generate_model(&model)); [INFO] [stdout] | ^^^^^^ help: change this to: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/write.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | models.extend(config_models.into_iter()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/collect.rs:416:17 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 122 - models.extend(config_models.into_iter()); [INFO] [stdout] 122 + models.extend(config_models); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/write.rs:282:16 [INFO] [stdout] | [INFO] [stdout] 282 | .chain(model_migrations.into_iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/iterator.rs:510:11 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 282 - .chain(model_migrations.into_iter()) [INFO] [stdout] 282 + .chain(model_migrations) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/write.rs:283:16 [INFO] [stdout] | [INFO] [stdout] 283 | .chain(last_fixed_migrations.into_iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/iterator.rs:510:11 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 283 - .chain(last_fixed_migrations.into_iter()) [INFO] [stdout] 283 + .chain(last_fixed_migrations) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/write.rs:337:16 [INFO] [stdout] | [INFO] [stdout] 337 | .chain(page_files.into_iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> /rustc/3645249d79dfb136b5d8de3ce153d19d6698d92d/library/core/src/iter/traits/iterator.rs:510:11 [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 337 - .chain(page_files.into_iter()) [INFO] [stdout] 337 + .chain(page_files) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/write.rs:354:49 [INFO] [stdout] | [INFO] [stdout] 354 | std::fs::create_dir_all(&base_dir.join(dir)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: change this to: `base_dir.join(dir)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/write.rs:361:84 [INFO] [stdout] | [INFO] [stdout] 361 | let gen_cache_dir = merge_tracker.base_generated_path.join(&dir); [INFO] [stdout] | ^^^^ help: change this to: `dir` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | / match args.command { [INFO] [stdout] 96 | | Command::Init(cmd) => return init::run(cmd), [INFO] [stdout] 97 | | _ => {} [INFO] [stdout] 98 | | }; [INFO] [stdout] | |_____^ help: try: `if let Command::Init(cmd) = args.command { return init::run(cmd) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/mod.rs:158:22 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn id_prefix(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 158 | pub fn id_prefix(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/mod.rs:225:19 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn plural(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 225 | pub fn plural(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/field.rs:193:22 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn rust_type(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 193 | pub fn rust_type(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/field.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn zod_type(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 209 | pub fn zod_type(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/generator.rs:459:23 [INFO] [stdout] | [INFO] [stdout] 459 | pub fn all_fields(&self) -> Result>, Error> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 459 | pub fn all_fields(&self) -> Result>, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/generator.rs:474:9 [INFO] [stdout] | [INFO] [stdout] 474 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 475 | for_update: bool, [INFO] [stdout] 476 | ) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 476 | ) -> Result>, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/model/generator.rs:1427:9 [INFO] [stdout] | [INFO] [stdout] 1427 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 1428 | for_update: bool, [INFO] [stdout] 1429 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1429 | ) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/write.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 91 | ) -> Result<&ModelGenerator, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |the same lifetime is hidden here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Result<&ModelGenerator<'_>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.8.0 [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" "a2f7b9eb4a5e91cebc178c7d23d3762d7423ea75455dbd9196ab168e5b0ffcb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2f7b9eb4a5e91cebc178c7d23d3762d7423ea75455dbd9196ab168e5b0ffcb1", kill_on_drop: false }` [INFO] [stdout] a2f7b9eb4a5e91cebc178c7d23d3762d7423ea75455dbd9196ab168e5b0ffcb1