Skip to content

Commit dfcc1ef

Browse files
committed
cargo fmt
1 parent 8211927 commit dfcc1ef

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lxc-sys/examples/demo.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ use lxc_sys::lxc_container;
22
use std::ptr::{null, null_mut};
33

44
macro_rules! str {
5-
($e:expr) => {{
6-
std::ffi::CString::new($e).unwrap()
7-
}};
5+
($e:expr) => {{ std::ffi::CString::new($e).unwrap() }};
86
}
97

108
fn main() {

src/container.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ use crate::ffi::to_mut_cstr;
44
use std::ptr::{null, null_mut};
55

66
macro_rules! get {
7-
( $container:ident . $prop:ident ) => {{
8-
unsafe { (*$container.inner).$prop }
9-
}};
7+
( $container:ident . $prop:ident ) => {{ unsafe { (*$container.inner).$prop } }};
108

119
( $container:ident . $prop:ident -> c_str ) => {{
1210
let result = get!($container.$prop);

0 commit comments

Comments
 (0)