Skip to content

Commit

Permalink
Auto merge of #163 - mcronce:master, r=emilio
Browse files Browse the repository at this point in the history
lib.rs:  + 96-item inline support

Added support for `[_; 96]` arrays

I'm not sure how desirable this is to the broader user base, but I had a need for precisely this size for storing hex-encoded SHA384 hashes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/163)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo authored Oct 19, 2019
2 parents 924683a + 0f197c5 commit bef9925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1579,9 +1579,9 @@ macro_rules! impl_array(
);

impl_array!(
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 20, 24, 32, 36, 0x40, 0x80, 0x100,
0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x20000, 0x40000, 0x80000,
0x100000
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 20, 24, 32, 36, 0x40, 0x60, 0x80,
0x100, 0x200, 0x400, 0x600, 0x800, 0x1000, 0x2000, 0x4000, 0x6000, 0x8000, 0x10000, 0x20000,
0x40000, 0x60000, 0x80000, 0x100000
);

#[cfg(test)]
Expand Down

0 comments on commit bef9925

Please sign in to comment.