summaryrefslogtreecommitdiffstats
path: root/ipfs-cli/src/command
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-cli/src/command')
-rw-r--r--ipfs-cli/src/command/files.rs6
-rw-r--r--ipfs-cli/src/command/filestore.rs6
2 files changed, 6 insertions, 6 deletions
diff --git a/ipfs-cli/src/command/files.rs b/ipfs-cli/src/command/files.rs
index 9b109c7..d3d0d75 100644
--- a/ipfs-cli/src/command/files.rs
+++ b/ipfs-cli/src/command/files.rs
@@ -80,7 +80,7 @@ pub fn handle(core: &mut Core, client: &IpfsClient, args: &ArgMatches) {
("flush", Some(args)) => {
let path = args.value_of("PATH");
- core.run(client.files_flush(&path)).expect(EXPECTED_API);
+ core.run(client.files_flush(path)).expect(EXPECTED_API);
println!();
println!(" OK");
@@ -88,7 +88,7 @@ pub fn handle(core: &mut Core, client: &IpfsClient, args: &ArgMatches) {
}
("ls", Some(args)) => {
let path = args.value_of("PATH");
- let ls = core.run(client.files_ls(&path)).expect(EXPECTED_API);
+ let ls = core.run(client.files_ls(path)).expect(EXPECTED_API);
println!();
println!(" entries :");
@@ -124,7 +124,7 @@ pub fn handle(core: &mut Core, client: &IpfsClient, args: &ArgMatches) {
("read", Some(args)) => {
let path = args.value_of("PATH").unwrap();
let req = client
- .files_read(&path)
+ .files_read(path)
.for_each(|chunk| io::stdout().write_all(&chunk).map_err(From::from));
core.run(req).expect(EXPECTED_API);
diff --git a/ipfs-cli/src/command/filestore.rs b/ipfs-cli/src/command/filestore.rs
index c60e0ce..bf49c09 100644
--- a/ipfs-cli/src/command/filestore.rs
+++ b/ipfs-cli/src/command/filestore.rs
@@ -60,7 +60,7 @@ pub fn handle(core: &mut Core, client: &IpfsClient, args: &ArgMatches) {
("ls", Some(args)) => {
let cid = args.value_of("CID");
let req = client
- .filestore_ls(&cid)
+ .filestore_ls(cid)
.for_each(|res| print_filestore_object(&res));
println!();
@@ -70,8 +70,8 @@ pub fn handle(core: &mut Core, client: &IpfsClient, args: &ArgMatches) {
("verify", Some(args)) => {
let cid = args.value_of("CID");
let req = client
- .filestore_verify(&cid)
- .for_each(print_filestore_object);
+ .filestore_verify(cid)
+ .for_each(|obj| print_filestore_object(&obj));
println!();
core.run(req).expect(EXPECTED_API);