fn prep() -> Result<Prep, io::Error> {
        let tmp = TempDir::new()?;
        let ours = tmp.path().join("t.mkdir");
        let file = ours.join("file");
        fs::create_dir(&ours)?;
        File::create(&file)?;
        File::open(&file)?;
        Ok(Prep {
            _tmp: tmp,
            ours,
            file,
        })
    }
/// Create test setup: t.mkdir/file all in a tempdir.
Create test setup: t.mkdir/file all in a tempdir.
Create test setup : t . mkdir / file all in a tempdir .
fn prep() -> Result<Prep, io::Error> {
        let tmp = TempDir::new()?;
        let ours = tmp.path().join("t.mkdir");
        let file = ours.join("file");
        fs::create_dir(&ours)?;
        File::create(&file)?;
        File::open(&file)?;
        Ok(Prep {
            _tmp: tmp,
            ours,
            file,
        })
    }
fn prep ( ) -> Result < Prep , io :: Error > { let tmp = TempDir :: new ( ) ? ; let ours = tmp . path ( ) . join ( " " ) ; let file = ours . join ( " " ) ; fs :: create_dir ( & ours ) ? ; File :: create ( & file ) ? ; File :: open ( & file ) ? ; Ok ( Prep { _tmp : tmp , ours , file , } ) }
Create test setup: t.mkdir/file all in a tempdir.
Create test setup : t . mkdir / file all in a tempdir .