Added travis CI config file

This commit is contained in:
robin
2021-02-03 17:20:18 +07:00
parent 6db7f02f99
commit 892915a53c
2 changed files with 13 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
cache: cargo
script:
- cargo test
+1 -4
View File
@@ -54,10 +54,7 @@ struct InfiniteByteIterator<'a> {
impl<'a> InfiniteByteIterator<'a> {
pub fn new(bytes: &'a [u8]) -> InfiniteByteIterator<'a> {
InfiniteByteIterator {
bytes,
index: 0,
}
InfiniteByteIterator { bytes, index: 0 }
}
}