Skip to content

Commit

Permalink
Lifetime elision is possible here
Browse files Browse the repository at this point in the history
  • Loading branch information
faassen committed Oct 13, 2022
1 parent fe7ef9d commit d3fb9b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions iroh-api/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ pub trait Api {
/// Produces a asynchronous stream of file descriptions Each description is
/// a tuple of a relative path, and either a `Directory` or a `Reader`
/// with the file contents.
fn get_stream<'a>(
&'a self,
ipfs_path: &'a IpfsPath,
fn get_stream(
&self,
ipfs_path: &IpfsPath,
) -> LocalBoxStream<'_, Result<(RelativePathBuf, OutType)>>;
fn add<'a>(
&'a self,
Expand Down Expand Up @@ -93,9 +93,9 @@ impl Api for Iroh {
Ok(ClientP2p::new(p2p_client.clone()))
}

fn get_stream<'a>(
&'a self,
ipfs_path: &'a IpfsPath,
fn get_stream(
&self,
ipfs_path: &IpfsPath,
) -> LocalBoxStream<'_, Result<(RelativePathBuf, OutType)>> {
tracing::debug!("get {:?}", ipfs_path);
let resolver = iroh_resolver::resolver::Resolver::new(self.client.clone());
Expand Down

0 comments on commit d3fb9b4

Please sign in to comment.