Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit c319a2d

Browse files
committed
Mark set_once inline
1 parent 365578a commit c319a2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ pub fn hook(info: &panic::PanicInfo) {
9191

9292
/// Set the `console.error` panic hook the first time this is called. Subsequent
9393
/// invocations do nothing.
94+
#[inline]
9495
pub fn set_once() {
9596
use std::sync::{ONCE_INIT, Once};
9697
static SET_HOOK: Once = ONCE_INIT;

0 commit comments

Comments
 (0)