chore: Silence another rust-analyzer false-positive (#6124)

Follow-up to #6077. Not sure why this error didn't show up in my
rust-analyzer until now.
This commit is contained in:
Hocuri
2024-10-29 17:45:26 +01:00
committed by GitHub
parent 69fbb98f3c
commit bb8b262e68

View File

@@ -409,6 +409,9 @@ impl From<CoreEventType> for EventType {
},
CoreEventType::ChatlistChanged => ChatlistChanged,
CoreEventType::EventChannelOverflow { n } => EventChannelOverflow { n },
#[allow(unreachable_patterns)]
#[cfg(test)]
_ => unreachable!("This is just to silence a rust_analyzer false-positive"),
}
}
}