Remove unnecessary else block from thread_local! expanded code

This commit is contained in:
Shoyu Vanilla 2024-02-15 02:35:37 +09:00
parent 340bb19fea
commit fa1e35c833

View File

@ -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");
}
}