1 parent 5f4240f commit 85f21c6Copy full SHA for 85f21c6
2 files changed
.github/workflows/rust.yml
@@ -31,6 +31,10 @@ jobs:
31
if: matrix.rust == '1.60.0'
32
run: |
33
cargo check --features=alloc,std,grab_spare_slice
34
+ - name: Check no_std with alloc
35
+ if: matrix.rust != '1.60.0'
36
+ run: |
37
+ cargo check --no-default-features --features=alloc,grab_spare_slice,latest_stable_rust
38
- name: Test non nightly
39
if: matrix.rust != '1.60.0' && matrix.rust != 'nightly'
40
src/tinyvec.rs
@@ -707,7 +707,7 @@ impl<A: Array> TinyVec<A> {
707
if len <= A::CAPACITY {
708
TinyVec::Inline(ArrayVec::from_array_len(A::default(), len))
709
} else {
710
- TinyVec::Heap(vec![A::Item::default(); len])
+ TinyVec::Heap(alloc::vec![A::Item::default(); len])
711
}
712
713
0 commit comments