diff options
Diffstat (limited to 'ipfs-cli/src/command/files.rs')
-rw-r--r-- | ipfs-cli/src/command/files.rs | 6 |
1 files changed, 3 insertions, 3 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); |