Skip to content

Commit dc27043

Browse files
tottotoseanmonstar
authored andcommitted
feat(ext): implement From ReasonPhrase for Bytes
1 parent 6aee2e6 commit dc27043

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ext/h1_reason_phrase.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ impl TryFrom<Bytes> for ReasonPhrase {
107107
}
108108
}
109109

110-
impl Into<Bytes> for ReasonPhrase {
111-
fn into(self) -> Bytes {
112-
self.0
110+
impl From<ReasonPhrase> for Bytes {
111+
fn from(reason: ReasonPhrase) -> Self {
112+
reason.0
113113
}
114114
}
115115

0 commit comments

Comments
 (0)