Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Sep 16, 2024
1 parent 01a467f commit ebade36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qirlib/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ pub(crate) extern "C" fn diagnostic_handler(
unsafe {
let severity = LLVMGetDiagInfoSeverity(diagnostic_info);
if severity == LLVMDiagnosticSeverity::LLVMDSError {
let c_char_output =
output.cast::<*mut ::core::ffi::c_void>().cast::<*mut ::core::ffi::c_char>();
let c_char_output = output
.cast::<*mut ::core::ffi::c_void>()
.cast::<*mut ::core::ffi::c_char>();
*c_char_output = LLVMGetDiagInfoDescription(diagnostic_info);
}
}
Expand Down

0 comments on commit ebade36

Please sign in to comment.