diff --git a/src/db/sqlite/headers.rs b/src/db/sqlite/headers.rs index 9545f87..0d754d4 100644 --- a/src/db/sqlite/headers.rs +++ b/src/db/sqlite/headers.rs @@ -160,9 +160,9 @@ impl SqliteHeaderDb { Ok(headers) } - async fn write<'a>( + async fn write( &mut self, - header_chain: &'a BTreeMap, + header_chain: &BTreeMap, ) -> Result<(), SqlHeaderStoreError> { let mut write_lock = self.conn.lock().await; let tx = write_lock.transaction()?; @@ -197,9 +197,9 @@ impl SqliteHeaderDb { Ok(()) } - async fn write_over<'a>( + async fn write_over( &mut self, - header_chain: &'a BTreeMap, + header_chain: &BTreeMap, height: u32, ) -> Result<(), SqlHeaderStoreError> { let mut write_lock = self.conn.lock().await; @@ -233,9 +233,9 @@ impl SqliteHeaderDb { Ok(()) } - async fn height_of<'a>( + async fn height_of( &mut self, - block_hash: &'a BlockHash, + block_hash: &BlockHash, ) -> Result, SqlHeaderStoreError> { let write_lock = self.conn.lock().await; let stmt = "SELECT height FROM headers WHERE block_hash = ?1"; diff --git a/src/network/dns.rs b/src/network/dns.rs index afc6188..2a57526 100644 --- a/src/network/dns.rs +++ b/src/network/dns.rs @@ -64,7 +64,7 @@ pub(crate) struct Dns<'a> { seeds: Vec<&'a str>, } -impl<'a> Dns<'a> { +impl Dns<'_> { #[cfg(feature = "dns")] pub fn new(network: Network) -> Self { let seeds = match network {