From d17fdbd6a82453425e60c995427fb9ba59a678cb Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Fri, 22 Nov 2024 10:48:41 +0200 Subject: [PATCH] use clone instead of to_owned --- yellowstone-grpc-proto/src/plugin/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yellowstone-grpc-proto/src/plugin/message.rs b/yellowstone-grpc-proto/src/plugin/message.rs index 848d605f..fe14d4bd 100644 --- a/yellowstone-grpc-proto/src/plugin/message.rs +++ b/yellowstone-grpc-proto/src/plugin/message.rs @@ -110,7 +110,7 @@ impl MessageSlot { parent, status: status.into(), dead_error: if let SlotStatus::Dead(error) = status { - Some(error.to_owned()) + Some(error.clone()) } else { None },