Skip to content

Commit b26d625

Browse files
committed
Update criterion
1 parent c4b03d1 commit b26d625

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ unsigned-varint = { version = "0.8", optional = true }
3232

3333
[dev-dependencies]
3434
bincode = { version = "2", features = ["serde"] }
35-
criterion = "0.6"
35+
criterion = "0.8"
3636
rand = "0.9"
3737
rand_chacha = "0.9"
3838
serde_json = "1"

src/encode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl Encode for bool {
4343
}
4444

4545
impl Decode for bool {
46-
type Value = bool;
46+
type Value = Self;
4747
type Error = BoolDecodeError;
4848

4949
#[inline]
@@ -125,7 +125,7 @@ impl Encode for usize {
125125
}
126126

127127
impl Decode for usize {
128-
type Value = usize;
128+
type Value = Self;
129129
type Error = <u64 as Decode>::Error;
130130

131131
#[inline(always)]

0 commit comments

Comments
 (0)