[librsvg] aspect_ratio.rs: Update to the macro syntax in bitflags 0.9.1
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] aspect_ratio.rs: Update to the macro syntax in bitflags 0.9.1
- Date: Mon, 31 Jul 2017 16:12:12 +0000 (UTC)
commit 67031d6646f299486dbdb4924588495d23d84566
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Jul 31 11:07:59 2017 -0500
aspect_ratio.rs: Update to the macro syntax in bitflags 0.9.1
rust/Cargo.toml | 2 +-
rust/src/aspect_ratio.rs | 24 ++++++++++++------------
2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 24b9666..8dd6f3a 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -6,7 +6,7 @@ build = "build.rs"
[dependencies]
libc = "0.2"
-bitflags = ""
+bitflags = "^0.9.1"
glib = "^0.1.3"
glib-sys = "^0.3.4"
cairo = ""
diff --git a/rust/src/aspect_ratio.rs b/rust/src/aspect_ratio.rs
index e6afb22..ebda583 100644
--- a/rust/src/aspect_ratio.rs
+++ b/rust/src/aspect_ratio.rs
@@ -207,18 +207,18 @@ impl Default for AspectRatio {
}
bitflags! {
- flags AspectRatioFlags: u32 {
- const XMIN_YMIN = (1 << 0),
- const XMID_YMIN = (1 << 1),
- const XMAX_YMIN = (1 << 2),
- const XMIN_YMID = (1 << 3),
- const XMID_YMID = (1 << 4),
- const XMAX_YMID = (1 << 5),
- const XMIN_YMAX = (1 << 6),
- const XMID_YMAX = (1 << 7),
- const XMAX_YMAX = (1 << 8),
- const SLICE = (1 << 30),
- const DEFER = (1 << 31)
+ struct AspectRatioFlags: u32 {
+ const XMIN_YMIN = (1 << 0);
+ const XMID_YMIN = (1 << 1);
+ const XMAX_YMIN = (1 << 2);
+ const XMIN_YMID = (1 << 3);
+ const XMID_YMID = (1 << 4);
+ const XMAX_YMID = (1 << 5);
+ const XMIN_YMAX = (1 << 6);
+ const XMID_YMAX = (1 << 7);
+ const XMAX_YMAX = (1 << 8);
+ const SLICE = (1 << 30);
+ const DEFER = (1 << 31);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]