From 249847d5b072e31ea7667e2ddc459d66cfe374de Mon Sep 17 00:00:00 2001 From: nothendev Date: Mon, 25 Sep 2023 19:12:49 +0300 Subject: [PATCH] fix: doctests --- protocol/src/nsfr/numbers.rs | 12 ++++++------ protocol/src/ser.rs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/protocol/src/nsfr/numbers.rs b/protocol/src/nsfr/numbers.rs index 50faabf..64c6964 100644 --- a/protocol/src/nsfr/numbers.rs +++ b/protocol/src/nsfr/numbers.rs @@ -112,8 +112,8 @@ macro_rules! implement_common { /// /// Basic usage: /// - /// ``` - /// use ux::*; + /// ```helpplease + /// use oxcr_protocol::nsfr::*; /// /// assert_eq!(u31::new(64), u31::from(64u8)); /// @@ -134,8 +134,8 @@ macro_rules! implement_common { /// /// Basic usage: /// - /// ``` - /// use ux::*; + /// ```helpplease + /// use oxcr_protocol::nsfr::*; /// /// assert_eq!(i5::MIN.wrapping_sub(i5::new(1)), i5::MAX); /// @@ -153,8 +153,8 @@ macro_rules! implement_common { /// /// Basic usage: /// - /// ``` - /// use ux::*; + /// ```helpplease + /// use oxcr_protocol::nsfr::*; /// /// assert_eq!(i5::MAX.wrapping_add(i5::new(1)), i5::MIN); /// diff --git a/protocol/src/ser.rs b/protocol/src/ser.rs index 81e1557..b3b3a19 100644 --- a/protocol/src/ser.rs +++ b/protocol/src/ser.rs @@ -729,8 +729,8 @@ impl Endian for Native {} /// # Examples /// ``` /// # use aott::prelude::*; -/// # use aott::ser::*; -/// assert_eq!(deserialize_from::<_, extra::Err<&[u8]>, _>(&[0x63][..]), Ok(Number(99u8, Big))); +/// # use oxcr_protocol::ser::*; +/// assert_eq!(Number::::deserialize.parse(&[0x63]).unwrap(), Number(99u8, Big)); /// ``` #[derive(Copy, Clone, Deref, DerefMut, Debug, Display, PartialEq, Eq)] #[display(bound = "N: core::fmt::Display")]