From 57f9c258d779c4b7daec38ad16433475b4e14599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= <26653921+dj8yfo@users.noreply.github.com> Date: Mon, 2 Oct 2023 10:22:15 +0300 Subject: [PATCH] chore!: completely remove deprecated `BorshSerialize::try_to_vec` (#221) --- borsh/src/ser/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/borsh/src/ser/mod.rs b/borsh/src/ser/mod.rs index 0e65223a6..e0f9f671c 100644 --- a/borsh/src/ser/mod.rs +++ b/borsh/src/ser/mod.rs @@ -54,14 +54,6 @@ const FLOAT_NAN_ERR: &str = "For portability reasons we do not allow to serializ pub trait BorshSerialize { fn serialize(&self, writer: &mut W) -> Result<()>; - /// Serialize this instance into a vector of bytes. - #[deprecated = "use `borsh::to_vec(&object)` instead"] - fn try_to_vec(&self) -> Result> { - let mut result = Vec::with_capacity(helpers::DEFAULT_SERIALIZER_CAPACITY); - self.serialize(&mut result)?; - Ok(result) - } - #[inline] #[doc(hidden)] fn u8_slice(slice: &[Self]) -> Option<&[u8]>