Skip to content

Commit bcbeef1

Browse files
committed
refactor: remove unneeded unsafe block around suspend_all_threads
1 parent 90bf654 commit bcbeef1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
2525
/// Handles the plugin being attached to the game
2626
fn attach() {
2727
// Suspend all game threads so the user has a chance to connect to a server
28-
unsafe { threads::suspend_all_threads() };
28+
threads::suspend_all_threads();
2929

3030
// Debug allocates a console window to display output
3131
#[cfg(debug_assertions)]

0 commit comments

Comments
 (0)