#![allow(clippy::arithmetic_side_effects)]
use {
crate::macros::{
impl_get_instance_packed_len, impl_get_packed_len_v0, impl_try_from_slice_unchecked,
},
borsh0_10::maybestd::io,
};
impl_get_packed_len_v0!(
borsh0_10,
#[deprecated(
since = "1.18.0",
note = "Please upgrade to Borsh 1.X and use `v1::get_packed_len` instead"
)]
);
impl_try_from_slice_unchecked!(
borsh0_10,
io,
#[deprecated(
since = "1.18.0",
note = "Please upgrade to Borsh 1.X and use `v1::try_from_slice_unchecked` instead"
)]
);
impl_get_instance_packed_len!(
borsh0_10,
io,
#[deprecated(
since = "1.18.0",
note = "Please upgrade to Borsh 1.X and use `v1::get_instance_packed_len` instead"
)]
);
#[cfg(test)]
#[allow(deprecated)]
mod tests {
use {crate::macros::impl_tests, borsh0_10::maybestd::io};
impl_tests!(borsh0_10, io);
}