Add test for Write

This commit is contained in:
bluss
2015-09-10 19:48:17 +02:00
parent 81b5bd32c0
commit def1be54ed
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -677,6 +677,7 @@ impl<A: Array> Ord for ArrayVec<A> where A::Item: Ord {
}
}
/// `Write` appends written data to the end of the vector.
impl<A: Array<Item=u8>> io::Write for ArrayVec<A> {
fn write(&mut self, data: &[u8]) -> io::Result<usize> {
unsafe {