Replace nth(0) with next()

This commit is contained in:
Jonas Platte 2020-02-17 01:08:15 +01:00
parent 7d3cfd769e
commit 03555a3aed
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -102,7 +102,7 @@ impl TryFrom<&str> for RoomIdOrAliasId {
let mut chars = room_id_or_alias_id.chars();
let sigil = chars.nth(0).expect("ID missing first character.");
let sigil = chars.next().expect("ID missing first character.");
match sigil {
'#' => {