Skip to content

Commit a7d43ab

Browse files
committed
Lint
1 parent 5774489 commit a7d43ab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

datadog-crashtracker/src/runtime_callback.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,7 @@ pub(crate) unsafe fn invoke_runtime_callback_with_writer<W: std::io::Write>(
316316
) -> Result<(), std::io::Error> {
317317
let callback_ptr = RUNTIME_CALLBACK.load(Ordering::SeqCst);
318318
if callback_ptr.is_null() {
319-
return Err(std::io::Error::new(
320-
std::io::ErrorKind::Other,
321-
"No runtime callback registered",
322-
));
319+
return Err(std::io::Error::other("No runtime callback registered"));
323320
}
324321

325322
let (callback_fn, _, _) = &*callback_ptr;

0 commit comments

Comments
 (0)