Skip to content

Commit e0b7732

Browse files
tottotoseanmonstar
authored andcommitted
refactor(server): remove redundant reference
1 parent 520bd0b commit e0b7732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/conn/auto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ where
215215

216216
// We starts as H2 and switch to H1 when we don't get the preface.
217217
if buf.filled().len() == len
218-
|| &buf.filled()[len..] != &H2_PREFACE[len..buf.filled().len()]
218+
|| buf.filled()[len..] != H2_PREFACE[len..buf.filled().len()]
219219
{
220220
*this.version = Version::H1;
221221
break;

0 commit comments

Comments
 (0)