Skip to content

Commit d3ff2c1

Browse files
committed
fix: New warnings in Rust 1.83
1 parent b108d09 commit d3ff2c1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

clarity/src/vm/contexts.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ impl EventBatch {
499499

500500
impl<'a, 'hooks> OwnedEnvironment<'a, 'hooks> {
501501
#[cfg(any(test, feature = "testing"))]
502-
pub fn new(database: ClarityDatabase<'a>, epoch: StacksEpochId) -> OwnedEnvironment<'a, '_> {
502+
pub fn new(database: ClarityDatabase<'a>, epoch: StacksEpochId) -> OwnedEnvironment<'a, 'a> {
503503
OwnedEnvironment {
504504
context: GlobalContext::new(
505505
false,
@@ -513,7 +513,7 @@ impl<'a, 'hooks> OwnedEnvironment<'a, 'hooks> {
513513
}
514514

515515
#[cfg(any(test, feature = "testing"))]
516-
pub fn new_toplevel(mut database: ClarityDatabase<'a>) -> OwnedEnvironment<'a, '_> {
516+
pub fn new_toplevel(mut database: ClarityDatabase<'a>) -> OwnedEnvironment<'a, 'a> {
517517
database.begin();
518518
let epoch = database.get_clarity_epoch_version().unwrap();
519519
let version = ClarityVersion::default_for_epoch(epoch);
@@ -540,7 +540,7 @@ impl<'a, 'hooks> OwnedEnvironment<'a, 'hooks> {
540540
mut database: ClarityDatabase<'a>,
541541
epoch: StacksEpochId,
542542
use_mainnet: bool,
543-
) -> OwnedEnvironment<'a, '_> {
543+
) -> OwnedEnvironment<'a, 'a> {
544544
use crate::vm::tests::test_only_mainnet_to_chain_id;
545545
let cost_track = LimitedCostTracker::new_max_limit(&mut database, epoch, use_mainnet)
546546
.expect("FAIL: problem instantiating cost tracking");
@@ -557,7 +557,7 @@ impl<'a, 'hooks> OwnedEnvironment<'a, 'hooks> {
557557
chain_id: u32,
558558
database: ClarityDatabase<'a>,
559559
epoch_id: StacksEpochId,
560-
) -> OwnedEnvironment<'a, '_> {
560+
) -> OwnedEnvironment<'a, 'a> {
561561
OwnedEnvironment {
562562
context: GlobalContext::new(
563563
mainnet,
@@ -576,7 +576,7 @@ impl<'a, 'hooks> OwnedEnvironment<'a, 'hooks> {
576576
database: ClarityDatabase<'a>,
577577
cost_tracker: LimitedCostTracker,
578578
epoch_id: StacksEpochId,
579-
) -> OwnedEnvironment<'a, '_> {
579+
) -> OwnedEnvironment<'a, 'a> {
580580
OwnedEnvironment {
581581
context: GlobalContext::new(mainnet, chain_id, database, cost_tracker, epoch_id),
582582
call_stack: CallStack::new(),
@@ -1546,7 +1546,7 @@ impl<'a, 'hooks> GlobalContext<'a, 'hooks> {
15461546
database: ClarityDatabase<'a>,
15471547
cost_track: LimitedCostTracker,
15481548
epoch_id: StacksEpochId,
1549-
) -> GlobalContext {
1549+
) -> GlobalContext<'a, 'hooks> {
15501550
GlobalContext {
15511551
database,
15521552
cost_track,

clarity/src/vm/database/key_value_wrapper.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ where
205205
}
206206

207207
impl<'a> RollbackWrapper<'a> {
208-
pub fn new(store: &'a mut dyn ClarityBackingStore) -> RollbackWrapper {
208+
pub fn new(store: &'a mut dyn ClarityBackingStore) -> RollbackWrapper<'a> {
209209
RollbackWrapper {
210210
store,
211211
lookup_map: HashMap::new(),
@@ -218,7 +218,7 @@ impl<'a> RollbackWrapper<'a> {
218218
pub fn from_persisted_log(
219219
store: &'a mut dyn ClarityBackingStore,
220220
log: RollbackWrapperPersistedLog,
221-
) -> RollbackWrapper {
221+
) -> RollbackWrapper<'a> {
222222
RollbackWrapper {
223223
store,
224224
lookup_map: log.lookup_map,

stackslib/src/net/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ impl NakamotoBootPlan {
355355
fn boot_nakamoto_peers<'a>(
356356
mut self,
357357
observer: Option<&'a TestEventObserver>,
358-
) -> (TestPeer<'a>, Vec<TestPeer>) {
358+
) -> (TestPeer<'a>, Vec<TestPeer<'a>>) {
359359
let mut peer_config = TestPeerConfig::new(&self.test_name, 0, 0);
360360
peer_config.network_id = self.network_id;
361361
peer_config.private_key = self.private_key.clone();
@@ -666,7 +666,7 @@ impl NakamotoBootPlan {
666666
self,
667667
boot_plan: Vec<NakamotoBootTenure>,
668668
observer: Option<&'a TestEventObserver>,
669-
) -> (TestPeer<'a>, Vec<TestPeer>) {
669+
) -> (TestPeer<'a>, Vec<TestPeer<'a>>) {
670670
let test_signers = self.test_signers.clone();
671671
let pox_constants = self.pox_constants.clone();
672672
let test_stackers = self.test_stackers.clone();

0 commit comments

Comments
 (0)