Skip to content

Commit

Permalink
use clone instead of to_owned
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Nov 22, 2024
1 parent f4ede63 commit abe7960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yellowstone-grpc-proto/src/plugin/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit abe7960

Please sign in to comment.