Skip to content

Commit 8b06f9e

Browse files
committed
refactor: reduce verbosity
1 parent 4e6f084 commit 8b06f9e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/one_file_system.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,15 @@ use which::which;
5050
fn same_device_on_sample_workspace() {
5151
let workspace = SampleWorkspace::default();
5252

53-
let build_tree = |device_boundary: DeviceBoundary| -> DataTree<OsStringDisplay, Bytes> {
54-
FsTreeBuilder {
53+
let build_tree = |device_boundary: DeviceBoundary| {
54+
DataTree::from(FsTreeBuilder {
5555
root: workspace.to_path_buf(),
5656
size_getter: GetApparentSize,
5757
hardlinks_recorder: &HardlinkIgnorant,
5858
reporter: &ErrorOnlyReporter::new(ErrorReport::SILENT),
5959
device_boundary,
6060
max_depth: 10,
61-
}
62-
.into()
61+
})
6362
};
6463

6564
let cross = DeviceBoundary::Cross

0 commit comments

Comments
 (0)