1
0
Fork 0
forked from wry/wry

all: use expect attribute where possible

This commit is contained in:
Julian Orth 2024-09-06 11:08:22 +02:00
parent c3b50dc653
commit e377470f3f
134 changed files with 241 additions and 296 deletions

View file

@ -18,7 +18,6 @@ macro_rules! config {
macro_rules! try_get {
() => {{
#[allow(unused_unsafe)]
unsafe {
let client = crate::_private::client::CLIENT.with(|client| client.get());
if client.is_null() {
@ -35,7 +34,6 @@ macro_rules! get {
get!(Default::default())
}};
($def:expr) => {{
#[allow(unused_unsafe)]
let client = unsafe {
let client = crate::_private::client::CLIENT.with(|client| client.get());
if client.is_null() {