diff --git a/ciborium/src/lib.rs b/ciborium/src/lib.rs index 4d9f684..432675a 100644 --- a/ciborium/src/lib.rs +++ b/ciborium/src/lib.rs @@ -133,10 +133,6 @@ pub use crate::ser::{into_writer_canonical, to_vec, to_vec_canonical}; #[deprecated(since = "0.3.0", note = "Please use `to_vec` instead")] pub use crate::ser::to_vec as into_vec; -#[cfg(feature = "std")] -#[doc(inline)] -pub use crate::ser::into_vec; - #[doc(inline)] pub use crate::value::Value; diff --git a/ciborium/src/ser/mod.rs b/ciborium/src/ser/mod.rs index d772df3..4bf393b 100644 --- a/ciborium/src/ser/mod.rs +++ b/ciborium/src/ser/mod.rs @@ -868,15 +868,3 @@ where let mut encoder: Serializer = Serializer::new(writer); value.serialize(&mut encoder) } - -#[cfg(feature = "std")] -/// Serializes as CBOR into a new Vec -#[inline] -pub fn into_vec( - value: &T, -) -> Result, Error< as ciborium_io::Write>::Error>> { - let mut vector = vec![]; - let mut encoder = Serializer::from(&mut vector); - value.serialize(&mut encoder)?; - Ok(vector) -}