all: use expect attribute where possible
This commit is contained in:
parent
c3b50dc653
commit
e377470f3f
134 changed files with 241 additions and 296 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue