We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5774489 commit a7d43abCopy full SHA for a7d43ab
datadog-crashtracker/src/runtime_callback.rs
@@ -316,10 +316,7 @@ pub(crate) unsafe fn invoke_runtime_callback_with_writer<W: std::io::Write>(
316
) -> Result<(), std::io::Error> {
317
let callback_ptr = RUNTIME_CALLBACK.load(Ordering::SeqCst);
318
if callback_ptr.is_null() {
319
- return Err(std::io::Error::new(
320
- std::io::ErrorKind::Other,
321
- "No runtime callback registered",
322
- ));
+ return Err(std::io::Error::other("No runtime callback registered"));
323
}
324
325
let (callback_fn, _, _) = &*callback_ptr;
0 commit comments