BacktraceStatus: add Eq impl

See discussion on #53487.
This commit is contained in:
Ben Boeckel 2019-10-02 08:17:28 -04:00
parent f2023ac599
commit fb80e6c62e

View File

@ -113,7 +113,7 @@ pub struct Backtrace {
/// The current status of a backtrace, indicating whether it was captured or
/// whether it is empty for some other reason.
#[non_exhaustive]
#[derive(Debug)]
#[derive(Debug, PartialEq, Eq)]
pub enum BacktraceStatus {
/// Capturing a backtrace is not supported, likely because it's not
/// implemented for the current platform.