Skip to content

Commit 63a624f

Browse files
cleanup
1 parent 5e282d6 commit 63a624f

File tree

1 file changed

+1
-35
lines changed
  • crates/iota-sdk-types/src/type_tag

1 file changed

+1
-35
lines changed

crates/iota-sdk-types/src/type_tag/mod.rs

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -144,41 +144,7 @@ impl TypeTag {
144144
Self::Signer
145145
}
146146

147-
pub fn is_u8(&self) -> bool {
148-
matches!(self, Self::U8)
149-
}
150-
151-
pub fn is_u16(&self) -> bool {
152-
matches!(self, Self::U16)
153-
}
154-
155-
pub fn is_u32(&self) -> bool {
156-
matches!(self, Self::U32)
157-
}
158-
159-
pub fn is_u64(&self) -> bool {
160-
matches!(self, Self::U64)
161-
}
162-
163-
pub fn is_u128(&self) -> bool {
164-
matches!(self, Self::U128)
165-
}
166-
167-
pub fn is_u256(&self) -> bool {
168-
matches!(self, Self::U256)
169-
}
170-
171-
pub fn is_bool(&self) -> bool {
172-
matches!(self, Self::Bool)
173-
}
174-
175-
pub fn is_address(&self) -> bool {
176-
matches!(self, Self::Address)
177-
}
178-
179-
pub fn is_signer(&self) -> bool {
180-
matches!(self, Self::Signer)
181-
}
147+
crate::def_is!(U8, U16, U32, U64, U128, U256, Bool, Address, Signer);
182148

183149
pub fn is_vector(&self) -> bool {
184150
matches!(self, Self::Vector(_))

0 commit comments

Comments
 (0)