Skip to content

Commit 0a01c81

Browse files
authored
misc/multistream-select: Replace msg.get(0) with msg.first() (#2816)
1 parent a4110a2 commit 0a01c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/multistream-select/src/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl Message {
179179

180180
// If it starts with a `/`, ends with a line feed without any
181181
// other line feeds in-between, it must be a protocol name.
182-
if msg.get(0) == Some(&b'/')
182+
if msg.first() == Some(&b'/')
183183
&& msg.last() == Some(&b'\n')
184184
&& !msg[..msg.len() - 1].contains(&b'\n')
185185
{

0 commit comments

Comments
 (0)