From 89191ce3bc0ff02a70f1c66f09a7f6eb3b6bfa20 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Sun, 8 Dec 2024 15:55:15 -0500 Subject: [PATCH] fix clippy --- types/hex/src/hex.rs | 2 +- types/types/src/rpc/mod.rs | 3 --- types/types/src/rpc/pool_info_extent.rs | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/types/hex/src/hex.rs b/types/hex/src/hex.rs index ecf2222..f395f66 100644 --- a/types/hex/src/hex.rs +++ b/types/hex/src/hex.rs @@ -9,7 +9,7 @@ use serde::{Deserialize, Deserializer, Serialize}; /// Wrapper type for a byte array that (de)serializes from/to hexadecimal strings. /// /// ```rust -/// # use cuprate_types::hex::Hex; +/// # use cuprate_hex::Hex; /// let hash = [1; 32]; /// let hex_bytes = Hex::<32>(hash); /// let expected_json = r#""0101010101010101010101010101010101010101010101010101010101010101""#; diff --git a/types/types/src/rpc/mod.rs b/types/types/src/rpc/mod.rs index 490885d..c2dbd33 100644 --- a/types/types/src/rpc/mod.rs +++ b/types/types/src/rpc/mod.rs @@ -4,9 +4,6 @@ //! however they use more canonical types when appropriate, for example, //! instead of `hash: String`, this module's types would use something like //! `hash: [u8; 32]`. -//! -//! - TODO: finish making fields canonical after -//! - TODO: can epee handle `u128`? there are a lot of `(top_64 | low_64)` fields mod pool_info; mod pool_info_extent; diff --git a/types/types/src/rpc/pool_info_extent.rs b/types/types/src/rpc/pool_info_extent.rs index 3bea5c3..d7ec802 100644 --- a/types/types/src/rpc/pool_info_extent.rs +++ b/types/types/src/rpc/pool_info_extent.rs @@ -27,7 +27,7 @@ impl PoolInfoExtent { /// Convert [`Self`] to a [`u8`]. /// /// ```rust - /// use cuprate_rpc_types::misc::PoolInfoExtent as P; + /// use cuprate_types::rpc::PoolInfoExtent as P; /// /// assert_eq!(P::None.to_u8(), 0); /// assert_eq!(P::Incremental.to_u8(), 1); @@ -47,7 +47,7 @@ impl PoolInfoExtent { /// This returns [`None`] if `u > 2`. /// /// ```rust - /// use cuprate_rpc_types::misc::PoolInfoExtent as P; + /// use cuprate_types::rpc::PoolInfoExtent as P; /// /// assert_eq!(P::from_u8(0), Some(P::None)); /// assert_eq!(P::from_u8(1), Some(P::Incremental));