Replace panic!() with unreachable!()

This commit is contained in:
Matthias Ahouansou 2024-04-12 05:14:39 +00:00 committed by Val Lorentz
parent b5e21f761b
commit ab8592526f
3 changed files with 3 additions and 3 deletions

View file

@ -407,7 +407,7 @@ impl Service {
self.redact_pdu(redact_id, pdu)?;
}
}
_ => panic!("Unexpected room version {}", room_version_id)
_ => unreachable!("Validity of room version already checked")
};
}
TimelineEventType::SpaceChild => {