rust-vmm / vmm-sys-util

Helpers and utilities used by multiple rust-vmm components and VMMs
BSD 3-Clause "New" or "Revised" License
78 stars 65 forks source link

Impl PartialEq & Eq for error types #169

Closed JonathanWoollett-Light closed 2 years ago

JonathanWoollett-Light commented 2 years ago

Summary of the PR

Implementing PartialEq and Eq for error types.

Allows for usage like:

assert_eq!(some_err,MyErrroType(..));

rather than requring:

assert!(matches!(some_err,MyErrorType(..)))

Requirements

Before submitting your PR, please make sure you addressed the following requirements: