[INFO] cloning repository https://github.com/jarx88/poprawiacz-tekstu-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jarx88/poprawiacz-tekstu-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjarx88%2Fpoprawiacz-tekstu-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjarx88%2Fpoprawiacz-tekstu-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b4181dd55fcad26196c5242033ef1536dc2e8aaa [INFO] linting jarx88/poprawiacz-tekstu-rs against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjarx88%2Fpoprawiacz-tekstu-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jarx88/poprawiacz-tekstu-rs [INFO] finished tweaking git repo https://github.com/jarx88/poprawiacz-tekstu-rs [INFO] tweaked toml for git repo https://github.com/jarx88/poprawiacz-tekstu-rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jarx88/poprawiacz-tekstu-rs on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jarx88/poprawiacz-tekstu-rs 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 gobject-sys v0.20.10 [INFO] [stderr] Downloaded target-lexicon v0.13.3 [INFO] [stderr] Downloaded cairo-sys-rs v0.20.10 [INFO] [stderr] Downloaded gtk4-layer-shell-sys v0.3.0 [INFO] [stderr] Downloaded pango v0.20.12 [INFO] [stderr] Downloaded gtk4-layer-shell v0.4.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.20.10 [INFO] [stderr] Downloaded dbus-codegen v0.9.1 [INFO] [stderr] Downloaded graphene-rs v0.20.10 [INFO] [stderr] Downloaded gsk4 v0.9.6 [INFO] [stderr] Downloaded global-hotkey v0.6.4 [INFO] [stderr] Downloaded ashpd v0.9.2 [INFO] [stderr] Downloaded ksni v0.2.2 [INFO] [stderr] Downloaded gio-sys v0.20.10 [INFO] [stderr] Downloaded gtk4-sys v0.9.6 [INFO] [stderr] Downloaded libadwaita v0.7.2 [INFO] [stderr] Downloaded gdk4 v0.9.6 [INFO] [stderr] Downloaded gdk4-sys v0.9.6 [INFO] [stderr] Downloaded glib-macros v0.20.12 [INFO] [stderr] Downloaded glib-sys v0.20.10 [INFO] [stderr] Downloaded glib v0.20.12 [INFO] [stderr] Downloaded gio v0.20.12 [INFO] [stderr] Downloaded cairo-rs v0.20.12 [INFO] [stderr] Downloaded libadwaita-sys v0.7.2 [INFO] [stderr] Downloaded gtk4-macros v0.9.5 [INFO] [stderr] Downloaded gsk4-sys v0.9.6 [INFO] [stderr] Downloaded dbus-tree v0.9.2 [INFO] [stderr] Downloaded gdk-pixbuf-sys v0.20.10 [INFO] [stderr] Downloaded graphene-sys v0.20.10 [INFO] [stderr] Downloaded cfg-expr v0.20.6 [INFO] [stderr] Downloaded system-deps v7.0.7 [INFO] [stderr] Downloaded zmij v1.0.18 [INFO] [stderr] Downloaded pango-sys v0.20.10 [INFO] [stderr] Downloaded gtk4 v0.9.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2f1c3827fe8682362066652a75c4bb86e937b3fbeebd7d648449d4784a402b3 [INFO] running `Command { std: "docker" "start" "-a" "e2f1c3827fe8682362066652a75c4bb86e937b3fbeebd7d648449d4784a402b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2f1c3827fe8682362066652a75c4bb86e937b3fbeebd7d648449d4784a402b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2f1c3827fe8682362066652a75c4bb86e937b3fbeebd7d648449d4784a402b3", kill_on_drop: false }` [INFO] [stdout] e2f1c3827fe8682362066652a75c4bb86e937b3fbeebd7d648449d4784a402b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 407b002686b5900cb6b088bc9ba1659e4f4fbbde38a46e4625e5b0a71bbab0b1 [INFO] running `Command { std: "docker" "start" "-a" "407b002686b5900cb6b088bc9ba1659e4f4fbbde38a46e4625e5b0a71bbab0b1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling target-lexicon v0.13.3 [INFO] [stderr] Compiling serde_spanned v1.0.4 [INFO] [stderr] Compiling version-compare v0.2.1 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling zerocopy v0.8.37 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling toml v0.9.11+spec-1.1.0 [INFO] [stderr] Compiling libdbus-sys v0.2.7 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling gio v0.20.12 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking as-slice v0.2.1 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling built v0.8.0 [INFO] [stderr] Compiling av-scenechange v0.14.1 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking aligned v0.4.3 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Compiling pastey v0.1.1 [INFO] [stderr] Checking y4m v0.8.0 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking bitstream-io v4.9.0 [INFO] [stderr] Checking flate2 v1.1.8 [INFO] [stderr] Compiling field-offset v0.3.6 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling cfg-expr v0.20.6 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking weezl v0.1.12 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking imgref v1.12.0 [INFO] [stderr] Compiling rav1e v0.8.1 [INFO] [stderr] Compiling xml-rs v0.8.28 [INFO] [stderr] Compiling zmij v1.0.18 [INFO] [stderr] Checking endi v1.1.1 [INFO] [stderr] Checking zune-jpeg v0.4.21 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking avif-serialize v0.8.6 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling dbus v0.9.10 [INFO] [stderr] Checking pxfm v0.1.27 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling system-deps v7.0.7 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking bit_field v0.10.3 [INFO] [stderr] Checking zune-core v0.5.1 [INFO] [stderr] Checking rgb v0.8.52 [INFO] [stderr] Checking lebe v0.5.3 [INFO] [stderr] Checking zune-jpeg v0.5.12 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking gif v0.14.1 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling glib-sys v0.20.10 [INFO] [stderr] Compiling gobject-sys v0.20.10 [INFO] [stderr] Compiling gio-sys v0.20.10 [INFO] [stderr] Compiling pango-sys v0.20.10 [INFO] [stderr] Compiling cairo-sys-rs v0.20.10 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.20.10 [INFO] [stderr] Compiling gdk4-sys v0.9.6 [INFO] [stderr] Compiling graphene-sys v0.20.10 [INFO] [stderr] Compiling gsk4-sys v0.9.6 [INFO] [stderr] Compiling gtk4-sys v0.9.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling libadwaita-sys v0.7.2 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking xdg-home v1.3.0 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking image-webp v0.2.4 [INFO] [stderr] Checking png v0.18.0 [INFO] [stderr] Checking async-broadcast v0.7.2 [INFO] [stderr] Checking ordered-stream v0.2.0 [INFO] [stderr] Checking x11rb-protocol v0.13.2 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking dirs-sys v0.5.0 [INFO] [stderr] Compiling mockall_derive v0.13.1 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Checking dirs v6.0.0 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking similar v2.7.0 [INFO] [stderr] Checking predicates v3.1.3 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking fragile v2.0.1 [INFO] [stderr] Compiling dbus-codegen v0.9.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zvariant_utils v2.1.0 [INFO] [stderr] Checking moxcms v0.7.11 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerocopy-derive v0.8.37 [INFO] [stderr] Compiling glib-macros v0.20.12 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking av1-grain v0.2.5 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling zvariant_derive v4.2.0 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Compiling ksni v0.2.2 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Compiling gtk4-macros v0.9.5 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling zbus_macros v4.4.0 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking dbus-tree v0.9.2 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking tempfile v3.24.0 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking enumflags2 v0.7.12 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.3 [INFO] [stderr] Checking keyboard-types v0.7.0 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_edit v0.20.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking glib v0.20.12 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking global-hotkey v0.6.4 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking mockall v0.13.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tokio-test v0.4.5 [INFO] [stderr] Checking toml v0.8.2 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking exr v1.74.0 [INFO] [stderr] Checking tiff v0.10.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking zvariant v4.2.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ravif v0.12.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking image v0.25.9 [INFO] [stderr] Checking zbus_names v3.0.0 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking zbus v4.4.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking cairo-rs v0.20.12 [INFO] [stderr] Checking graphene-rs v0.20.10 [INFO] [stderr] Checking arboard v3.6.1 [INFO] [stderr] Checking ashpd v0.9.2 [INFO] [stderr] Checking gdk-pixbuf v0.20.10 [INFO] [stderr] Checking pango v0.20.12 [INFO] [stderr] Checking gdk4 v0.9.6 [INFO] [stderr] Checking gsk4 v0.9.6 [INFO] [stderr] Checking gtk4 v0.9.7 [INFO] [stderr] Checking libadwaita v0.7.2 [INFO] [stderr] Checking poprawiacz-tekstu-rs v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/app.rs:414:26 [INFO] [stdout] | [INFO] [stdout] 414 | fn build_panel_frame(index: usize, panel: &PanelState) -> gtk4::Frame { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/app.rs:414:26 [INFO] [stdout] | [INFO] [stdout] 414 | fn build_panel_frame(index: usize, panel: &PanelState) -> gtk4::Frame { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `delta_type` is never read [INFO] [stdout] --> src/api/anthropic.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 47 | struct StreamDelta { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 48 | #[serde(rename = "type")] [INFO] [stdout] 49 | delta_type: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamDelta` 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: associated function `show_original_text_dialog` is never used [INFO] [stdout] --> src/app.rs:662:8 [INFO] [stdout] | [INFO] [stdout] 92 | impl MainWindow { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 662 | fn show_original_text_dialog(parent: &adw::ApplicationWindow, text: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `delta_type` is never read [INFO] [stdout] --> src/api/anthropic.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 47 | struct StreamDelta { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 48 | #[serde(rename = "type")] [INFO] [stdout] 49 | delta_type: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamDelta` 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: associated function `show_original_text_dialog` is never used [INFO] [stdout] --> src/app.rs:662:8 [INFO] [stdout] | [INFO] [stdout] 92 | impl MainWindow { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 662 | fn show_original_text_dialog(parent: &adw::ApplicationWindow, text: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/config.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | assert_eq!(config.settings.auto_startup, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 123 - assert_eq!(config.settings.auto_startup, false); [INFO] [stdout] 123 + assert!(!config.settings.auto_startup); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/api/openai.rs:111:45 [INFO] [stdout] | [INFO] [stdout] 111 | stream_openai_request_with_callback(&client, api_key, request, on_chunk).await [INFO] [stdout] | ^^^^^^^ help: change this to: `client` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/api/openai.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | batch_openai_request(&client, api_key, request).await [INFO] [stdout] | ^^^^^^^ help: change this to: `client` [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: stripping a prefix manually [INFO] [stdout] --> src/api/openai.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | let data = &line[6..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/api/openai.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | if line.starts_with("data: ") { [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] 202 ~ if let Some(data) = line.strip_prefix("data: ") { [INFO] [stdout] 203 ~ if data.trim() == "[DONE]" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/api/openai.rs:111:45 [INFO] [stdout] | [INFO] [stdout] 111 | stream_openai_request_with_callback(&client, api_key, request, on_chunk).await [INFO] [stdout] | ^^^^^^^ help: change this to: `client` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/api/openai.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | batch_openai_request(&client, api_key, request).await [INFO] [stdout] | ^^^^^^^ help: change this to: `client` [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: stripping a prefix manually [INFO] [stdout] --> src/api/openai.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | let data = &line[6..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/api/openai.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | if line.starts_with("data: ") { [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] 202 ~ if let Some(data) = line.strip_prefix("data: ") { [INFO] [stdout] 203 ~ if data.trim() == "[DONE]" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/api/anthropic.rs:141:32 [INFO] [stdout] | [INFO] [stdout] 141 | let data = &line[6..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/api/anthropic.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | if line.starts_with("data: ") { [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] 140 ~ if let Some(data) = line.strip_prefix("data: ") { [INFO] [stdout] 141 ~ if let Ok(event) = serde_json::from_str::(data) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.find_map(..)` can be written more simply using `.map(..).next()` [INFO] [stdout] --> src/api/anthropic.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | .find_map(|block| match block { [INFO] [stdout] | ______________^ [INFO] [stdout] 173 | | ContentBlock::Text { text } => Some(text), [INFO] [stdout] 174 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map [INFO] [stdout] = note: `#[warn(clippy::unnecessary_find_map)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/api/anthropic.rs:141:32 [INFO] [stdout] | [INFO] [stdout] 141 | let data = &line[6..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/api/anthropic.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | if line.starts_with("data: ") { [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] 140 ~ if let Some(data) = line.strip_prefix("data: ") { [INFO] [stdout] 141 ~ if let Ok(event) = serde_json::from_str::(data) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.find_map(..)` can be written more simply using `.map(..).next()` [INFO] [stdout] --> src/api/anthropic.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | .find_map(|block| match block { [INFO] [stdout] | ______________^ [INFO] [stdout] 173 | | ContentBlock::Text { text } => Some(text), [INFO] [stdout] 174 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map [INFO] [stdout] = note: `#[warn(clippy::unnecessary_find_map)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/api/gemini.rs:220:28 [INFO] [stdout] | [INFO] [stdout] 220 | let data = &line[6..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/api/gemini.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | if line.starts_with("data: ") { [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] 219 ~ if let Some(data) = line.strip_prefix("data: ") { [INFO] [stdout] 220 ~ if data.trim() == "[DONE]" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/api/gemini.rs:220:28 [INFO] [stdout] | [INFO] [stdout] 220 | let data = &line[6..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/api/gemini.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | if line.starts_with("data: ") { [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] 219 ~ if let Some(data) = line.strip_prefix("data: ") { [INFO] [stdout] 220 ~ if data.trim() == "[DONE]" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/api/deepseek.rs:147:32 [INFO] [stdout] | [INFO] [stdout] 147 | let data = &line[6..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/api/deepseek.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | if line.starts_with("data: ") { [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] 146 ~ if let Some(data) = line.strip_prefix("data: ") { [INFO] [stdout] 147 ~ if data.trim() == "[DONE]" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/api/deepseek.rs:147:32 [INFO] [stdout] | [INFO] [stdout] 147 | let data = &line[6..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/api/deepseek.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | if line.starts_with("data: ") { [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] 146 ~ if let Some(data) = line.strip_prefix("data: ") { [INFO] [stdout] 147 ~ if data.trim() == "[DONE]" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `HotkeyCombo` which implements the `Copy` trait [INFO] [stdout] --> src/hotkey.rs:78:34 [INFO] [stdout] | [INFO] [stdout] 78 | self.active_combo = Some(combo.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try removing the `clone` call: `combo` [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 `HotkeyCombo` which implements the `Copy` trait [INFO] [stdout] --> src/hotkey.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | self.active_combo = Some(combo.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try removing the `clone` call: `combo` [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 `HotkeyCombo` which implements the `Copy` trait [INFO] [stdout] --> src/hotkey.rs:78:34 [INFO] [stdout] | [INFO] [stdout] 78 | self.active_combo = Some(combo.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try removing the `clone` call: `combo` [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 `HotkeyCombo` which implements the `Copy` trait [INFO] [stdout] --> src/hotkey.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | self.active_combo = Some(combo.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try removing the `clone` call: `combo` [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 `HotkeyEvent` which implements the `Copy` trait [INFO] [stdout] --> src/hotkey.rs:274:22 [INFO] [stdout] | [INFO] [stdout] 274 | let event3 = event1.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try removing the `clone` call: `event1` [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 `PortalHotkeyEvent` which implements the `Copy` trait [INFO] [stdout] --> src/hotkey_portal.rs:98:22 [INFO] [stdout] | [INFO] [stdout] 98 | let event3 = event1.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try removing the `clone` call: `event1` [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: equality checks against true are unnecessary [INFO] [stdout] --> src/hotkey_portal.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | assert!(result == true || result == false); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `result` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/hotkey_portal.rs:105:35 [INFO] [stdout] | [INFO] [stdout] 105 | assert!(result == true || result == false); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `!result` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> src/prompts.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / pub fn from_str(s: &str) -> Self { [INFO] [stdout] 32 | | match s.to_lowercase().as_str() { [INFO] [stdout] 33 | | "professional" => Self::Professional, [INFO] [stdout] 34 | | "translate_en" => Self::TranslateEn, [INFO] [stdout] ... | [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] = note: `#[warn(clippy::should_implement_trait)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against true are unnecessary [INFO] [stdout] --> src/clipboard.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | assert!(result == true || result == false); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `result` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/clipboard.rs:116:35 [INFO] [stdout] | [INFO] [stdout] 116 | assert!(result == true || result == false); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `!result` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/app.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / pub fn new(app: &adw::Application) -> adw::ApplicationWindow { [INFO] [stdout] 94 | | let config_path = Config::get_config_path(); [INFO] [stdout] 95 | | let config = Config::load(&config_path).unwrap_or_default(); [INFO] [stdout] ... | [INFO] [stdout] 174 | | window [INFO] [stdout] 175 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> src/prompts.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / pub fn from_str(s: &str) -> Self { [INFO] [stdout] 32 | | match s.to_lowercase().as_str() { [INFO] [stdout] 33 | | "professional" => Self::Professional, [INFO] [stdout] 34 | | "translate_en" => Self::TranslateEn, [INFO] [stdout] ... | [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] = note: `#[warn(clippy::should_implement_trait)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/app.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / pub fn new(app: &adw::Application) -> adw::ApplicationWindow { [INFO] [stdout] 94 | | let config_path = Config::get_config_path(); [INFO] [stdout] 95 | | let config = Config::load(&config_path).unwrap_or_default(); [INFO] [stdout] ... | [INFO] [stdout] 174 | | window [INFO] [stdout] 175 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `RefCell` reference is held across an await point [INFO] [stdout] --> src/app.rs:748:29 [INFO] [stdout] | [INFO] [stdout] 748 | let state_ref = state.borrow(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: ensure the reference is dropped before calling `await` [INFO] [stdout] note: these are all the await points this reference is held through [INFO] [stdout] --> src/app.rs:752:63 [INFO] [stdout] | [INFO] [stdout] 752 | Self::handle_hotkey_triggered(&state).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref [INFO] [stdout] = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `RefCell` reference is held across an await point [INFO] [stdout] --> src/app.rs:767:25 [INFO] [stdout] | [INFO] [stdout] 767 | let state_ref = state.borrow(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: ensure the reference is dropped before calling `await` [INFO] [stdout] note: these are all the await points this reference is held through [INFO] [stdout] --> src/app.rs:773:97 [INFO] [stdout] | [INFO] [stdout] 773 | Self::process_with_apis(state.clone(), text, config, cancel_flags, session).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `cancel_flags` [INFO] [stdout] --> src/app.rs:837:18 [INFO] [stdout] | [INFO] [stdout] 837 | for i in 0..4 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 837 - for i in 0..4 { [INFO] [stdout] 837 + for (i, ) in cancel_flags.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(f)` on an `Option` value where `f` is a closure that returns the unit type `()` [INFO] [stdout] --> src/app.rs:974:33 [INFO] [stdout] | [INFO] [stdout] 974 | ... win.application().map(|app| app.quit()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stdout] = note: `#[warn(clippy::option_map_unit_fn)]` on by default [INFO] [stdout] help: use `if let` instead [INFO] [stdout] | [INFO] [stdout] 974 - win.application().map(|app| app.quit()); [INFO] [stdout] 974 + if let Some(app) = win.application() { app.quit() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `RefCell` reference is held across an await point [INFO] [stdout] --> src/app.rs:748:29 [INFO] [stdout] | [INFO] [stdout] 748 | let state_ref = state.borrow(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: ensure the reference is dropped before calling `await` [INFO] [stdout] note: these are all the await points this reference is held through [INFO] [stdout] --> src/app.rs:752:63 [INFO] [stdout] | [INFO] [stdout] 752 | Self::handle_hotkey_triggered(&state).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref [INFO] [stdout] = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `RefCell` reference is held across an await point [INFO] [stdout] --> src/app.rs:767:25 [INFO] [stdout] | [INFO] [stdout] 767 | let state_ref = state.borrow(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: ensure the reference is dropped before calling `await` [INFO] [stdout] note: these are all the await points this reference is held through [INFO] [stdout] --> src/app.rs:773:97 [INFO] [stdout] | [INFO] [stdout] 773 | Self::process_with_apis(state.clone(), text, config, cancel_flags, session).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `cancel_flags` [INFO] [stdout] --> src/app.rs:837:18 [INFO] [stdout] | [INFO] [stdout] 837 | for i in 0..4 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 837 - for i in 0..4 { [INFO] [stdout] 837 + for (i, ) in cancel_flags.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(f)` on an `Option` value where `f` is a closure that returns the unit type `()` [INFO] [stdout] --> src/app.rs:974:33 [INFO] [stdout] | [INFO] [stdout] 974 | ... win.application().map(|app| app.quit()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stdout] = note: `#[warn(clippy::option_map_unit_fn)]` on by default [INFO] [stdout] help: use `if let` instead [INFO] [stdout] | [INFO] [stdout] 974 - win.application().map(|app| app.quit()); [INFO] [stdout] 974 + if let Some(app) = win.application() { app.quit() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | assert!(true); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] = note: `#[warn(clippy::assertions_on_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `if let` since only the `Ok` variant of the iterator element is used [INFO] [stdout] --> src/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | / for widget in main_window.observe_children().into_iter() { [INFO] [stdout] 54 | | if let Ok(child) = widget { [INFO] [stdout] 55 | | if let Some(btn) = find_paste_button(&child) { [INFO] [stdout] 56 | | btn.emit_clicked(); [INFO] [stdout] ... | [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: try `.flatten()` and remove the `if let` statement in the for loop [INFO] [stdout] --> src/main.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | / if let Ok(child) = widget { [INFO] [stdout] 55 | | if let Some(btn) = find_paste_button(&child) { [INFO] [stdout] 56 | | btn.emit_clicked(); [INFO] [stdout] 57 | | break; [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten [INFO] [stdout] = note: `#[warn(clippy::manual_flatten)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 53 ~ for child in main_window.observe_children().into_iter().flatten() { [INFO] [stdout] 54 + if let Some(btn) = find_paste_button(&child) { [INFO] [stdout] 55 + btn.emit_clicked(); [INFO] [stdout] 56 + break; [INFO] [stdout] 57 + } [INFO] [stdout] 58 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `if let` since only the `Ok` variant of the iterator element is used [INFO] [stdout] --> src/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | / for widget in main_window.observe_children().into_iter() { [INFO] [stdout] 54 | | if let Ok(child) = widget { [INFO] [stdout] 55 | | if let Some(btn) = find_paste_button(&child) { [INFO] [stdout] 56 | | btn.emit_clicked(); [INFO] [stdout] ... | [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: try `.flatten()` and remove the `if let` statement in the for loop [INFO] [stdout] --> src/main.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | / if let Ok(child) = widget { [INFO] [stdout] 55 | | if let Some(btn) = find_paste_button(&child) { [INFO] [stdout] 56 | | btn.emit_clicked(); [INFO] [stdout] 57 | | break; [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten [INFO] [stdout] = note: `#[warn(clippy::manual_flatten)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 53 ~ for child in main_window.observe_children().into_iter().flatten() { [INFO] [stdout] 54 + if let Some(btn) = find_paste_button(&child) { [INFO] [stdout] 55 + btn.emit_clicked(); [INFO] [stdout] 56 + break; [INFO] [stdout] 57 + } [INFO] [stdout] 58 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/integration_config.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(loaded_config.settings.auto_startup, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 28 - assert_eq!(loaded_config.settings.auto_startup, true); [INFO] [stdout] 28 + assert!(loaded_config.settings.auto_startup); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion has a constant value [INFO] [stdout] --> tests/integration_workflow.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | assert!(DEFAULT_TIMEOUT > CONNECTION_TIMEOUT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider moving this into a const block: `const { assert!(..) }` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] = note: `#[warn(clippy::assertions_on_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion has a constant value [INFO] [stdout] --> tests/integration_workflow.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | assert!(DEEPSEEK_TIMEOUT > DEFAULT_TIMEOUT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider moving this into a const block: `const { assert!(..) }` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/integration_workflow.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | assert_eq!(final_config.settings.auto_startup, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 130 - assert_eq!(final_config.settings.auto_startup, true); [INFO] [stdout] 130 + assert!(final_config.settings.auto_startup); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/integration_workflow.rs:141:16 [INFO] [stdout] | [INFO] [stdout] 141 | let keys = vec![ [INFO] [stdout] | ________________^ [INFO] [stdout] 142 | | &config.api_keys.openai, [INFO] [stdout] 143 | | &config.api_keys.anthropic, [INFO] [stdout] 144 | | &config.api_keys.gemini, [INFO] [stdout] 145 | | &config.api_keys.deepseek, [INFO] [stdout] 146 | | ]; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 141 ~ let keys = [&config.api_keys.openai, [INFO] [stdout] 142 + &config.api_keys.anthropic, [INFO] [stdout] 143 + &config.api_keys.gemini, [INFO] [stdout] 144 ~ &config.api_keys.deepseek]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 03s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: ashpd v0.9.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] running `Command { std: "docker" "inspect" "407b002686b5900cb6b088bc9ba1659e4f4fbbde38a46e4625e5b0a71bbab0b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "407b002686b5900cb6b088bc9ba1659e4f4fbbde38a46e4625e5b0a71bbab0b1", kill_on_drop: false }` [INFO] [stdout] 407b002686b5900cb6b088bc9ba1659e4f4fbbde38a46e4625e5b0a71bbab0b1