Remove unnecessary else block from thread_local!
expanded code
This commit is contained in:
parent
340bb19fea
commit
fa1e35c833
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,8 @@ pub macro thread_local_inner {
|
|||
if let $crate::option::Option::Some(init) = init {
|
||||
if let $crate::option::Option::Some(value) = init.take() {
|
||||
return value;
|
||||
} else if $crate::cfg!(debug_assertions) {
|
||||
}
|
||||
if $crate::cfg!(debug_assertions) {
|
||||
$crate::unreachable!("missing default value");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue