~jeffa/filo

f5e641d7988c124512565842537289163a2df5d8 — Jeff a month ago b3b6668
Clean up project; Add test script
5 files changed, 7 insertions(+), 4 deletions(-)

M src/filo.rs
M src/filo_rw.rs
M src/lib.rs
D src/operations.rs
A test.sh
M src/filo.rs => src/filo.rs +1 -1
@@ 6,7 6,7 @@ use io::{BufRead, BufReader};
/// implements [FiloRw](crate::filo_rw::FiloRw).

use crate::filo_rw::FiloRw;
use std::{convert::TryInto, fs::File, io, io::{Read, Seek, SeekFrom, Write}, path::PathBuf};
use std::{fs::File, io, io::{Seek, SeekFrom, Write}, path::PathBuf};

pub struct Filo {
    file: File,

M src/filo_rw.rs => src/filo_rw.rs +0 -1
@@ 49,7 49,6 @@ impl FiloRw for u8 {

#[cfg(test)]
mod tests {
    use super::*;
    use crate::filo::Filo;
    use std::{fs, fs::File, str::FromStr, path::PathBuf};


M src/lib.rs => src/lib.rs +3 -0
@@ 1,8 1,11 @@
#![allow(incomplete_features)]

#![feature(assoc_char_funcs)]
#![feature(const_evaluatable_checked)]
#![feature(const_generics)]
#![feature(with_options)]


/// High-level abstractions for working with files.

mod filo;

D src/operations.rs => src/operations.rs +0 -2
@@ 1,2 0,0 @@
/// Functions that perform operations on a given file.


A test.sh => test.sh +3 -0
@@ 0,0 1,3 @@
#! /bin/bash
# Tests cannot be run in parallel because they use the same file.
cargo test -- --test-threads=1