diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-28 21:37:35 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-28 21:37:35 -0400 |
commit | 8867e4e11d2649cb8459c792fa4b316bb5e97647 (patch) | |
tree | dbbc2ba745adda04903d35042871f3e36795c692 /src/history.rs | |
parent | 3a5deb92d5c0dd519146e2fd66f06255842660a3 (diff) |
cargo fmt
Diffstat (limited to 'src/history.rs')
-rw-r--r-- | src/history.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/history.rs b/src/history.rs index 3dc6687..5ae8ee2 100644 --- a/src/history.rs +++ b/src/history.rs @@ -5,7 +5,11 @@ use crate::fs::JoshutoDirList; use crate::sort; pub trait DirectoryHistory { - fn populate_to_root(&mut self, pathbuf: &PathBuf, sort_option: &sort::SortOption) -> std::io::Result<()>; + fn populate_to_root( + &mut self, + pathbuf: &PathBuf, + sort_option: &sort::SortOption, + ) -> std::io::Result<()>; fn pop_or_create( &mut self, path: &Path, @@ -22,7 +26,11 @@ pub trait DirectoryHistory { pub type JoshutoHistory = HashMap<PathBuf, JoshutoDirList>; impl DirectoryHistory for JoshutoHistory { - fn populate_to_root(&mut self, pathbuf: &PathBuf, sort_option: &sort::SortOption) -> std::io::Result<()> { + fn populate_to_root( + &mut self, + pathbuf: &PathBuf, + sort_option: &sort::SortOption, + ) -> std::io::Result<()> { let mut ancestors = pathbuf.ancestors(); match ancestors.next() { None => {} |