Add asserts and whitespace fix

pull/3/head
Thijs Cadier 9 years ago
parent ceeacd35a8
commit 9d299055e7

@ -96,10 +96,12 @@ impl Bsonc {
} }
pub fn inner(&self) -> *const bindings::bson_t { pub fn inner(&self) -> *const bindings::bson_t {
assert!(!self.inner.is_null());
self.inner self.inner
} }
pub fn mut_inner(&mut self) -> *mut bindings::bson_t { pub fn mut_inner(&mut self) -> *mut bindings::bson_t {
assert!(!self.inner.is_null());
self.inner as *mut bindings::bson_t self.inner as *mut bindings::bson_t
} }
} }

Loading…
Cancel
Save