Replace panic!() with unreachable!()
This commit is contained in:
parent
b5e21f761b
commit
ab8592526f
3 changed files with 3 additions and 3 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue