Sign In

arrayvec

Package Overview
Dependencies
Maintainers
0
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrayvec - cargo Package Compare versions

Comparing version
0.3.21
to
0.3.22
+1
-0
.travis.yml

@@ -24,2 +24,3 @@ language: rust

- master
- 0.3
script:

@@ -26,0 +27,0 @@ - |

+1
-1
[package]
name = "arrayvec"
version = "0.3.21"
version = "0.3.22"
authors = ["bluss"]

@@ -5,0 +5,0 @@ license = "MIT/Apache-2.0"

@@ -25,2 +25,6 @@

- 0.3.22
- Implement ``Array`` for the 65536 size
- 0.3.21

@@ -27,0 +31,0 @@

@@ -67,2 +67,9 @@

impl Index for u32 {
#[inline(always)]
fn to_usize(self) -> usize { self as usize }
#[inline(always)]
fn from(ix: usize) -> Self { ix as u32 }
}
impl Index for usize {

@@ -102,2 +109,3 @@ #[inline(always)]

fix_array_impl_recursive!(u16, 256, 384, 512, 768, 1024, 2048, 4096, 8192, 16384, 32768,);
fix_array_impl_recursive!(u32, 1 << 16,);

@@ -438,1 +438,7 @@ extern crate arrayvec;

}
#[test]
fn test_sizes() {
let v = ArrayVec::from([0u8; 1 << 16]);
assert_eq!(vec![0u8; v.len()], &v[..]);
}