Skip to content

Commit 2c4b35f

Browse files
committed
Format in a way that rustfmt 1.x and 2.0.0-rc.2 both render the same
1 parent f57f756 commit 2c4b35f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/unique_ptr.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ unsafe impl UniquePtrTarget for CxxString {
190190
const __NAME: &'static dyn Display = &"CxxString";
191191
fn __null() -> *mut c_void {
192192
let mut repr = ptr::null_mut::<c_void>();
193-
unsafe { unique_ptr_std_string_null(&mut repr) }
193+
unsafe {
194+
unique_ptr_std_string_null(&mut repr);
195+
}
194196
repr
195197
}
196198
unsafe fn __raw(raw: *mut Self) -> *mut c_void {

syntax/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn parse_struct(cx: &mut Errors, item: ItemStruct) -> Result<Api> {
7373
Fields::Named(fields) => fields,
7474
Fields::Unit => return Err(Error::new_spanned(item, "unit structs are not supported")),
7575
Fields::Unnamed(_) => {
76-
return Err(Error::new_spanned(item, "tuple structs are not supported"))
76+
return Err(Error::new_spanned(item, "tuple structs are not supported"));
7777
}
7878
};
7979

0 commit comments

Comments
 (0)