Skip to content

Commit

Permalink
fmt and clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Apr 9, 2024
1 parent f6ec179 commit 57aaea3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions sway-core/src/type_system/substitute/subst_types.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use crate::{engine_threading::*, type_system::priv_prelude::*};

#[derive(Default)]
pub enum HasChanges {
Yes,
#[default]
No,
}

Expand All @@ -11,12 +13,6 @@ impl HasChanges {
}
}

impl Default for HasChanges {
fn default() -> Self {
HasChanges::No
}
}

impl std::ops::BitOr for HasChanges {
type Output = HasChanges;

Expand Down Expand Up @@ -71,7 +67,7 @@ impl<T: SubstTypes> SubstTypes for Vec<T> {
#[macro_export]
macro_rules! has_changes {
($($stmts:expr);* ;) => {{
let mut has_change = crate::type_system::HasChanges::No;
let mut has_change = $crate::type_system::HasChanges::No;
$(
has_change = $stmts | has_change;
)*
Expand Down

0 comments on commit 57aaea3

Please sign in to comment.