trustification / trustify

Apache License 2.0
8 stars 15 forks source link

fix: build error when deleting Cargo.lock #447

Closed helio-frota closed 1 week ago

helio-frota commented 1 week ago

When I delete Cargo.lock and then cargo clean ; cargo build I see the following build error:

error[E0004]: non-exhaustive patterns: `cpe::cpe::CpeType::Empty` not covered
   --> common/src/cpe.rs:35:15
    |
35  |         match value {
    |               ^^^^^ pattern `cpe::cpe::CpeType::Empty` not covered
    |
note: `cpe::cpe::CpeType` defined here
   --> /home/heliofrota/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpe-0.1.4/src/cpe.rs:157:1
    |
157 | pub enum CpeType {
    | ^^^^^^^^^^^^^^^^
...
162 |     Empty,
    |     ----- not covered
    = note: the matched value is of type `cpe::cpe::CpeType`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
    |
39  ~             cpe::cpe::CpeType::Application => Self::Application,
40  ~             cpe::cpe::CpeType::Empty => todo!(),
    |

2024-06-21_11-20