From 03555a3aed2907fcff28f3d36740d6b873e3bb53 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 17 Feb 2020 01:08:15 +0100 Subject: [PATCH] Replace nth(0) with next() --- src/room_id_or_room_alias_id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/room_id_or_room_alias_id.rs b/src/room_id_or_room_alias_id.rs index c9a768e4..93b7e4bb 100644 --- a/src/room_id_or_room_alias_id.rs +++ b/src/room_id_or_room_alias_id.rs @@ -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 { '#' => {