diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2018-08-04 12:19:25 -0400 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2018-08-04 12:19:25 -0400 |
commit | 3a2b3a8cb9ec71e07faaae59fb144151eb997fdc (patch) | |
tree | 0a224f487848e1c65868140f251f926257384815 /ipfs-api/examples/mfs.rs | |
parent | c37a49f137637c1041186143788460e5ddf28822 (diff) |
formatting
Diffstat (limited to 'ipfs-api/examples/mfs.rs')
-rw-r--r-- | ipfs-api/examples/mfs.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ipfs-api/examples/mfs.rs b/ipfs-api/examples/mfs.rs index 8bea192..2a99bea 100644 --- a/ipfs-api/examples/mfs.rs +++ b/ipfs-api/examples/mfs.rs @@ -53,22 +53,19 @@ fn main() { println!(); mkdir_recursive - }) - .and_then(|_| { + }).and_then(|_| { println!("getting status of /test/does..."); println!(); file_stat - }) - .and_then(|stat| { + }).and_then(|stat| { print_stat(stat); println!("writing source file to /test/mfs.rs"); println!(); file_write - }) - .and_then(|_| file_write_stat) + }).and_then(|_| file_write_stat) .and_then(|stat| { print_stat(stat); @@ -76,8 +73,7 @@ fn main() { println!(); file_rm - }) - .map(|_| println!("done!")) + }).map(|_| println!("done!")) .map_err(|e| eprintln!("{}", e)), ) } |