aboutsummaryrefslogtreecommitdiff
path: root/examples/macro_free.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/macro_free.rs')
-rw-r--r--examples/macro_free.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/macro_free.rs b/examples/macro_free.rs
index ec3a8cb..7563379 100644
--- a/examples/macro_free.rs
+++ b/examples/macro_free.rs
@@ -4,7 +4,7 @@
use std::{fmt, str};
-use bitflags::{Flags, Flag};
+use bitflags::{Flag, Flags};
// First: Define your flags type. It just needs to be `Sized + 'static`.
pub struct ManualFlags(u32);
@@ -54,5 +54,8 @@ impl fmt::Display for ManualFlags {
}
fn main() {
- println!("{}", ManualFlags::A.union(ManualFlags::B).union(ManualFlags::C));
+ println!(
+ "{}",
+ ManualFlags::A.union(ManualFlags::B).union(ManualFlags::C)
+ );
}