Skip to content

Commit

Permalink
fix(lib): elide unnecessary lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
rustaceanrob committed Jan 10, 2025
1 parent 4e712d6 commit 9b1cafe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/db/sqlite/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ impl SqliteHeaderDb {
Ok(headers)
}

async fn write<'a>(
async fn write(
&mut self,
header_chain: &'a BTreeMap<u32, Header>,
header_chain: &BTreeMap<u32, Header>,
) -> Result<(), SqlHeaderStoreError> {
let mut write_lock = self.conn.lock().await;
let tx = write_lock.transaction()?;
Expand Down Expand Up @@ -197,9 +197,9 @@ impl SqliteHeaderDb {
Ok(())
}

async fn write_over<'a>(
async fn write_over(
&mut self,
header_chain: &'a BTreeMap<u32, Header>,
header_chain: &BTreeMap<u32, Header>,
height: u32,
) -> Result<(), SqlHeaderStoreError> {
let mut write_lock = self.conn.lock().await;
Expand Down Expand Up @@ -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<Option<u32>, SqlHeaderStoreError> {
let write_lock = self.conn.lock().await;
let stmt = "SELECT height FROM headers WHERE block_hash = ?1";
Expand Down
2 changes: 1 addition & 1 deletion src/network/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9b1cafe

Please sign in to comment.