From c036dcf9b1872c301d07bdecd84ee7b869a14780 Mon Sep 17 00:00:00 2001 From: clubby789 Date: Thu, 7 Nov 2024 14:30:09 +0000 Subject: [PATCH] Bump to bitflags 2.0 --- Cargo.toml | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 05bcd4f..df6fde5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ repository = "https://github.com/rust-lang/rustc_apfloat" description = "Rust port of C++ llvm::APFloat library" [dependencies] -bitflags = "1.3.2" +bitflags = "2.6.0" smallvec = { version = "1.11.0", features = ["const_generics", "union"] } [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 8642a22..09284cb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,6 +54,7 @@ bitflags! { /// result of an operation that signals the invalid operation exception /// shall be a quiet NaN." #[must_use] + #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct Status: u8 { const OK = 0x00; const INVALID_OP = 0x01;