Skip to content

Commit d589b49

Browse files
committed
Fail 3
1 parent 50d4270 commit d589b49

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Compact, clone-on-write vector and string.
1111
storage. It takes up 16 bytes of space. It has 15 bytes of inline storage and
1212
starting from 16 bytes it becomes an [`EcoVec<u8>`].
1313
14+
https://google.com
15+
1416
## Example
1517
```
1618
// This is stored inline.

src/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ use core::ops::Deref;
1414
use core::ops::{Range, RangeBounds};
1515
use core::ptr::{self, NonNull};
1616

17-
#[cfg(not(feature = "std"))]
18-
use alloc::vec::Vec;
17+
// #[cfg(not(feature = "std"))]
18+
// use alloc::vec::Vec;
1919

2020
use crate::sync::atomic::{self, AtomicUsize, Ordering::*};
2121
use crate::vendor::slice;

tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ fn test_vec_truncate() {
208208
fn test_vec_drain() {
209209
let mut vec = EcoVec::from_elem(v("a"), 10);
210210
vec.drain(3..6);
211-
assert_eq!(vec.len(), 7);
211+
assert_eq!(vec.len(), 8);
212212

213213
// Manually pull an item, before dropping the drain.
214214
let mut drain = vec.drain(5..);

0 commit comments

Comments
 (0)