Skip to content

Commit 4f3cf70

Browse files
committed
non-functional: run latest rustfmt
Signed-off-by: Nick Stevens <[email protected]>
1 parent b3947b4 commit 4f3cf70

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
1414
extern crate walkdir;
1515

16+
use std::cmp::Ordering;
1617
use std::fs::File;
1718
use std::io::prelude::*;
1819
use std::path::Path;
19-
use std::cmp::Ordering;
2020

2121
use walkdir::{DirEntry, WalkDir};
2222

@@ -45,7 +45,8 @@ pub fn is_different<A: AsRef<Path>, B: AsRef<Path>>(a_base: A, b_base: B) -> Res
4545
let a = a?;
4646
let b = b?;
4747

48-
if a.depth() != b.depth() || a.file_type() != b.file_type()
48+
if a.depth() != b.depth()
49+
|| a.file_type() != b.file_type()
4950
|| a.file_name() != b.file_name()
5051
|| (a.file_type().is_file() && read_to_vec(a.path())? != read_to_vec(b.path())?)
5152
{

tests/smoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
extern crate dir_diff;
22

3-
use std::path::Path;
43
use std::fs::create_dir;
54
use std::io::ErrorKind;
5+
use std::path::Path;
66

77
#[test]
88
fn easy_good() {

0 commit comments

Comments
 (0)