Skip to content

Commit

Permalink
Clippy update (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
tirix authored Oct 18, 2023
1 parent cf25861 commit c9aea15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/nameck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ impl Nameset {
#[must_use]
pub fn lookup_label(&self, label: TokenPtr<'_>) -> Option<LookupLabel> {
self.labels.get(label).and_then(|lslot| {
lslot.labels.first().map(|&(addr, _)| LookupLabel {
lslot.labels.first().map(|&(addr, ())| LookupLabel {
atom: lslot.atom,
address: addr,
})
Expand All @@ -358,7 +358,7 @@ impl Nameset {
stype,
atom: syminfo.atom,
address: addr,
const_address: syminfo.constant.first().map(|&(addr, _)| addr),
const_address: syminfo.constant.first().map(|&(addr, ())| addr),
})
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ impl ProofBuilder for () {
type Item = ();
type Accum = ();

fn push(&mut self, _: &mut (), _: ()) {}
fn push(&mut self, _: &mut (), (): ()) {}

fn build(&mut self, _: StatementAddress, _: (), _: &[u8], _: Range<usize>) {}
fn build(&mut self, _: StatementAddress, (): (), _: &[u8], _: Range<usize>) {}
}

/// Working memory used by the verifier on a segment. This expands for the
Expand Down

0 comments on commit c9aea15

Please sign in to comment.