Skip to content

Commit 62e03d0

Browse files
committed
fix: clippy 'mismatched-lifetime-syntaxes'
1 parent 762e44b commit 62e03d0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

stacks-common/src/bitvec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<const MAX_SIZE: u16> BitVec<MAX_SIZE> {
171171
Ok(bitvec)
172172
}
173173

174-
pub fn iter(&self) -> BitVecIter<MAX_SIZE> {
174+
pub fn iter(&self) -> BitVecIter<'_, MAX_SIZE> {
175175
let byte = self.data.first();
176176
BitVecIter {
177177
index: 0,

stacks-common/src/deps_common/bitcoin/blockdata/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ impl Script {
385385
/// opcodes, datapushes and errors. At most one error will be returned and then the
386386
/// iterator will end. To instead iterate over the script as sequence of bytes, treat
387387
/// it as a slice using `script[..]` or convert it to a vector using `into_bytes()`.
388-
pub fn iter(&self, enforce_minimal: bool) -> Instructions {
388+
pub fn iter(&self, enforce_minimal: bool) -> Instructions<'_> {
389389
Instructions {
390390
data: &self.0[..],
391391
enforce_minimal,

stacks-common/src/types/sqlite.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ impl FromSql for Sha256dHash {
3636
}
3737

3838
impl ToSql for Sha256dHash {
39-
fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
39+
fn to_sql(&self) -> rusqlite::Result<ToSqlOutput<'_>> {
4040
let hex_str = self.be_hex_string();
4141
Ok(hex_str.into())
4242
}
4343
}
4444

45-
impl rusqlite::types::ToSql for StacksAddress {
46-
fn to_sql(&self) -> rusqlite::Result<rusqlite::types::ToSqlOutput> {
45+
impl ToSql for StacksAddress {
46+
fn to_sql(&self) -> rusqlite::Result<ToSqlOutput<'_>> {
4747
let addr_str = self.to_string();
4848
Ok(addr_str.into())
4949
}

stacks-common/src/util/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ macro_rules! impl_byte_array_rusqlite_only {
749749
}
750750

751751
impl rusqlite::types::ToSql for $thing {
752-
fn to_sql(&self) -> rusqlite::Result<rusqlite::types::ToSqlOutput> {
752+
fn to_sql(&self) -> rusqlite::Result<rusqlite::types::ToSqlOutput<'_>> {
753753
let hex_str = self.to_hex();
754754
Ok(hex_str.into())
755755
}

0 commit comments

Comments
 (0)