From dc27043aa319c0e630b7385a36aca0f3bee70670 Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 28 Mar 2024 23:36:21 +0900 Subject: [PATCH] feat(ext): implement From ReasonPhrase for Bytes --- src/ext/h1_reason_phrase.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ext/h1_reason_phrase.rs b/src/ext/h1_reason_phrase.rs index 8837ae4580..b96c2bb4be 100644 --- a/src/ext/h1_reason_phrase.rs +++ b/src/ext/h1_reason_phrase.rs @@ -107,9 +107,9 @@ impl TryFrom for ReasonPhrase { } } -impl Into for ReasonPhrase { - fn into(self) -> Bytes { - self.0 +impl From for Bytes { + fn from(reason: ReasonPhrase) -> Self { + reason.0 } }