Skip to content

Commit

Permalink
rustfmt: Reformat previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitshankarchowdhury committed Sep 8, 2024
1 parent e2b61f4 commit 1874ade
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,13 +699,9 @@ pub unsafe extern "C" fn wgpuAdapterGetInfo(
Err(err) => handle_error_fatal(err, "wgpuAdapterGetInfo"),
};

info.vendor = CString::new(result.driver)
.unwrap()
.into_raw();
info.vendor = CString::new(result.driver).unwrap().into_raw();
info.architecture = CString::default().into_raw();
info.device = CString::new(result.name)
.unwrap()
.into_raw();
info.device = CString::new(result.name).unwrap().into_raw();
info.description = CString::new(result.driver_info).unwrap().into_raw();
info.backendType = map_backend_type(result.backend);
info.adapterType = map_adapter_type(result.device_type);
Expand Down

0 comments on commit 1874ade

Please sign in to comment.