Skip to content

Commit

Permalink
Add lifetime param to make linting happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunicorn committed Jun 28, 2024
1 parent 0a38cdf commit f866810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/matrix-sdk/src/http_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl MaybeSemaphore {
MaybeSemaphore(Arc::new(inner))
}

async fn acquire(&self) -> MaybeSemaphorePermit {
async fn acquire(&self) -> MaybeSemaphorePermit<'_> {
match self.0.as_ref() {
Some(inner) => {
// ignoring errors as we never close this
Expand Down

0 comments on commit f866810

Please sign in to comment.