Skip to content

cargo_auditable.rs:40:39: called Option::unwrap() on a None value #197

@PRESFIL

Description

@PRESFIL

Description

cargo_auditable fails on checking rustdesk in NixOS. Only warnings found in rustdesk's codebase,
but cargo_auditable crashes. I don't know how to show the backtrace yet...

nix-store -l /nix/store/18p3y3rxms2m60kdjd1djpv843fz0qds-rustdesk-1.3.8.drv
warning: field `0` is never read
  --> src/hbbs_http.rs:16:11
   |
16 |     Error(String),
   |     ----- ^^^^^^
   |     |
   |     field in this variant
   |
   = note: `HbbHttpResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
16 -     Error(String),
16 +     Error(()),
   |

warning: `rustdesk` (lib) generated 48 warnings (run `cargo fix --lib -p rustdesk` to apply 14 suggestions)

thread 'main' panicked at cargo-auditable/src/cargo_auditable.rs:40:39:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions