[INFO] fetching crate regenerator2000 0.8.8... [INFO] linting regenerator2000-0.8.8 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate regenerator2000 0.8.8 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate regenerator2000 0.8.8 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate regenerator2000 0.8.8 [INFO] tweaked toml for crates.io crate regenerator2000 0.8.8 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate regenerator2000 0.8.8 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate regenerator2000 0.8.8 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded vergen-lib v9.1.0 [INFO] [stderr] Downloaded vergen v9.1.0 [INFO] [stderr] Downloaded vergen-gitcl v9.1.0 [INFO] [stderr] Downloaded avif-serialize v0.8.6 [INFO] [stderr] Downloaded rmcp-macros v0.15.0 [INFO] [stderr] Downloaded ravif v0.12.0 [INFO] [stderr] Downloaded ratatui-textarea v0.8.0 [INFO] [stderr] Downloaded quantette v0.5.1 [INFO] [stderr] Downloaded safe_arch v0.9.3 [INFO] [stderr] Downloaded zune-jpeg v0.5.12 [INFO] [stderr] Downloaded png v0.18.0 [INFO] [stderr] Downloaded wide v0.8.3 [INFO] [stderr] Downloaded libfuzzer-sys v0.4.10 [INFO] [stderr] Downloaded moxcms v0.7.11 [INFO] [stderr] Downloaded process-wrap v9.0.3 [INFO] [stderr] Downloaded zerocopy-derive v0.8.38 [INFO] [stderr] Downloaded quinn-proto v0.11.14 [INFO] [stderr] Downloaded rmcp v0.15.0 [INFO] [stderr] Downloaded nix v0.31.1 [INFO] [stderr] Downloaded image v0.25.9 [INFO] [stderr] Downloaded zerocopy v0.8.38 [INFO] [stderr] Downloaded pxfm v0.1.27 [INFO] [stderr] Downloaded tiff v0.10.3 [INFO] [stderr] Downloaded icy_sixel v0.5.0 [INFO] [stderr] Downloaded ratatui-image v10.0.6 [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] f5584e14277e8e3d15bfd0c1189448530d4dafc67d306e718d14b2decc135499 [INFO] running `Command { std: "docker" "start" "-a" "f5584e14277e8e3d15bfd0c1189448530d4dafc67d306e718d14b2decc135499", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f5584e14277e8e3d15bfd0c1189448530d4dafc67d306e718d14b2decc135499", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5584e14277e8e3d15bfd0c1189448530d4dafc67d306e718d14b2decc135499", kill_on_drop: false }` [INFO] [stdout] f5584e14277e8e3d15bfd0c1189448530d4dafc67d306e718d14b2decc135499 [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] f617999d7c452c96ee3d2b855326376d9ed7b3e6f40d89c09a1cfc632c652174 [INFO] running `Command { std: "docker" "start" "-a" "f617999d7c452c96ee3d2b855326376d9ed7b3e6f40d89c09a1cfc632c652174", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling zerocopy v0.8.38 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling num-conv v0.2.0 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking as-slice v0.2.1 [INFO] [stderr] Compiling av-scenechange v0.14.1 [INFO] [stderr] Compiling built v0.8.0 [INFO] [stderr] Checking unicode-truncate v2.0.1 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Compiling pastey v0.1.1 [INFO] [stderr] Checking y4m v0.8.0 [INFO] [stderr] Checking aligned v0.4.3 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking bitstream-io v4.9.0 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Compiling vergen-lib v9.1.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking imgref v1.12.0 [INFO] [stderr] Checking weezl v0.1.12 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking fdeflate v0.3.7 [INFO] [stderr] Checking avif-serialize v0.8.6 [INFO] [stderr] Checking zune-jpeg v0.4.21 [INFO] [stderr] Checking pxfm v0.1.27 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling rav1e v0.8.1 [INFO] [stderr] Compiling vergen v9.1.0 [INFO] [stderr] Checking line-clipping v0.3.5 [INFO] [stderr] Checking byteorder-lite v0.1.0 [INFO] [stderr] Checking lebe v0.5.3 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking rgb v0.8.52 [INFO] [stderr] Checking bit_field v0.10.3 [INFO] [stderr] Compiling palette v0.7.6 [INFO] [stderr] Compiling by_address v1.2.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Checking ipnet v2.12.0 [INFO] [stderr] Checking zune-core v0.5.1 [INFO] [stderr] Checking png v0.18.0 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling nix v0.31.1 [INFO] [stderr] Checking gif v0.14.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking image-webp v0.2.4 [INFO] [stderr] Checking zune-jpeg v0.5.12 [INFO] [stderr] Compiling vergen-gitcl v9.1.0 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Checking fast-srgb8 v1.0.0 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling zmij v1.0.19 [INFO] [stderr] Checking ordered-float v5.1.0 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking vsimd v0.8.0 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking signal-hook v0.3.18 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking outref v0.5.2 [INFO] [stderr] Compiling rmcp v0.15.0 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Compiling ratatui-image v10.0.6 [INFO] [stderr] Checking base64-simd v0.8.0 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking signal-hook-mio v0.2.5 [INFO] [stderr] Checking clap_builder v4.5.60 [INFO] [stderr] Checking dirs-sys v0.5.0 [INFO] [stderr] Compiling include_dir_macros v0.7.4 [INFO] [stderr] Checking directories v6.0.0 [INFO] [stderr] Checking rand_xoshiro v0.7.0 [INFO] [stderr] Checking include_dir v0.7.4 [INFO] [stderr] Checking moxcms v0.7.11 [INFO] [stderr] Checking simplelog v0.12.2 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling zerocopy-derive v0.8.38 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Checking av1-grain v0.2.5 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking kasuari v0.4.11 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Compiling palette_derive v0.7.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking safe_arch v0.9.3 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking ref-cast v1.0.25 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Compiling schemars_derive v1.2.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking crossterm v0.29.0 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking wide v0.8.3 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Compiling instability v0.3.11 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling rmcp-macros v0.15.0 [INFO] [stderr] Checking sse-stream v0.2.1 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Checking ratatui-core v0.1.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking clap v4.5.60 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking process-wrap v9.0.3 [INFO] [stderr] Checking ratatui-widgets v0.3.0 [INFO] [stderr] Checking ratatui-crossterm v0.1.0 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Compiling regenerator2000 v0.8.8 (/opt/rustwide/workdir) [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] warning: regenerator2000@0.8.8: not within a suitable 'git' worktree! [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_BRANCH set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_COMMIT_AUTHOR_EMAIL set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_COMMIT_AUTHOR_NAME set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_COMMIT_COUNT set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_COMMIT_DATE set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_COMMIT_MESSAGE set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_COMMIT_TIMESTAMP set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_DESCRIBE set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_SHA set to default [INFO] [stderr] warning: regenerator2000@0.8.8: VERGEN_GIT_DIRTY set to default [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking ratatui-macros v0.7.0 [INFO] [stderr] Checking ratatui-textarea v0.8.0 [INFO] [stderr] Checking ratatui v0.30.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking schemars v1.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking exr v1.74.0 [INFO] [stderr] Checking tiff v0.10.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking uuid v1.20.0 [INFO] [stderr] Checking ravif v0.12.0 [INFO] [stderr] Checking image v0.25.9 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking quantette v0.5.1 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking icy_sixel v0.5.0 [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/disassembler/formatter_acme.rs:338:21 [INFO] [stdout] | [INFO] [stdout] 338 | / if operands.len() >= 2 { [INFO] [stdout] 339 | | let addr = u16::from(operands[1]) << 8 | u16::from(operands[0]); [INFO] [stdout] 340 | | addr <= 0xFF [INFO] [stdout] 341 | | } else { [INFO] [stdout] 342 | | false [INFO] [stdout] 343 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 337 ~ | AddressingMode::AbsoluteY [INFO] [stdout] 338 ~ if operands.len() >= 2 => { [INFO] [stdout] 339 | let addr = u16::from(operands[1]) << 8 | u16::from(operands[0]); [INFO] [stdout] 340 | addr <= 0xFF [INFO] [stdout] 341 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/disassembler/formatter_ca65.rs:234:21 [INFO] [stdout] | [INFO] [stdout] 234 | / if !p_text.is_empty() { [INFO] [stdout] 235 | | let mut parts = Vec::new(); [INFO] [stdout] 236 | | let mut first = true; [INFO] [stdout] ... | [INFO] [stdout] 251 | | p_text.clear(); [INFO] [stdout] 252 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 233 ~ Some(true) [INFO] [stdout] 234 ~ if !p_text.is_empty() => { [INFO] [stdout] 235 | let mut parts = Vec::new(); [INFO] [stdout] ... [INFO] [stdout] 251 | p_text.clear(); [INFO] [stdout] 252 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/disassembler/formatter_ca65.rs:255:21 [INFO] [stdout] | [INFO] [stdout] 255 | / if !p_bytes.is_empty() { [INFO] [stdout] 256 | | let parts: Vec = [INFO] [stdout] 257 | | p_bytes.iter().map(|b| format!("${b:02x}")).collect(); [INFO] [stdout] 258 | | lines.push((".byte".to_string(), parts.join(", "), true)); [INFO] [stdout] 259 | | p_bytes.clear(); [INFO] [stdout] 260 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 254 ~ Some(false) [INFO] [stdout] 255 ~ if !p_bytes.is_empty() => { [INFO] [stdout] 256 | let parts: Vec = [INFO] [stdout] ... [INFO] [stdout] 259 | p_bytes.clear(); [INFO] [stdout] 260 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/analyzer.rs:1384:22 [INFO] [stdout] | [INFO] [stdout] 1384 | let labels = labels_map [INFO] [stdout] | ______________________^ [INFO] [stdout] 1385 | | .get(&0x00A0) [INFO] [stdout] 1386 | | .expect("Should have a label at $00A0"); [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/analyzer.rs:1387:21 [INFO] [stdout] | [INFO] [stdout] 1387 | let label = labels.first().expect("Label vector should not be empty"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/analyzer.rs:1415:22 [INFO] [stdout] | [INFO] [stdout] 1415 | let labels = labels_map [INFO] [stdout] | ______________________^ [INFO] [stdout] 1416 | | .get(&0x00A0) [INFO] [stdout] 1417 | | .expect("Should have a label at $00A0"); [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/analyzer.rs:1418:21 [INFO] [stdout] | [INFO] [stdout] 1418 | let label = labels.first().expect("Label vector should not be empty"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/analyzer.rs:1474:25 [INFO] [stdout] | [INFO] [stdout] 1474 | let label_vec = labels_map [INFO] [stdout] | _________________________^ [INFO] [stdout] 1475 | | .get(&0x00FB) [INFO] [stdout] 1476 | | .expect("Should have labels at $00FB"); [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/analyzer.rs:1526:25 [INFO] [stdout] | [INFO] [stdout] 1526 | let label_vec = labels_map [INFO] [stdout] | _________________________^ [INFO] [stdout] 1527 | | .get(&0x00A0) [INFO] [stdout] 1528 | | .expect("Should have labels at $00A0"); [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/assets.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | assert!(kernal.unwrap().default, "KERNAL should default to true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> src/parser/crt.rs:230:29 [INFO] [stdout] | [INFO] [stdout] 230 | let (origin, mem) = parse_crt(&data).expect("Should parse valid CRT"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> src/parser/crt.rs:275:29 [INFO] [stdout] | [INFO] [stdout] 275 | let (origin, mem) = parse_crt(&data).expect("Should parse valid CRT"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:354:20 [INFO] [stdout] | [INFO] [stdout] 354 | assert_eq!(calculate_offset(1, 0, DiskType::D64).unwrap(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:357:20 [INFO] [stdout] | [INFO] [stdout] 357 | assert_eq!(calculate_offset(1, 1, DiskType::D64).unwrap(), 256); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:360:20 [INFO] [stdout] | [INFO] [stdout] 360 | assert_eq!(calculate_offset(2, 0, DiskType::D64).unwrap(), 21 * 256); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:364:20 [INFO] [stdout] | [INFO] [stdout] 364 | assert_eq!(calculate_offset(18, 0, DiskType::D64).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:368:20 [INFO] [stdout] | [INFO] [stdout] 368 | assert_eq!(calculate_offset(25, 0, DiskType::D64).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:376:20 [INFO] [stdout] | [INFO] [stdout] 376 | assert_eq!(calculate_offset(36, 0, DiskType::D64).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:389:20 [INFO] [stdout] | [INFO] [stdout] 389 | assert_eq!(FileType::from_byte(0x82).unwrap(), FileType::PRG); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:390:20 [INFO] [stdout] | [INFO] [stdout] 390 | assert_eq!(FileType::from_byte(0x80).unwrap(), FileType::DEL); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:391:20 [INFO] [stdout] | [INFO] [stdout] 391 | assert_eq!(FileType::from_byte(0x81).unwrap(), FileType::SEQ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:392:20 [INFO] [stdout] | [INFO] [stdout] 392 | assert_eq!(FileType::from_byte(0x83).unwrap(), FileType::USR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:393:20 [INFO] [stdout] | [INFO] [stdout] 393 | assert_eq!(FileType::from_byte(0x84).unwrap(), FileType::REL); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:418:26 [INFO] [stdout] | [INFO] [stdout] 418 | let dir_offset = calculate_offset(18, 1, DiskType::D64).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:435:27 [INFO] [stdout] | [INFO] [stdout] 435 | let file_offset = calculate_offset(1, 0, DiskType::D64).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:445:21 [INFO] [stdout] | [INFO] [stdout] 445 | let files = parse_d64_directory(&data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:453:43 [INFO] [stdout] | [INFO] [stdout] 453 | let (load_addr, extracted_data) = extract_file(&data, &files[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:464:20 [INFO] [stdout] | [INFO] [stdout] 464 | assert_eq!(calculate_offset(36, 0, DiskType::D71).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:468:20 [INFO] [stdout] | [INFO] [stdout] 468 | assert_eq!(calculate_offset(36, 1, DiskType::D71).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:474:26 [INFO] [stdout] | [INFO] [stdout] 474 | let t18_offset = calculate_offset(18, 0, DiskType::D64).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:476:20 [INFO] [stdout] | [INFO] [stdout] 476 | assert_eq!(calculate_offset(53, 0, DiskType::D71).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:480:26 [INFO] [stdout] | [INFO] [stdout] 480 | let t35_offset = calculate_offset(35, 0, DiskType::D64).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:482:20 [INFO] [stdout] | [INFO] [stdout] 482 | assert_eq!(calculate_offset(70, 0, DiskType::D71).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:490:26 [INFO] [stdout] | [INFO] [stdout] 490 | let dir_offset = calculate_offset(18, 1, DiskType::D71).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:507:27 [INFO] [stdout] | [INFO] [stdout] 507 | let file_offset = calculate_offset(36, 0, DiskType::D71).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:518:21 [INFO] [stdout] | [INFO] [stdout] 518 | let files = parse_d64_directory(&data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:524:43 [INFO] [stdout] | [INFO] [stdout] 524 | let (load_addr, extracted_data) = extract_file(&data, &files[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:555:20 [INFO] [stdout] | [INFO] [stdout] 555 | assert_eq!(calculate_offset(1, 0, DiskType::D81).unwrap(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:558:20 [INFO] [stdout] | [INFO] [stdout] 558 | assert_eq!(calculate_offset(1, 1, DiskType::D81).unwrap(), 256); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:561:20 [INFO] [stdout] | [INFO] [stdout] 561 | assert_eq!(calculate_offset(2, 0, DiskType::D81).unwrap(), 40 * 256); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:565:13 [INFO] [stdout] | [INFO] [stdout] 565 | calculate_offset(40, 0, DiskType::D81).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:571:20 [INFO] [stdout] | [INFO] [stdout] 571 | assert_eq!(calculate_offset(80, 39, DiskType::D81).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:579:26 [INFO] [stdout] | [INFO] [stdout] 579 | let dir_offset = calculate_offset(40, 3, DiskType::D81).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:596:27 [INFO] [stdout] | [INFO] [stdout] 596 | let file_offset = calculate_offset(1, 0, DiskType::D81).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:604:21 [INFO] [stdout] | [INFO] [stdout] 604 | let files = parse_d64_directory(&data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/d64.rs:610:38 [INFO] [stdout] | [INFO] [stdout] 610 | let (load_addr, extracted) = extract_file(&data, &files[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> src/parser/t64.rs:176:43 [INFO] [stdout] | [INFO] [stdout] 176 | let (load_addr, extracted_data) = parse_t64(&data).expect("Should parse successfully"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/vice_lbl.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | let labels = parse_vice_labels(content).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/vice_vsf.rs:205:19 [INFO] [stdout] | [INFO] [stdout] 205 | let vsf = result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/vice_vsf.rs:214:24 [INFO] [stdout] | [INFO] [stdout] 214 | let data = std::fs::read(path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/parser/vice_vsf.rs:217:23 [INFO] [stdout] | [INFO] [stdout] 217 | let vsf = res.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:509:20 [INFO] [stdout] | [INFO] [stdout] 509 | assert_eq!(app_state.cross_refs.get(&0x1005).unwrap().len(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:511:13 [INFO] [stdout] | [INFO] [stdout] 511 | app_state.labels.get(&0x1005).unwrap().first().unwrap().kind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:511:13 [INFO] [stdout] | [INFO] [stdout] 511 | app_state.labels.get(&0x1005).unwrap().first().unwrap().kind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:550:20 [INFO] [stdout] | [INFO] [stdout] 550 | assert_eq!(app_state.cross_refs.get(&0x1005).unwrap().len(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:632:27 [INFO] [stdout] | [INFO] [stdout] 632 | let labels_1000 = app_state.labels.get(&0x1000).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:638:27 [INFO] [stdout] | [INFO] [stdout] 638 | let labels_2000 = app_state.labels.get(&0x2000).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:649:27 [INFO] [stdout] | [INFO] [stdout] 649 | let labels_1000 = app_state.labels.get(&0x1000).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:668:27 [INFO] [stdout] | [INFO] [stdout] 668 | let labels_1000 = app_state.labels.get(&0x1000).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/commands.rs:671:27 [INFO] [stdout] | [INFO] [stdout] 671 | let labels_2000 = app_state.labels.get(&0x2000).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/disassembler/formatter_acme.rs:338:21 [INFO] [stdout] | [INFO] [stdout] 338 | / if operands.len() >= 2 { [INFO] [stdout] 339 | | let addr = u16::from(operands[1]) << 8 | u16::from(operands[0]); [INFO] [stdout] 340 | | addr <= 0xFF [INFO] [stdout] 341 | | } else { [INFO] [stdout] 342 | | false [INFO] [stdout] 343 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 337 ~ | AddressingMode::AbsoluteY [INFO] [stdout] 338 ~ if operands.len() >= 2 => { [INFO] [stdout] 339 | let addr = u16::from(operands[1]) << 8 | u16::from(operands[0]); [INFO] [stdout] 340 | addr <= 0xFF [INFO] [stdout] 341 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/disassembler/formatter_ca65.rs:234:21 [INFO] [stdout] | [INFO] [stdout] 234 | / if !p_text.is_empty() { [INFO] [stdout] 235 | | let mut parts = Vec::new(); [INFO] [stdout] 236 | | let mut first = true; [INFO] [stdout] ... | [INFO] [stdout] 251 | | p_text.clear(); [INFO] [stdout] 252 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 233 ~ Some(true) [INFO] [stdout] 234 ~ if !p_text.is_empty() => { [INFO] [stdout] 235 | let mut parts = Vec::new(); [INFO] [stdout] ... [INFO] [stdout] 251 | p_text.clear(); [INFO] [stdout] 252 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/disassembler/formatter_ca65.rs:255:21 [INFO] [stdout] | [INFO] [stdout] 255 | / if !p_bytes.is_empty() { [INFO] [stdout] 256 | | let parts: Vec = [INFO] [stdout] 257 | | p_bytes.iter().map(|b| format!("${b:02x}")).collect(); [INFO] [stdout] 258 | | lines.push((".byte".to_string(), parts.join(", "), true)); [INFO] [stdout] 259 | | p_bytes.clear(); [INFO] [stdout] 260 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 254 ~ Some(false) [INFO] [stdout] 255 ~ if !p_bytes.is_empty() => { [INFO] [stdout] 256 | let parts: Vec = [INFO] [stdout] ... [INFO] [stdout] 259 | p_bytes.clear(); [INFO] [stdout] 260 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/ui/dialog_document_settings.rs:669:17 [INFO] [stdout] | [INFO] [stdout] 669 | / if !self.is_editing_xref_count [INFO] [stdout] 670 | | && !self.is_editing_arrow_columns [INFO] [stdout] 671 | | && !self.is_editing_text_char_limit [INFO] [stdout] 672 | | && !self.is_editing_addresses_per_line [INFO] [stdout] ... | [INFO] [stdout] 731 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 668 ~ KeyCode::Left [INFO] [stdout] 669 | if !self.is_editing_xref_count [INFO] [stdout] ... [INFO] [stdout] 674 | && !self.is_editing_description [INFO] [stdout] 675 ~ => { [INFO] [stdout] 676 | if self.selected_index == idx_xref { [INFO] [stdout] ... [INFO] [stdout] 730 | } [INFO] [stdout] 731 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/ui/dialog_document_settings.rs:734:17 [INFO] [stdout] | [INFO] [stdout] 734 | / if !self.is_editing_xref_count [INFO] [stdout] 735 | | && !self.is_editing_arrow_columns [INFO] [stdout] 736 | | && !self.is_editing_text_char_limit [INFO] [stdout] 737 | | && !self.is_editing_addresses_per_line [INFO] [stdout] ... | [INFO] [stdout] 788 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 733 ~ KeyCode::Right [INFO] [stdout] 734 | if !self.is_editing_xref_count [INFO] [stdout] ... [INFO] [stdout] 739 | && !self.is_editing_description [INFO] [stdout] 740 ~ => { [INFO] [stdout] 741 | if self.selected_index == idx_xref { [INFO] [stdout] ... [INFO] [stdout] 787 | } [INFO] [stdout] 788 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/ui/dialog_document_settings.rs:891:29 [INFO] [stdout] | [INFO] [stdout] 891 | / ... if !app_state.settings.brk_single_byte { [INFO] [stdout] 892 | | ... let is_enforced = app_state.settings.assembler [INFO] [stdout] 893 | | ... == crate::state::Assembler::Kick [INFO] [stdout] 894 | | ... || app_state.settings.assembler [INFO] [stdout] ... | [INFO] [stdout] 899 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 890 ~ 3 [INFO] [stdout] 891 ~ if !app_state.settings.brk_single_byte => { [INFO] [stdout] 892 | let is_enforced = app_state.settings.assembler [INFO] [stdout] ... [INFO] [stdout] 898 | } [INFO] [stdout] 899 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/ui/dialog_go_to_symbol.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | symbols.sort_by(|a, b| a.1.to_lowercase().cmp(&b.1.to_lowercase())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `#[warn(clippy::unnecessary_sort_by)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 36 - symbols.sort_by(|a, b| a.1.to_lowercase().cmp(&b.1.to_lowercase())); [INFO] [stdout] 36 + symbols.sort_by_key(|a| a.1.to_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:710:23 [INFO] [stdout] | [INFO] [stdout] 710 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:723:27 [INFO] [stdout] | [INFO] [stdout] 723 | let bin_content = std::fs::read(&bin_path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:733:23 [INFO] [stdout] | [INFO] [stdout] 733 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `panic` should not be present in production code [INFO] [stdout] --> src/exporter.rs:830:17 [INFO] [stdout] | [INFO] [stdout] 830 | panic!("Failed to execute 64tass: {e}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic [INFO] [stdout] = note: requested on the command line with `-W clippy::panic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:897:23 [INFO] [stdout] | [INFO] [stdout] 897 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:945:23 [INFO] [stdout] | [INFO] [stdout] 945 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/exporter.rs:961:20 [INFO] [stdout] | [INFO] [stdout] 961 | let line = content.lines().find(|l| l.contains("MyLabel")).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1026:23 [INFO] [stdout] | [INFO] [stdout] 1026 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1066:23 [INFO] [stdout] | [INFO] [stdout] 1066 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1110:28 [INFO] [stdout] | [INFO] [stdout] 1110 | let content_acme = std::fs::read_to_string(&path_acme).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1127:28 [INFO] [stdout] | [INFO] [stdout] 1127 | let content_kick = std::fs::read_to_string(&path_kick).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1141:28 [INFO] [stdout] | [INFO] [stdout] 1141 | let content_tass = std::fs::read_to_string(&path_tass).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1269:23 [INFO] [stdout] | [INFO] [stdout] 1269 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1390:23 [INFO] [stdout] | [INFO] [stdout] 1390 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1461:23 [INFO] [stdout] | [INFO] [stdout] 1461 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1508:23 [INFO] [stdout] | [INFO] [stdout] 1508 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1558:23 [INFO] [stdout] | [INFO] [stdout] 1558 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/exporter.rs:1567:27 [INFO] [stdout] | [INFO] [stdout] 1567 | let comment_idx = content.find("; Function Start").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/exporter.rs:1568:25 [INFO] [stdout] | [INFO] [stdout] 1568 | let label_idx = content.find("MyLabel").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1601:23 [INFO] [stdout] | [INFO] [stdout] 1601 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1668:23 [INFO] [stdout] | [INFO] [stdout] 1668 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1706:23 [INFO] [stdout] | [INFO] [stdout] 1706 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1749:23 [INFO] [stdout] | [INFO] [stdout] 1749 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/exporter.rs:1814:23 [INFO] [stdout] | [INFO] [stdout] 1814 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1172:24 [INFO] [stdout] | [INFO] [stdout] 1172 | let mut file = std::fs::File::create(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1173:9 [INFO] [stdout] | [INFO] [stdout] 1173 | file.write_all(&[0xEA, 0xEA, 0xEA]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1176:9 [INFO] [stdout] | [INFO] [stdout] 1176 | app_state.load_file(path.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1257:9 [INFO] [stdout] | [INFO] [stdout] 1257 | / app_state [INFO] [stdout] 1258 | | .save_project( [INFO] [stdout] 1259 | | ProjectSaveContext { [INFO] [stdout] 1260 | | cursor_address: None, [INFO] [stdout] ... | [INFO] [stdout] 1276 | | .expect("Save failed"); [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1279:20 [INFO] [stdout] | [INFO] [stdout] 1279 | let data = std::fs::read_to_string(&path).expect("Read failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1280:37 [INFO] [stdout] | [INFO] [stdout] 1280 | let project: ProjectState = serde_json::from_str(&data).expect("Deserialize failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1289:26 [INFO] [stdout] | [INFO] [stdout] 1289 | let user_label = project [INFO] [stdout] | __________________________^ [INFO] [stdout] 1290 | | .labels [INFO] [stdout] 1291 | | .get(&0x1000) [INFO] [stdout] 1292 | | .expect("User label should be saved"); [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1293:20 [INFO] [stdout] | [INFO] [stdout] 1293 | assert_eq!(user_label.first().unwrap().name, "UserLabel"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1294:20 [INFO] [stdout] | [INFO] [stdout] 1294 | assert_eq!(user_label.first().unwrap().kind, LabelKind::User); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1297:13 [INFO] [stdout] | [INFO] [stdout] 1297 | user_label.first().unwrap().label_type, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1419:22 [INFO] [stdout] | [INFO] [stdout] 1419 | let labels = app_state.labels.get(&0x1005).expect("Should have labels"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1445:22 [INFO] [stdout] | [INFO] [stdout] 1445 | let labels = app_state.labels.get(&0xD020).expect("Should have labels"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1502:20 [INFO] [stdout] | [INFO] [stdout] 1502 | assert_eq!(l1.unwrap()[0].name, "a0000"); // Analyzer generates 'a' for AbsoluteAddress usage [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1508:20 [INFO] [stdout] | [INFO] [stdout] 1508 | assert_eq!(l2.unwrap()[0].name, "a2001"); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1546:21 [INFO] [stdout] | [INFO] [stdout] 1546 | let range = state.get_block_range(0x1005).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1553:22 [INFO] [stdout] | [INFO] [stdout] 1553 | let range1 = state.get_block_range(0x1004).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1557:22 [INFO] [stdout] | [INFO] [stdout] 1557 | let range2 = state.get_block_range(0x1005).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1564:22 [INFO] [stdout] | [INFO] [stdout] 1564 | let range3 = state.get_block_range(0x1006).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1608:23 [INFO] [stdout] | [INFO] [stdout] 1608 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1629:9 [INFO] [stdout] | [INFO] [stdout] 1629 | std::fs::create_dir_all(&dir).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1635:24 [INFO] [stdout] | [INFO] [stdout] 1635 | let mut file = File::create(&project_path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1636:28 [INFO] [stdout] | [INFO] [stdout] 1636 | let valid_base64 = crate::state::project::encode_raw_data_to_base64(&[]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1638:9 [INFO] [stdout] | [INFO] [stdout] 1638 | / write!( [INFO] [stdout] 1639 | | file, [INFO] [stdout] 1640 | | r#"{{ [INFO] [stdout] 1641 | | "origin": 2048, [INFO] [stdout] ... | [INFO] [stdout] 1668 | | .unwrap(); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> src/state/app_state.rs:1682:27 [INFO] [stdout] | [INFO] [stdout] 1682 | let stored_path = app_state [INFO] [stdout] | ___________________________^ [INFO] [stdout] 1683 | | .system_config [INFO] [stdout] 1684 | | .last_project_path [INFO] [stdout] 1685 | | .as_ref() [INFO] [stdout] 1686 | | .expect("last_project_path should be set"); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/app_state.rs:1694:34 [INFO] [stdout] | [INFO] [stdout] 1694 | let canonical_expected = std::fs::canonicalize(&project_path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/project.rs:260:23 [INFO] [stdout] | [INFO] [stdout] 260 | let encoded = encode_raw_data_to_base64(&data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/state/project.rs:264:23 [INFO] [stdout] | [INFO] [stdout] 264 | let decoded = decode_raw_data_from_base64(&encoded).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/ui/dialog_document_settings.rs:669:17 [INFO] [stdout] | [INFO] [stdout] 669 | / if !self.is_editing_xref_count [INFO] [stdout] 670 | | && !self.is_editing_arrow_columns [INFO] [stdout] 671 | | && !self.is_editing_text_char_limit [INFO] [stdout] 672 | | && !self.is_editing_addresses_per_line [INFO] [stdout] ... | [INFO] [stdout] 731 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 668 ~ KeyCode::Left [INFO] [stdout] 669 | if !self.is_editing_xref_count [INFO] [stdout] ... [INFO] [stdout] 674 | && !self.is_editing_description [INFO] [stdout] 675 ~ => { [INFO] [stdout] 676 | if self.selected_index == idx_xref { [INFO] [stdout] ... [INFO] [stdout] 730 | } [INFO] [stdout] 731 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/ui/dialog_document_settings.rs:734:17 [INFO] [stdout] | [INFO] [stdout] 734 | / if !self.is_editing_xref_count [INFO] [stdout] 735 | | && !self.is_editing_arrow_columns [INFO] [stdout] 736 | | && !self.is_editing_text_char_limit [INFO] [stdout] 737 | | && !self.is_editing_addresses_per_line [INFO] [stdout] ... | [INFO] [stdout] 788 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 733 ~ KeyCode::Right [INFO] [stdout] 734 | if !self.is_editing_xref_count [INFO] [stdout] ... [INFO] [stdout] 739 | && !self.is_editing_description [INFO] [stdout] 740 ~ => { [INFO] [stdout] 741 | if self.selected_index == idx_xref { [INFO] [stdout] ... [INFO] [stdout] 787 | } [INFO] [stdout] 788 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/ui/dialog_document_settings.rs:891:29 [INFO] [stdout] | [INFO] [stdout] 891 | / ... if !app_state.settings.brk_single_byte { [INFO] [stdout] 892 | | ... let is_enforced = app_state.settings.assembler [INFO] [stdout] 893 | | ... == crate::state::Assembler::Kick [INFO] [stdout] 894 | | ... || app_state.settings.assembler [INFO] [stdout] ... | [INFO] [stdout] 899 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 890 ~ 3 [INFO] [stdout] 891 ~ if !app_state.settings.brk_single_byte => { [INFO] [stdout] 892 | let is_enforced = app_state.settings.assembler [INFO] [stdout] ... [INFO] [stdout] 898 | } [INFO] [stdout] 899 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/ui/dialog_go_to_symbol.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | symbols.sort_by(|a, b| a.1.to_lowercase().cmp(&b.1.to_lowercase())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `#[warn(clippy::unnecessary_sort_by)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 36 - symbols.sort_by(|a, b| a.1.to_lowercase().cmp(&b.1.to_lowercase())); [INFO] [stdout] 36 + symbols.sort_by_key(|a| a.1.to_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/ui/menu.rs:2716:9 [INFO] [stdout] | [INFO] [stdout] 2716 | app_state.origin = 0xC000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `state::app_state::AppState { origin: 0xC000, raw_data: vec![0xA9, 0x00, 0xEA], block_types: vec![crate::state::BlockType::DataByte; 3], ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/ui/menu.rs:2715:9 [INFO] [stdout] | [INFO] [stdout] 2715 | let mut app_state = AppState::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `#[warn(clippy::field_reassign_with_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/ui/view_disassembly.rs:1809:58 [INFO] [stdout] | [INFO] [stdout] 1809 | for (c, expected_action) in keys.into_iter().zip(actions.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:629:11 [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] 1809 - for (c, expected_action) in keys.into_iter().zip(actions.into_iter()) { [INFO] [stdout] 1809 + for (c, expected_action) in keys.into_iter().zip(actions) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 278 | let (decoded, size) = ViceMessage::decode(&buf).unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/vice/protocol.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 278 | let (decoded, size) = ViceMessage::decode(&buf).unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> src/vice/protocol.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | assert!(ViceMessage::decode(&[0x02, 0x02]).unwrap().is_none()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:363:20 [INFO] [stdout] | [INFO] [stdout] 363 | let regs = parse_registers(&payload).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:386:20 [INFO] [stdout] | [INFO] [stdout] 386 | let regs = parse_registers(&payload).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:411:20 [INFO] [stdout] | [INFO] [stdout] 411 | let regs = parse_registers(&payload).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:425:20 [INFO] [stdout] | [INFO] [stdout] 425 | let regs = parse_registers(&payload).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:455:20 [INFO] [stdout] | [INFO] [stdout] 455 | let info = parse_checkpoint_info(&p).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:476:20 [INFO] [stdout] | [INFO] [stdout] 476 | let info = parse_checkpoint_info(&p).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:492:20 [INFO] [stdout] | [INFO] [stdout] 492 | let info = parse_checkpoint_info(&p).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/version_migration_test.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | let raw_data_b64 = regenerator2000::state::encode_raw_data_to_base64(&[0xEA]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> src/vice/protocol.rs:518:20 [INFO] [stdout] | [INFO] [stdout] 518 | let resp = parse_memory_get(&payload).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/version_migration_test.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | std::fs::write(&path, json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/version_migration_test.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | std::fs::write(&path, json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `panic` should not be present in production code [INFO] [stdout] --> tests/version_migration_test.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | Ok(_) => panic!("Expected error for future version"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic [INFO] [stdout] = note: requested on the command line with `-W clippy::panic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/version_migration_test.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | / app_state [INFO] [stdout] 79 | | .save_project( [INFO] [stdout] 80 | | ProjectSaveContext { [INFO] [stdout] 81 | | cursor_address: None, [INFO] [stdout] ... | [INFO] [stdout] 97 | | .expect("Save failed"); [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/version_migration_test.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | let content = std::fs::read_to_string(&temp_path).expect("Read failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/version_migration_test.rs:100:41 [INFO] [stdout] | [INFO] [stdout] 100 | let parsed: serde_json::Value = serde_json::from_str(&content).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/bookmarks_test.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(app_state.bookmarks.get(&addr).unwrap(), "TestBookmark"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/bookmarks_test.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | assert_eq!(app_state.bookmarks.get(&addr).unwrap(), "TestBookmark"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/bookmarks_test.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | app_state.save_project(context, false).expect("Save failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_resource_test.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | app_state.load_binary(origin, data.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_resource_test.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | let result = response.result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/mcp_resource_test.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | let contents = result [INFO] [stdout] | ________________________^ [INFO] [stdout] 38 | | .get("contents") [INFO] [stdout] 39 | | .expect("Should have contents") [INFO] [stdout] 40 | | .as_array() [INFO] [stdout] 41 | | .expect("Contents should be an array"); [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/mcp_resource_test.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | let contents = result [INFO] [stdout] | ________________________^ [INFO] [stdout] 38 | | .get("contents") [INFO] [stdout] 39 | | .expect("Should have contents") [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_resource_test.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | assert_eq!(content.get("uri").unwrap(), "binary://main"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_resource_test.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | assert_eq!(content.get("mimeType").unwrap(), "application/octet-stream"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/mcp_resource_test.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | let blob_b64 = content [INFO] [stdout] | ________________________^ [INFO] [stdout] 49 | | .get("blob") [INFO] [stdout] 50 | | .expect("Should have blob") [INFO] [stdout] 51 | | .as_str() [INFO] [stdout] 52 | | .expect("Blob should be a string"); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/mcp_resource_test.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | let blob_b64 = content [INFO] [stdout] | ________________________^ [INFO] [stdout] 49 | | .get("blob") [INFO] [stdout] 50 | | .expect("Should have blob") [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/mcp_resource_test.rs:55:23 [INFO] [stdout] | [INFO] [stdout] 55 | let decoded = BASE64_STANDARD [INFO] [stdout] | _______________________^ [INFO] [stdout] 56 | | .decode(blob_b64) [INFO] [stdout] 57 | | .expect("Should decode base64"); [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/bookmarks_test.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 76 | let _data = loaded_state [INFO] [stdout] | _____________________^ [INFO] [stdout] 77 | | .load_project(path.clone()) [INFO] [stdout] 78 | | .expect("Load failed"); [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/bookmarks_test.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | assert_eq!(loaded_state.bookmarks.get(&0x1002).unwrap(), "MyBookmark"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | opcode: opcodes[0xA9].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | opcode: opcodes[0x8D].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | opcode: opcodes[0xEA].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `panic` should not be present in production code [INFO] [stdout] --> tests/cpu_tests.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | panic!("Official opcode ${opcode:02X} ({expected_mnemonic}) is not defined") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic [INFO] [stdout] = note: requested on the command line with `-W clippy::panic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | opcode: opcodes[0x0A].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | opcode: opcodes[0x9D].as_ref().unwrap(), // STA abs,X [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | opcode: opcodes[0xA1].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:218:17 [INFO] [stdout] | [INFO] [stdout] 218 | opcode: opcodes[0xB1].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_acme_tests.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | opcode: opcodes[0xD0].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:390:21 [INFO] [stdout] | [INFO] [stdout] 390 | let lda_modes = mnemonic_modes.get("LDA").expect("LDA not found"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | let jmp_modes = mnemonic_modes.get("JMP").expect("JMP not found"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:406:21 [INFO] [stdout] | [INFO] [stdout] 406 | let jsr_modes = mnemonic_modes.get("JSR").expect("JSR not found"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `panic` should not be present in production code [INFO] [stdout] --> tests/cpu_tests.rs:495:13 [INFO] [stdout] | [INFO] [stdout] 495 | panic!("Illegal opcode ${opcode:02X} ({expected_mnemonic}) should be defined") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:560:19 [INFO] [stdout] | [INFO] [stdout] 560 | let jmp_abs = opcodes[0x4C].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:572:19 [INFO] [stdout] | [INFO] [stdout] 572 | let jmp_ind = opcodes[0x6C].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:584:15 [INFO] [stdout] | [INFO] [stdout] 584 | let jsr = opcodes[0x20].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:598:22 [INFO] [stdout] | [INFO] [stdout] 598 | let branch = opcodes[opcode].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:613:15 [INFO] [stdout] | [INFO] [stdout] 613 | let rts = opcodes[0x60].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:619:15 [INFO] [stdout] | [INFO] [stdout] 619 | let rti = opcodes[0x40].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:631:15 [INFO] [stdout] | [INFO] [stdout] 631 | let brk = opcodes[0x00].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:652:18 [INFO] [stdout] | [INFO] [stdout] 652 | let op = opcodes[opcode].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:711:18 [INFO] [stdout] | [INFO] [stdout] 711 | let op = opcodes[opcode as usize].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:801:15 [INFO] [stdout] | [INFO] [stdout] 801 | let brk = opcodes[0x00] [INFO] [stdout] | _______________^ [INFO] [stdout] 802 | | .as_ref() [INFO] [stdout] 803 | | .expect("BRK should be defined at $00"); [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:810:15 [INFO] [stdout] | [INFO] [stdout] 810 | let nop = opcodes[0xEA] [INFO] [stdout] | _______________^ [INFO] [stdout] 811 | | .as_ref() [INFO] [stdout] 812 | | .expect("NOP should be defined at $EA"); [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/cpu_tests.rs:862:28 [INFO] [stdout] | [INFO] [stdout] 862 | let prev = opcodes[prev_opcode as usize].as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `panic` should not be present in production code [INFO] [stdout] --> tests/cpu_tests.rs:867:17 [INFO] [stdout] | [INFO] [stdout] 867 | / panic!( [INFO] [stdout] 868 | | "Duplicate mnemonic/mode combination: {} {:?} at ${:02X} and ${:02X}", [INFO] [stdout] 869 | | opcode.mnemonic, opcode.mode, prev_opcode, i [INFO] [stdout] 870 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/serialization_stability_test.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | / app_state [INFO] [stdout] 64 | | .save_project( [INFO] [stdout] 65 | | ProjectSaveContext { [INFO] [stdout] 66 | | cursor_address: None, [INFO] [stdout] ... | [INFO] [stdout] 82 | | .expect("First save failed"); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/serialization_stability_test.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | std::fs::read_to_string(&temp_path).expect("Read first save failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/serialization_stability_test.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | / app_state_2 [INFO] [stdout] 89 | | .load_project(temp_path.clone()) [INFO] [stdout] 90 | | .expect("Load failed"); [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/serialization_stability_test.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | / app_state_2 [INFO] [stdout] 94 | | .save_project( [INFO] [stdout] 95 | | ProjectSaveContext { [INFO] [stdout] 96 | | cursor_address: None, [INFO] [stdout] ... | [INFO] [stdout] 112 | | .expect("Second save failed"); [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/serialization_stability_test.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | std::fs::read_to_string(&temp_path).expect("Read second save failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/serialization_stability_test.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let a_pos = first_save_content.find("A_Label").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/serialization_stability_test.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let z_pos = first_save_content.find("Z_Label").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty lines after doc comment [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / /// when given truncated, corrupted, or completely invalid data. [INFO] [stdout] ... | [INFO] [stdout] 9 | | [INFO] [stdout] | |_^ [INFO] [stdout] 10 | mod d64_malformed { [INFO] [stdout] | ----------------- the comment documents this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty lines are unintentional, remove them [INFO] [stdout] help: if the doc comment should not document module `d64_malformed` then comment it out [INFO] [stdout] | [INFO] [stdout] 1 ~ // /// Malformed-input tests for parsers: D64, CRT, T64, VSF [INFO] [stdout] 2 ~ // /// [INFO] [stdout] 3 ~ // /// These tests ensure that the parsers return clear errors (never panic) [INFO] [stdout] 4 ~ // /// when given truncated, corrupted, or completely invalid data. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_batch_test.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | app_state.load_binary(origin, data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `get(&0x1000).is_none()` [INFO] [stdout] --> tests/mcp_batch_test.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 19 | assert!(app_state.labels.get(&0x1000).is_none()); [INFO] [stdout] | -----------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace it with: `!app_state.labels.contains_key(&0x1000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check [INFO] [stdout] = note: `#[warn(clippy::unnecessary_get_then_check)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `get(&0x1000).is_none()` [INFO] [stdout] --> tests/mcp_batch_test.rs:20:46 [INFO] [stdout] | [INFO] [stdout] 20 | assert!(app_state.user_side_comments.get(&0x1000).is_none()); [INFO] [stdout] | -----------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace it with: `!app_state.user_side_comments.contains_key(&0x1000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_batch_test.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 60 | let result = response.result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_batch_test.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | let content = result.get("content").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_batch_test.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | let content = result.get("content").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_batch_test.rs:62:27 [INFO] [stdout] | [INFO] [stdout] 62 | let text_result = content[0].get("text").unwrap().as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_batch_test.rs:62:27 [INFO] [stdout] | [INFO] [stdout] 62 | let text_result = content[0].get("text").unwrap().as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_batch_test.rs:67:48 [INFO] [stdout] | [INFO] [stdout] 67 | let batch_results: serde_json::Value = serde_json::from_str(text_result).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_batch_test.rs:68:27 [INFO] [stdout] | [INFO] [stdout] 68 | let batch_array = batch_results.as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_batch_test.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | let labels = app_state.labels.get(&0x1000).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_batch_test.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 89 | let comment = app_state.user_side_comments.get(&0x1000).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `panic` should not be present in production code [INFO] [stdout] --> tests/mcp_address_details_test.rs:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | .unwrap_or_else(|| panic!("Tool {} failed: {:?}", name, response.error)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic [INFO] [stdout] = note: requested on the command line with `-W clippy::panic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | let content = result["content"].as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | let text = content[0]["text"].as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> tests/config_serialization_tests.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | config.theme = "Nord".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `regenerator2000::config::SystemConfig { theme: "Nord".to_string(), open_last_project: false, last_project_path: Some(PathBuf::from("/tmp/test.regen2000proj")), sync_charset_view: true, entropy_threshold: 6.0, recent_projects: vec![ [INFO] [stdout] PathBuf::from("/tmp/a.regen2000proj"), [INFO] [stdout] PathBuf::from("/tmp/b.regen2000proj"), [INFO] [stdout] ], check_for_updates: false, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> tests/config_serialization_tests.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | let mut config = SystemConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `#[warn(clippy::field_reassign_with_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | let json = serde_json::to_string_pretty(&config).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | let deserialized: SystemConfig = serde_json::from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | let config: SystemConfig = serde_json::from_str(json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | let config: SystemConfig = serde_json::from_str(json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> tests/config_serialization_tests.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | config.config_path_override = Some(PathBuf::from("/tmp/override.json")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `regenerator2000::config::SystemConfig { config_path_override: Some(PathBuf::from("/tmp/override.json")), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> tests/config_serialization_tests.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | let mut config = SystemConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | let json = serde_json::to_string(&config).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:99:38 [INFO] [stdout] | [INFO] [stdout] 99 | let deserialized: SystemConfig = serde_json::from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> tests/config_serialization_tests.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | config.config_path_override = Some(config_path.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `regenerator2000::config::SystemConfig { config_path_override: Some(config_path.clone()), theme: "Monokai".to_string(), open_last_project: false, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> tests/config_serialization_tests.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | let mut config = SystemConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | let data = std::fs::read_to_string(&config_path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:119:32 [INFO] [stdout] | [INFO] [stdout] 119 | let loaded: SystemConfig = serde_json::from_str(&data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | serde_json::from_str(text).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | app_state.load_binary(origin, data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | serde_json::to_string_pretty(&details).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> tests/config_serialization_tests.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | config.entropy_threshold = 5.25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `regenerator2000::config::SystemConfig { entropy_threshold: 5.25, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> tests/config_serialization_tests.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | let mut config = SystemConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 192 | let json = serde_json::to_string(&config).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/config_serialization_tests.rs:193:32 [INFO] [stdout] | [INFO] [stdout] 193 | let loaded: SystemConfig = serde_json::from_str(&json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | serde_json::to_string_pretty(&details).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | serde_json::to_string_pretty(&details).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | let labels = details["metadata"]["labels"].as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | let comments = details["metadata"]["comments"].as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:116:26 [INFO] [stdout] | [INFO] [stdout] 116 | .any(|v| v.as_str().unwrap().contains("Start of loop")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/mcp_address_details_test.rs:141:24 [INFO] [stdout] | [INFO] [stdout] 141 | let refs = details_after["metadata"]["cross_refs_in"] [INFO] [stdout] | ________________________^ [INFO] [stdout] 142 | | .as_array() [INFO] [stdout] 143 | | .expect("Cross refs should exist after analysis"); [INFO] [stdout] | |_________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | res.unwrap_err() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let msg = res.unwrap_err().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | assert!(res.unwrap().is_empty()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/exporter_test_append.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | let content = std::fs::read_to_string(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | assert!(res.unwrap_err().to_string().contains("Invalid D64")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `data` [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | for i in 2..256 { [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 [INFO] [stdout] | [INFO] [stdout] 80 - for i in 2..256 { [INFO] [stdout] 80 + for in data.iter_mut().take(256).skip(2) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 95 | let msg = res.unwrap_err().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | assert!(res.unwrap_err().to_string().contains("too short")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | res.unwrap_err() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | res.unwrap_err() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | res.unwrap_err() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | assert!(res.unwrap_err().to_string().contains("truncated")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `data` [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:218:18 [INFO] [stdout] | [INFO] [stdout] 218 | for i in 0x40..0x80 { [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] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 218 - for i in 0x40..0x80 { [INFO] [stdout] 218 + for in data.iter_mut().take(0x80).skip(0x40) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | res.unwrap_err() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:243:17 [INFO] [stdout] | [INFO] [stdout] 243 | assert!(res.unwrap_err().to_string().contains("too small")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | res.unwrap_err() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | assert!(res.unwrap_err().to_string().contains("no entries")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:291:17 [INFO] [stdout] | [INFO] [stdout] 291 | assert!(res.unwrap().is_empty()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | res.unwrap_err() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:333:17 [INFO] [stdout] | [INFO] [stdout] 333 | assert!(res.unwrap_err().to_string().contains("Truncated")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `panic` should not be present in production code [INFO] [stdout] --> tests/parser_malformed_input_tests.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | Ok(_) => panic!("Expected error containing {needle:?}, but got Ok"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic [INFO] [stdout] = note: requested on the command line with `-W clippy::panic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> tests/vice_protocol_tests.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / /// for the `ViceMessage` protocol, as well as `ViceState` and `BreakpointKind` logic. [INFO] [stdout] 5 | | [INFO] [stdout] | |_^ [INFO] [stdout] 6 | mod protocol_tests { [INFO] [stdout] | ------------------ the comment documents this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the crate use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! VICE binary protocol unit tests [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! Tests the encode/decode round-trip, edge cases, and error handling [INFO] [stdout] 4 ~ //! for the `ViceMessage` protocol, as well as `ViceState` and `BreakpointKind` logic. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_kickasm_tests.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | opcode: opcodes[0xA9].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_kickasm_tests.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | opcode: opcodes[0x8D].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/disassembler_label_placement_tests.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | let labeled_line = lines [INFO] [stdout] | ________________________^ [INFO] [stdout] 55 | | .iter() [INFO] [stdout] 56 | | .find(|l| l.label.is_some()) [INFO] [stdout] 57 | | .expect("Should have a labeled line"); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_kickasm_tests.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_kickasm_tests.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_kickasm_tests.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | opcode: opcodes[0xA5].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on an `Option` value [INFO] [stdout] --> tests/disassembler_label_placement_tests.rs:126:24 [INFO] [stdout] | [INFO] [stdout] 126 | let labeled_line = lines [INFO] [stdout] | ________________________^ [INFO] [stdout] 127 | | .iter() [INFO] [stdout] 128 | | .find(|l| l.label.is_some()) [INFO] [stdout] 129 | | .expect("Should have a labeled line"); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/load_project_test.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | regenerator2000::state::encode_raw_data_to_base64(&raw_bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/load_project_test.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | let json = serde_json::to_string(&project).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/load_project_test.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | std::fs::write(&path, json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/load_project_test.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | / app_state [INFO] [stdout] 60 | | .load_project(path.clone()) [INFO] [stdout] 61 | | .expect("Failed to load project"); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/load_project_test.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | let label = label.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/load_project_test.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | label.first().unwrap().kind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | opcode: opcodes[0xA9].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | opcode: opcodes[0x8D].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | opcode: opcodes[0xA5].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | opcode: opcodes[0x6C].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | opcode: opcodes[0x60].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | opcode: opcodes[0x4A].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | opcode: opcodes[0x95].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | opcode: opcodes[0xB6].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | opcode: opcodes[0xBD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | opcode: opcodes[0xB9].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | opcode: opcodes[0xA1].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:292:17 [INFO] [stdout] | [INFO] [stdout] 292 | opcode: opcodes[0xB1].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_ca65_tests.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | opcode: opcodes[0xA9].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:320:17 [INFO] [stdout] | [INFO] [stdout] 320 | opcode: opcodes[0xD0].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_64tass_tests.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | opcode: opcodes[0xF0].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_ca65_tests.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | opcode: opcodes[0x8D].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_ca65_tests.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_ca65_tests.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | opcode: opcodes[0xAD].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/formatter_ca65_tests.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | opcode: opcodes[0xA5].as_ref().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/cursor_persistence_test.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | / app_state [INFO] [stdout] 25 | | .save_project( [INFO] [stdout] 26 | | ProjectSaveContext { [INFO] [stdout] 27 | | cursor_address: Some(start_cursor_addr), [INFO] [stdout] ... | [INFO] [stdout] 43 | | .expect("Failed to save project"); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] = note: requested on the command line with `-W clippy::expect-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `expect()` on a `Result` value [INFO] [stdout] --> tests/cursor_persistence_test.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | let loaded_data = loaded_state [INFO] [stdout] | ___________________________^ [INFO] [stdout] 48 | | .load_project(path.clone()) [INFO] [stdout] 49 | | .expect("Failed to load project"); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/cursor_persistence_test.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | regenerator2000::state::encode_raw_data_to_base64(&raw_bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/cursor_persistence_test.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | std::fs::write(&leg_path, json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/cursor_persistence_test.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | let leg_data = leg_state.load_project(leg_path.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_selection_test.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | app_state.load_binary(origin, data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | let result = response.result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | let content = result.get("content").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | let content = result.get("content").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | let text = content[0].get("text").unwrap().as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | let text = content[0].get("text").unwrap().as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_selection_test.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | app_state.load_binary(origin, data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | let result = response.result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | let content = result.get("content").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | let content = result.get("content").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:102:20 [INFO] [stdout] | [INFO] [stdout] 102 | let text = content[0].get("text").unwrap().as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:102:20 [INFO] [stdout] | [INFO] [stdout] 102 | let text = content[0].get("text").unwrap().as_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:119:23 [INFO] [stdout] | [INFO] [stdout] 119 | let result2 = response2.result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | let text2 = result2.get("content").unwrap().as_array().unwrap()[0] [INFO] [stdout] | _____________________^ [INFO] [stdout] 121 | | .get("text") [INFO] [stdout] 122 | | .unwrap() [INFO] [stdout] 123 | | .as_str() [INFO] [stdout] 124 | | .unwrap(); [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | let text2 = result2.get("content").unwrap().as_array().unwrap()[0] [INFO] [stdout] | _____________________^ [INFO] [stdout] 121 | | .get("text") [INFO] [stdout] 122 | | .unwrap() [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | let text2 = result2.get("content").unwrap().as_array().unwrap()[0] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/mcp_selection_test.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | let text2 = result2.get("content").unwrap().as_array().unwrap()[0] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/mcp_selection_test.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | app_state.load_binary(origin, data).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/parser_fuzz_test.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | assert!(result.unwrap().is_empty()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/parser_fuzz_test.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | assert!(result.unwrap().is_empty()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/parser_fuzz_test.rs:352:18 [INFO] [stdout] | [INFO] [stdout] 352 | let labels = result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | let result = ViceMessage::decode(&buf).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 55 | let (msg, consumed) = result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | let result = ViceMessage::decode(&buf).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | let result = ViceMessage::decode(&buf).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap_err()` on a `Result` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | assert!(result.unwrap_err().to_string().contains("Invalid STX")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Ok`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:133:22 [INFO] [stdout] | [INFO] [stdout] 133 | let result = ViceMessage::decode(&buf).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:135:31 [INFO] [stdout] | [INFO] [stdout] 135 | let (msg, consumed) = result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | let (msg1, size1) = ViceMessage::decode(&buf).unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | let (msg1, size1) = ViceMessage::decode(&buf).unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:169:29 [INFO] [stdout] | [INFO] [stdout] 169 | let (msg2, size2) = ViceMessage::decode(&buf[size1..]).unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on a `Result` value [INFO] [stdout] --> tests/vice_protocol_tests.rs:169:29 [INFO] [stdout] | [INFO] [stdout] 169 | let (msg2, size2) = ViceMessage::decode(&buf[size1..]).unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is an `Err`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/disassembler_tests.rs:953:21 [INFO] [stdout] | [INFO] [stdout] 953 | let text_line = lines.iter().find(|l| l.mnemonic == ".text").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] = note: requested on the command line with `-W clippy::unwrap-used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on an `Option` value [INFO] [stdout] --> tests/disassembler_tests.rs:992:21 [INFO] [stdout] | [INFO] [stdout] 992 | let text_line = lines.iter().find(|l| l.mnemonic == ".text").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if this value is `None`, it will panic [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "f617999d7c452c96ee3d2b855326376d9ed7b3e6f40d89c09a1cfc632c652174", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f617999d7c452c96ee3d2b855326376d9ed7b3e6f40d89c09a1cfc632c652174", kill_on_drop: false }` [INFO] [stdout] f617999d7c452c96ee3d2b855326376d9ed7b3e6f40d89c09a1cfc632c652174