From c28210df902be211f299758a175ebc17d0bf9684 Mon Sep 17 00:00:00 2001 From: yavens <179155341+yavens@users.github.noreply.github.com> Date: Tue, 15 Apr 2025 09:33:28 -0400 Subject: [PATCH] fix: Into -> From --- rig-core/src/streaming.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rig-core/src/streaming.rs b/rig-core/src/streaming.rs index 2d720a9..7a58498 100644 --- a/rig-core/src/streaming.rs +++ b/rig-core/src/streaming.rs @@ -71,11 +71,11 @@ impl StreamingCompletionResponse { } } -impl Into>> for StreamingCompletionResponse { - fn into(self) -> CompletionResponse> { +impl From> for CompletionResponse> { + fn from(value: StreamingCompletionResponse) -> CompletionResponse> { CompletionResponse { - choice: self.choice, - raw_response: self.response, + choice: value.choice, + raw_response: value.response, } } }