File tree Expand file tree Collapse file tree 14 files changed +22
-22
lines changed
deps_common/bitcoin/blockdata Expand file tree Collapse file tree 14 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ impl TypingContext<'_> {
104
104
}
105
105
}
106
106
107
- pub fn extend ( & self ) -> CheckResult < TypingContext > {
107
+ pub fn extend ( & self ) -> CheckResult < TypingContext < ' _ > > {
108
108
if self . depth >= MAX_CONTEXT_DEPTH {
109
109
Err ( CheckError :: new ( CheckErrors :: MaxContextDepthReached ) )
110
110
} else {
Original file line number Diff line number Diff line change @@ -1875,7 +1875,7 @@ impl<'a> LocalContext<'a> {
1875
1875
self . depth
1876
1876
}
1877
1877
1878
- pub fn function_context ( & self ) -> & LocalContext {
1878
+ pub fn function_context ( & self ) -> & LocalContext < ' _ > {
1879
1879
match self . function_context {
1880
1880
Some ( context) => context,
1881
1881
None => self ,
Original file line number Diff line number Diff line change @@ -187,11 +187,11 @@ impl NullBackingStore {
187
187
NullBackingStore { }
188
188
}
189
189
190
- pub fn as_clarity_db ( & mut self ) -> ClarityDatabase {
190
+ pub fn as_clarity_db ( & mut self ) -> ClarityDatabase < ' _ > {
191
191
ClarityDatabase :: new ( self , & NULL_HEADER_DB , & NULL_BURN_STATE_DB )
192
192
}
193
193
194
- pub fn as_analysis_db ( & mut self ) -> AnalysisDatabase {
194
+ pub fn as_analysis_db ( & mut self ) -> AnalysisDatabase < ' _ > {
195
195
AnalysisDatabase :: new ( self )
196
196
}
197
197
}
Original file line number Diff line number Diff line change @@ -302,11 +302,11 @@ impl MemoryBackingStore {
302
302
memory_marf
303
303
}
304
304
305
- pub fn as_clarity_db ( & mut self ) -> ClarityDatabase {
305
+ pub fn as_clarity_db ( & mut self ) -> ClarityDatabase < ' _ > {
306
306
ClarityDatabase :: new ( self , & NULL_HEADER_DB , & NULL_BURN_STATE_DB )
307
307
}
308
308
309
- pub fn as_analysis_db ( & mut self ) -> AnalysisDatabase {
309
+ pub fn as_analysis_db ( & mut self ) -> AnalysisDatabase < ' _ > {
310
310
AnalysisDatabase :: new ( self )
311
311
}
312
312
}
@@ -405,7 +405,7 @@ impl ClarityBackingStore for MemoryBackingStore {
405
405
}
406
406
407
407
impl ToSql for ExecutionCost {
408
- fn to_sql ( & self ) -> rusqlite:: Result < ToSqlOutput > {
408
+ fn to_sql ( & self ) -> rusqlite:: Result < ToSqlOutput < ' _ > > {
409
409
let val = serde_json:: to_string ( self )
410
410
. map_err ( |e| rusqlite:: Error :: ToSqlConversionFailure ( Box :: new ( e) ) ) ?;
411
411
Ok ( ToSqlOutput :: from ( val) )
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ pub fn tl_env_factory() -> TopLevelMemoryEnvironmentGenerator {
171
171
172
172
pub struct MemoryEnvironmentGenerator ( MemoryBackingStore ) ;
173
173
impl MemoryEnvironmentGenerator {
174
- fn get_env ( & mut self , epoch : StacksEpochId ) -> OwnedEnvironment {
174
+ fn get_env ( & mut self , epoch : StacksEpochId ) -> OwnedEnvironment < ' _ , ' _ > {
175
175
let mut db = self . 0 . as_clarity_db ( ) ;
176
176
db. begin ( ) ;
177
177
db. set_clarity_epoch_version ( epoch) . unwrap ( ) ;
@@ -190,7 +190,7 @@ impl MemoryEnvironmentGenerator {
190
190
191
191
pub struct TopLevelMemoryEnvironmentGenerator ( MemoryBackingStore ) ;
192
192
impl TopLevelMemoryEnvironmentGenerator {
193
- pub fn get_env ( & mut self , epoch : StacksEpochId ) -> OwnedEnvironment {
193
+ pub fn get_env ( & mut self , epoch : StacksEpochId ) -> OwnedEnvironment < ' _ , ' _ > {
194
194
let mut db = self . 0 . as_clarity_db ( ) ;
195
195
db. begin ( ) ;
196
196
db. set_clarity_epoch_version ( epoch) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ impl<const MAX_SIZE: u16> BitVec<MAX_SIZE> {
171
171
Ok ( bitvec)
172
172
}
173
173
174
- pub fn iter ( & self ) -> BitVecIter < MAX_SIZE > {
174
+ pub fn iter ( & self ) -> BitVecIter < ' _ , MAX_SIZE > {
175
175
let byte = self . data . first ( ) ;
176
176
BitVecIter {
177
177
index : 0 ,
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ impl Script {
385
385
/// opcodes, datapushes and errors. At most one error will be returned and then the
386
386
/// iterator will end. To instead iterate over the script as sequence of bytes, treat
387
387
/// 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 < ' _ > {
389
389
Instructions {
390
390
data : & self . 0 [ ..] ,
391
391
enforce_minimal,
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ impl FromSql for Sha256dHash {
36
36
}
37
37
38
38
impl ToSql for Sha256dHash {
39
- fn to_sql ( & self ) -> rusqlite:: Result < ToSqlOutput > {
39
+ fn to_sql ( & self ) -> rusqlite:: Result < ToSqlOutput < ' _ > > {
40
40
let hex_str = self . be_hex_string ( ) ;
41
41
Ok ( hex_str. into ( ) )
42
42
}
43
43
}
44
44
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 < ' _ > > {
47
47
let addr_str = self . to_string ( ) ;
48
48
Ok ( addr_str. into ( ) )
49
49
}
Original file line number Diff line number Diff line change @@ -749,7 +749,7 @@ macro_rules! impl_byte_array_rusqlite_only {
749
749
}
750
750
751
751
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 < ' _> > {
753
753
let hex_str = self . to_hex( ) ;
754
754
Ok ( hex_str. into( ) )
755
755
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ impl Eq for VRFPublicKey {}
68
68
69
69
impl PartialOrd for VRFPublicKey {
70
70
fn partial_cmp ( & self , other : & VRFPublicKey ) -> Option < Ordering > {
71
- Some ( self . as_bytes ( ) . to_vec ( ) . cmp ( & other. as_bytes ( ) . to_vec ( ) ) )
71
+ Some ( self . cmp ( other) )
72
72
}
73
73
}
74
74
You can’t perform that action at this time.
0 commit comments