Fixed tests

This commit is contained in:
Mikayla Maki 2022-10-17 14:53:52 -07:00
parent f473eadf2d
commit 1789dfb8b1
6 changed files with 25 additions and 18 deletions

View file

@ -13,6 +13,7 @@ use smol::io::{AsyncReadExt, AsyncWriteExt};
use std::borrow::Cow;
use std::cmp;
use std::io::Write;
use std::ops::Deref;
use std::sync::Arc;
use std::{
io,
@ -95,6 +96,14 @@ impl LineEnding {
pub struct HomeDir(pub PathBuf);
impl Deref for HomeDir {
type Target = PathBuf;
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[async_trait::async_trait]
pub trait Fs: Send + Sync {
async fn create_dir(&self, path: &Path) -> Result<()>;