diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2020-11-01 19:34:52 -0500 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2020-11-01 19:34:52 -0500 |
commit | 4e3f9e3cc1969828821eedd95b2ae17d789f9191 (patch) | |
tree | 4a57002137f4f7b31e95b32008df25adaed89863 /ipfs-api/src/client/internal.rs | |
parent | c2b10b69472bf9fdd5ac74865dcb2f667a159c57 (diff) |
formatting
Diffstat (limited to 'ipfs-api/src/client/internal.rs')
-rw-r--r-- | ipfs-api/src/client/internal.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ipfs-api/src/client/internal.rs b/ipfs-api/src/client/internal.rs index 1b544ee..2b1f62f 100644 --- a/ipfs-api/src/client/internal.rs +++ b/ipfs-api/src/client/internal.rs @@ -1947,10 +1947,14 @@ impl IpfsClient { /// #[inline] pub async fn ls(&self, path: &str) -> Result<response::LsResponse, Error> { - self.request(request::Ls { - path: path, - .. Default::default() - }, None).await + self.request( + request::Ls { + path: path, + ..Default::default() + }, + None, + ) + .await } /// List the contents of an Ipfs multihash. @@ -1976,7 +1980,7 @@ impl IpfsClient { #[inline] pub async fn ls_with_options( &self, - options: request::Ls<'_> + options: request::Ls<'_>, ) -> impl Stream<Item = Result<response::LsResponse, Error>> { impl_stream_api_response! { (self, options, None) => request_stream_json |