Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit c0b8743

Browse files
committed
Rustfmt
1 parent 8668c68 commit c0b8743

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

unixfs/src/walk.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ impl Walker {
290290
UnixFsType::Raw | UnixFsType::File => {
291291
let (bytes, file_size, metadata, step) =
292292
IdleFileVisit::default().start_from_parsed(flat, cache)?;
293-
let (cid, name, depth) = next.expect("validated at new and earlier in this method");
294-
let file_continues = step.is_some();
295-
296-
let ie = match current {
297-
Some(mut ie) => {
298-
ie.as_file(cid, &name, depth, metadata, step, file_size);
293+
let (cid, name, depth) = next.expect("validated at new and earlier in this method");
294+
let file_continues = step.is_some();
295+
296+
let ie = match current {
297+
Some(mut ie) => {
298+
ie.as_file(cid, &name, depth, metadata, step, file_size);
299299
ie
300300
}
301301
_ => InnerEntry::new_root_file(cid, metadata, &name, step, file_size, depth),
302302
};
303-
303+
304304
let next = pending.pop();
305305
let segment = FileSegment::first(bytes, !file_continues);
306-
306+
307307
let state = if file_continues || next.is_some() {
308308
State::Unfinished(Self {
309309
current: Some(ie),

0 commit comments

Comments
 (0)