diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-22 13:30:43 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-22 13:30:43 +0800 |
commit | ba7b071af53444cf33ed6a11aae02b34bc26c82b (patch) | |
tree | b840ff9b593db991d5054f195a952b704623a975 /src | |
parent | 5b522946adb5bb71dd51068eee5f1136e6403b31 (diff) |
cargo fmt
Diffstat (limited to 'src')
-rw-r--r-- | src/aggregate.rs | 2 | ||||
-rw-r--r-- | src/inodefilter.rs | 5 | ||||
-rw-r--r-- | src/traverse.rs | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/aggregate.rs b/src/aggregate.rs index b847de5..28a3ccd 100644 --- a/src/aggregate.rs +++ b/src/aggregate.rs @@ -1,4 +1,4 @@ -use crate::{WalkOptions, WalkResult, InodeFilter}; +use crate::{InodeFilter, WalkOptions, WalkResult}; use failure::Error; use std::borrow::Cow; use std::{fmt, io, path::Path}; diff --git a/src/inodefilter.rs b/src/inodefilter.rs index 6db12e1..1523f1c 100644 --- a/src/inodefilter.rs +++ b/src/inodefilter.rs @@ -1,11 +1,10 @@ - #![cfg_attr(windows, feature(windows_by_handle))] use std::collections::HashMap; #[derive(Debug, Default, Clone)] pub struct InodeFilter { - inner: HashMap<u64, u64> + inner: HashMap<u64, u64>, } impl InodeFilter { @@ -46,7 +45,7 @@ impl InodeFilter { } false - }, + } None => { self.inner.insert(inode, nlinks - 1); true diff --git a/src/traverse.rs b/src/traverse.rs index 6e866c2..13b1623 100644 --- a/src/traverse.rs +++ b/src/traverse.rs @@ -1,4 +1,4 @@ -use crate::{get_size_or_panic, WalkOptions, InodeFilter}; +use crate::{get_size_or_panic, InodeFilter, WalkOptions}; use failure::Error; use petgraph::{graph::NodeIndex, stable_graph::StableGraph, Directed, Direction}; use std::{ffi::OsString, path::PathBuf, time::Duration, time::Instant}; |