Skip to content

Commit be6e551

Browse files
Readjust flag
1 parent 01cfc91 commit be6e551

File tree

3 files changed

+2
-35
lines changed

3 files changed

+2
-35
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repository = "https://github.com/slightlyoutofphase/staticvec"
55
documentation = "https://docs.rs/staticvec/"
66
license = "MIT OR Apache-2.0"
77
readme = "README.md"
8-
version = "0.11.7"
8+
version = "0.11.8"
99
authors = ["SlightlyOutOfPhase <[email protected]>"]
1010
keywords = ["vec", "array", "no_std", "vector", "stack"]
1111
categories = ["data-structures", "no-std"]

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
const_mut_refs,
4343
const_precise_live_drops,
4444
const_ptr_is_null,
45-
const_ptr_offset_from,
4645
const_ptr_read,
4746
const_ptr_write,
4847
// this should be called `const_interior_mutability` IMO

test/test_staticvec.rs

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,7 @@ fn quicksort_unstable() {
20832083
mod read_tests {
20842084
use core::mem::MaybeUninit;
20852085
use staticvec::*;
2086-
use std::io::{self, BufRead, Read, ReadBuf};
2086+
use std::io::{self, BufRead, Read};
20872087

20882088
// We provide custom implementations of most `Read` methods; test those impls
20892089
#[test]
@@ -2174,38 +2174,6 @@ mod read_tests {
21742174
assert_eq!(ints2, [10, 11, 12]);
21752175
}
21762176

2177-
#[test]
2178-
fn read_buf() {
2179-
let inner: &[u8] = &[5, 6, 7, 0, 1, 2, 3, 4];
2180-
let mut reader = StaticVec::<u8, 8>::from(inner);
2181-
let mut buf = [MaybeUninit::uninit(); 3];
2182-
let mut buf = ReadBuf::uninit(&mut buf);
2183-
reader.read_buf(&mut buf).unwrap();
2184-
assert_eq!(buf.filled(), [5, 6, 7]);
2185-
assert_eq!(reader, [0, 1, 2, 3, 4]);
2186-
let mut buf = [MaybeUninit::uninit(); 2];
2187-
let mut buf = ReadBuf::uninit(&mut buf);
2188-
reader.read_buf(&mut buf).unwrap();
2189-
assert_eq!(buf.filled(), [0, 1]);
2190-
assert_eq!(reader, [2, 3, 4]);
2191-
let mut buf = [MaybeUninit::uninit(); 1];
2192-
let mut buf = ReadBuf::uninit(&mut buf);
2193-
reader.read_buf(&mut buf).unwrap();
2194-
assert_eq!(buf.filled(), [2]);
2195-
assert_eq!(reader, [3, 4]);
2196-
let mut buf = [MaybeUninit::uninit(); 3];
2197-
let mut buf = ReadBuf::uninit(&mut buf);
2198-
reader.read_buf(&mut buf).unwrap();
2199-
assert_eq!(buf.filled(), [3, 4]);
2200-
assert_eq!(reader, []);
2201-
reader.read_buf(&mut buf).unwrap();
2202-
assert_eq!(buf.filled(), [3, 4]);
2203-
assert_eq!(reader, []);
2204-
buf.clear();
2205-
reader.read_buf(&mut buf).unwrap();
2206-
assert_eq!(buf.filled_len(), 0);
2207-
}
2208-
22092177
#[test]
22102178
fn bufread() {
22112179
let mut cursor = StaticVec::<u8, 7>::from("foo\nbar".as_bytes());

0 commit comments

Comments
 (0)