Skip to content

Commit

Permalink
Make CI shut up about temporarily unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
arik-so committed Mar 10, 2024
1 parent 5b694a0 commit d54c7f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1142,13 +1142,13 @@ impl Index {

pub(crate) fn get_parents_by_sequence_number_paginated(
&self,
sequence_number: u32,
page_size: usize,
page_index: usize,
_sequence_number: u32,
_page_size: usize,
_page_index: usize,
) -> Result<(Vec<InscriptionId>, bool)> {
let rtx = self.database.begin_read()?;

let sequence_number_to_entry = rtx.open_table(SEQUENCE_NUMBER_TO_INSCRIPTION_ENTRY)?;
let _sequence_number_to_entry = rtx.open_table(SEQUENCE_NUMBER_TO_INSCRIPTION_ENTRY)?;

// TODO
Ok((Vec::new(), false))
Expand Down
10 changes: 4 additions & 6 deletions src/wallet/inscribe/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,10 @@ impl Batch {
change: [Address; 2],
) -> Result<(Transaction, Transaction, TweakedKeyPair, u64)> {
if let Some(parent_info) = &self.parent_info {
assert!(self.inscriptions.iter().all(|inscription| inscription
.parents()
.first()
.unwrap()
.clone()
== parent_info.id))
assert!(self
.inscriptions
.iter()
.all(|inscription| { *inscription.parents().first().unwrap() == parent_info.id }))
}

match self.mode {
Expand Down

0 comments on commit d54c7f7

Please sign in to comment.