Skip to content

Commit 1ad2821

Browse files
committed
bindgen-integration: run cargo fmt
1 parent f2099ad commit 1ad2821

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bindgen-integration/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ use std::ffi::CStr;
77
#[test]
88
fn test_static_method() {
99
let c_str = unsafe { bindings::Test::name() };
10-
let name = unsafe {
11-
CStr::from_ptr(c_str).to_string_lossy().into_owned()
12-
};
10+
let name = unsafe { CStr::from_ptr(c_str).to_string_lossy().into_owned() };
1311
assert_eq!(name, "Test", "Calling a static C++ method works!");
1412
}
1513

0 commit comments

Comments
 (0)