Skip to content

Commit

Permalink
Add deprecated mark to IntKey wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ueco-jb committed Dec 1, 2021
1 parent 6d589b3 commit f432eb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/storage-plus/src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ pub type I128Key = IntKey<i128>;
/// let k = U64Key::new(12345);
/// let k = U32Key::from(12345);
/// let k: U16Key = 12345.into();
#[deprecated(
since = "0.10.2+",
note = "It is suggested to use naked int types instead of IntKey wrapper"
)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct IntKey<T: Endian> {
pub wrapped: Vec<u8>,
Expand Down

0 comments on commit f432eb9

Please sign in to comment.