Skip to content

Commit 79ea227

Browse files
committed
chore: PR feedback
1 parent 5fbe0af commit 79ea227

File tree

3 files changed

+2
-3
lines changed
  • clarity/src/vm/analysis/type_checker/v2_1/tests
  • stacks-common/src/types
  • stackslib/src/chainstate/stacks/db

3 files changed

+2
-3
lines changed

clarity/src/vm/analysis/type_checker/v2_1/tests/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pub mod contracts;
4848

4949
/// Backwards-compatibility shim for type_checker tests. Runs at latest Clarity version.
5050
pub fn mem_type_check(exp: &str) -> CheckResult<(Option<TypeSignature>, ContractAnalysis)> {
51-
// TODO (question for reviewers): This uses Clarity 3 with Epoch 2.1. Is this a problem?
5251
mem_run_analysis(
5352
exp,
5453
crate::vm::ClarityVersion::latest(),

stacks-common/src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl CoinbaseInterval {
215215
intervals: &[CoinbaseInterval],
216216
effective_height: u64,
217217
) -> u128 {
218-
if intervals.len() == 0 {
218+
if intervals.is_empty() {
219219
return 0;
220220
}
221221
if intervals.len() == 1 {

stackslib/src/chainstate/stacks/db/blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4109,7 +4109,7 @@ impl StacksChainState {
41094109
current_epoch = StacksEpochId::Epoch31;
41104110
}
41114111
StacksEpochId::Epoch31 => {
4112-
panic!("No defined transition from Epoch30 forward")
4112+
panic!("No defined transition from Epoch31 forward")
41134113
}
41144114
}
41154115
}

0 commit comments

Comments
 (0)