Skip to content

Commit

Permalink
Merge pull request #458 from epage/i
Browse files Browse the repository at this point in the history
perf(stream): Ensure u8::slice_len is inlined
  • Loading branch information
epage authored Feb 6, 2024
2 parents 2d0d5e0 + dd5d00a commit df2fd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ impl<'a> SliceLen for &'a str {
}

impl SliceLen for u8 {
#[inline]
#[inline(always)]
fn slice_len(&self) -> usize {
1
}
Expand Down

0 comments on commit df2fd11

Please sign in to comment.