Skip to content

unreachable expression #103

Open

Description

@yurivict

This warning is printed during the build of the starship project:

warning: unreachable expression
   --> /wrkdirs/usr/ports/shells/starship/work/starship-1.4.0/cargo-crates/sys-info-0.9.1/lib.rs:857:5
    |
838 |                 return Err(Error::IO(io::Error::last_os_error()));
    |                 ------------------------------------------------- any code following this expression is unreachable
...
857 |     Err(Error::UnsupportedSystem)
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
    |
note: the lint level is defined here
   --> /wrkdirs/usr/ports/shells/starship/work/starship-1.4.0/cargo-crates/sys-info-0.9.1/lib.rs:856:12
    |
856 |     #[warn(unreachable_code)]
    |            ^^^^^^^^^^^^^^^^

warning: `sys-info` (lib) generated 1 warning

Activity

  1. added 2 commits that reference this issue on Apr 21, 2022
    6c621b0
    c6b037e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions