We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4110a2 commit 0a01c81Copy full SHA for 0a01c81
misc/multistream-select/src/protocol.rs
@@ -179,7 +179,7 @@ impl Message {
179
180
// If it starts with a `/`, ends with a line feed without any
181
// other line feeds in-between, it must be a protocol name.
182
- if msg.get(0) == Some(&b'/')
+ if msg.first() == Some(&b'/')
183
&& msg.last() == Some(&b'\n')
184
&& !msg[..msg.len() - 1].contains(&b'\n')
185
{
0 commit comments