Skip to content

Commit c64249c

Browse files
committed
chore: deal with rustc 1.89 mismatched_lifetime_syntaxes warnings
1 parent 85d101a commit c64249c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

anchor-service/src/anchor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl MerkleNodes {
5757
}
5858

5959
/// Return an iterator over the MerkleNodes
60-
pub fn iter(&self) -> indexmap::map::Iter<Cid, MerkleNode> {
60+
pub fn iter(&self) -> indexmap::map::Iter<'_, Cid, MerkleNode> {
6161
self.nodes.iter()
6262
}
6363

core/src/peer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl Builder<WithExpiration> {
224224
PeerKey(format!("{:0>11}", self.state.expiration))
225225
}
226226
/// Set the peer id. Note, a NodeKey is required so the [`PeerEntry`] can be signed.
227-
pub fn with_id(self, id: &NodeKey) -> Builder<WithId> {
227+
pub fn with_id(self, id: &NodeKey) -> Builder<WithId<'_>> {
228228
Builder {
229229
state: WithId {
230230
node_key: id,

sql/src/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl SqlitePool {
192192

193193
/// Begin a transaction. The transaction must be committed by calling `commit_tx`.
194194
/// Will be rolled back on drop if not committed.
195-
pub async fn begin_tx(&self) -> Result<SqliteTransaction> {
195+
pub async fn begin_tx(&self) -> Result<SqliteTransaction<'_>> {
196196
let tx = self.writer.begin().await?;
197197
Ok(SqliteTransaction { tx })
198198
}

0 commit comments

Comments
 (0)