diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2017-12-30 20:07:29 -0500 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2017-12-30 20:07:29 -0500 |
commit | 06a3776548b8c81226ef61715e5a2e98e29799c9 (patch) | |
tree | 2b9ad5ea6b7e82b3fa9eb1bb17305957f2038b9b /ipfs-cli/src/command/block.rs | |
parent | 59cf5824d43b4df1054bb633a4fe1c3cb8602c42 (diff) |
clippy and formatting
Diffstat (limited to 'ipfs-cli/src/command/block.rs')
-rw-r--r-- | ipfs-cli/src/command/block.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ipfs-cli/src/command/block.rs b/ipfs-cli/src/command/block.rs index 24fa4eb..09bc660 100644 --- a/ipfs-cli/src/command/block.rs +++ b/ipfs-cli/src/command/block.rs @@ -54,30 +54,30 @@ pub fn handle(core: &mut Core, client: &IpfsClient, args: &ArgMatches) { let file = File::open(path).expect(EXPECTED_FILE); let block = core.run(client.block_put(file)).expect(EXPECTED_API); - println!(""); + println!(); println!(" key : {}", block.key); println!(" size : {}", block.size); - println!(""); + println!(); } ("rm", Some(args)) => { let key = args.value_of("KEY").unwrap(); let rm = core.run(client.block_rm(key)).expect(EXPECTED_API); - println!(""); + println!(); println!(" hash : {}", rm.hash); if let Some(error) = rm.error { println!(" error : {}", error); } - println!(""); + println!(); } ("stat", Some(args)) => { let key = args.value_of("KEY").unwrap(); let stat = core.run(client.block_stat(key)).expect(EXPECTED_API); - println!(""); + println!(); println!(" key : {}", stat.key); println!(" size : {}", stat.size); - println!(""); + println!(); } _ => unreachable!(), } |