File tree Expand file tree Collapse file tree 9 files changed +15
-15
lines changed Expand file tree Collapse file tree 9 files changed +15
-15
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 @@ -615,7 +615,7 @@ impl EventObserver {
615
615
fn make_new_block_txs_payload (
616
616
receipt : & StacksTransactionReceipt ,
617
617
tx_index : u32 ,
618
- ) -> TransactionEventPayload {
618
+ ) -> TransactionEventPayload < ' _ > {
619
619
let tx = & receipt. transaction ;
620
620
621
621
let status = match ( receipt. post_condition_aborted , & receipt. result ) {
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ impl DerefMut for NakamotoStagingBlocksConn {
184
184
}
185
185
186
186
impl NakamotoStagingBlocksConn {
187
- pub fn conn ( & self ) -> NakamotoStagingBlocksConnRef {
187
+ pub fn conn ( & self ) -> NakamotoStagingBlocksConnRef < ' _ > {
188
188
NakamotoStagingBlocksConnRef ( & self . 0 )
189
189
}
190
190
}
@@ -211,7 +211,7 @@ impl NakamotoStagingBlocksTx<'_> {
211
211
self . 0 . commit ( )
212
212
}
213
213
214
- pub fn conn ( & self ) -> NakamotoStagingBlocksConnRef {
214
+ pub fn conn ( & self ) -> NakamotoStagingBlocksConnRef < ' _ > {
215
215
NakamotoStagingBlocksConnRef ( self . 0 . deref ( ) )
216
216
}
217
217
}
@@ -746,7 +746,7 @@ impl StacksChainState {
746
746
}
747
747
748
748
/// Get a ref to the nakamoto staging blocks connection
749
- pub fn nakamoto_blocks_db ( & self ) -> NakamotoStagingBlocksConnRef {
749
+ pub fn nakamoto_blocks_db ( & self ) -> NakamotoStagingBlocksConnRef < ' _ > {
750
750
NakamotoStagingBlocksConnRef ( & self . nakamoto_staging_blocks_conn )
751
751
}
752
752
Original file line number Diff line number Diff line change @@ -1707,7 +1707,7 @@ impl<'a> ClarityBlockConnection<'a, '_> {
1707
1707
} )
1708
1708
}
1709
1709
1710
- pub fn start_transaction_processing ( & mut self ) -> ClarityTransactionConnection {
1710
+ pub fn start_transaction_processing ( & mut self ) -> ClarityTransactionConnection < ' _ , ' _ > {
1711
1711
ClarityTransactionConnection :: new (
1712
1712
& mut self . datastore ,
1713
1713
self . header_db ,
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ macro_rules! impl_byte_array_from_column {
334
334
}
335
335
336
336
impl rusqlite:: types:: ToSql for $thing {
337
- fn to_sql( & self ) -> rusqlite:: Result <rusqlite:: types:: ToSqlOutput > {
337
+ fn to_sql( & self ) -> rusqlite:: Result <rusqlite:: types:: ToSqlOutput < ' _> > {
338
338
let hex_str = self . to_hex( ) ;
339
339
Ok ( hex_str. into( ) )
340
340
}
You can’t perform that action at this time.
0 commit comments