diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-02-24 21:15:45 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-02-24 21:15:45 +0300 |
| commit | 2807a1ce0255ce98415ebe6f65eb589d0f2f894b (patch) | |
| tree | 879116c1d285754e3e3779817211b816849902b7 /src/libsyntax/util | |
| parent | dccdde4007c191aa8b8d9cfffb0c7d3509fa675e (diff) | |
| download | rust-2807a1ce0255ce98415ebe6f65eb589d0f2f894b.tar.gz rust-2807a1ce0255ce98415ebe6f65eb589d0f2f894b.zip | |
Use arrays instead of vectors in tests
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/small_vector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/small_vector.rs b/src/libsyntax/util/small_vector.rs index 0a39d380904..90df23882a1 100644 --- a/src/libsyntax/util/small_vector.rs +++ b/src/libsyntax/util/small_vector.rs @@ -229,10 +229,10 @@ mod test { assert_eq!(Vec::new(), v); let v = SmallVector::one(1); - assert_eq!(vec![1], v.into_iter().collect::<Vec<_>>()); + assert_eq!([1], v.into_iter().collect::<Vec<_>>()); let v = SmallVector::many(vec![1, 2, 3]); - assert_eq!(vec!(1, 2, 3), v.into_iter().collect::<Vec<_>>()); + assert_eq!([1, 2, 3], v.into_iter().collect::<Vec<_>>()); } #[test] |
