From 4c64e88fbb68d9ad462e8543321684968e8a9479 Mon Sep 17 00:00:00 2001 From: OliverNChalk <11343499+OliverNChalk@users.noreply.github.com> Date: Thu, 27 Feb 2025 19:39:01 +1100 Subject: [PATCH] feat: add `From<&Pubkey> for Pubkey` --- pubkey/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pubkey/src/lib.rs b/pubkey/src/lib.rs index b32191d4..3eed3d18 100644 --- a/pubkey/src/lib.rs +++ b/pubkey/src/lib.rs @@ -248,6 +248,13 @@ impl FromStr for Pubkey { } } +impl From<&Pubkey> for Pubkey { + #[inline] + fn from(value: &Pubkey) -> Self { + *value + } +} + impl From<[u8; 32]> for Pubkey { #[inline] fn from(from: [u8; 32]) -> Self {