Skip to content

Commit

Permalink
lint code with rust 1.84.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedberg committed Jan 13, 2025
1 parent 52592c6 commit 0de9e70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/validation/consignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<'consignment, C: ConsignmentApi> CheckedConsignment<'consignment, C> {
pub fn new(consignment: &'consignment C) -> Self { Self(consignment) }
}

impl<'consignment, C: ConsignmentApi> ConsignmentApi for CheckedConsignment<'consignment, C> {
impl<C: ConsignmentApi> ConsignmentApi for CheckedConsignment<'_, C> {
fn schema(&self) -> &Schema { self.0.schema() }

fn types(&self) -> &TypeSystem { self.0.types() }
Expand Down
6 changes: 3 additions & 3 deletions src/vm/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ pub enum OrdOpRef<'op> {
Extension(&'op Extension, XWitnessId, WitnessOrd),
}

impl<'op> PartialOrd for OrdOpRef<'op> {
impl PartialOrd for OrdOpRef<'_> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> { Some(self.cmp(other)) }
}

impl<'op> Ord for OrdOpRef<'op> {
impl Ord for OrdOpRef<'_> {
fn cmp(&self, other: &Self) -> Ordering { self.op_ord().cmp(&other.op_ord()) }
}

impl<'op> OrdOpRef<'op> {
impl OrdOpRef<'_> {
pub fn witness_id(&self) -> Option<XWitnessId> {
match self {
OrdOpRef::Genesis(_) => None,
Expand Down

0 comments on commit 0de9e70

Please sign in to comment.