Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Jan 3, 2024
1 parent ee02227 commit d24f560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metamath-rs/src/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ impl<'a> StatementRef<'a> {
pub fn use_iter(&self) -> UseIter<'a> {
let spans = self.proof_spans();
let mut iter = spans.iter();
if spans.get(0).map(|sp| sp.as_ref(&self.segment.buffer)) == Some(b"(") {
if spans.first().map(|sp| sp.as_ref(&self.segment.buffer)) == Some(b"(") {
iter.next();
}
UseIter {
Expand Down
2 changes: 1 addition & 1 deletion metamath-rs/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ 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>) {}
}
Expand Down

0 comments on commit d24f560

Please sign in to comment.