Skip to content

Commit 7c809fc

Browse files
committed
chore: fmtfix
1 parent 29f276e commit 7c809fc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

rust/catalyst-types/src/uuid/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ pub fn decode_cbor_uuid(val: &coset::cbor::Value) -> anyhow::Result<uuid::Uuid>
2424
.map_err(|_| anyhow::anyhow!("Invalid CBOR encoded UUID type, invalid bytes size"))?,
2525
);
2626
Ok(uuid)
27-
}
27+
}

rust/catalyst-types/src/uuid/v4.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ impl UuidV4 {
1616
const UUID_VERSION_NUMBER: usize = 4;
1717

1818
/// Generates a zeroed out `UUIDv4` that can never be valid.
19-
pub fn invalid() -> Self {
19+
#[must_use] pub fn invalid() -> Self {
2020
Self { uuid: INVALID_UUID }
2121
}
2222

2323
/// Check if this is a valid `UUIDv4`.
24-
pub fn is_valid(&self) -> bool {
24+
#[must_use] pub fn is_valid(&self) -> bool {
2525
self.uuid != INVALID_UUID && self.uuid.get_version_num() == Self::UUID_VERSION_NUMBER
2626
}
2727

@@ -64,4 +64,4 @@ impl From<uuid::Uuid> for UuidV4 {
6464
fn from(uuid: uuid::Uuid) -> Self {
6565
Self { uuid }
6666
}
67-
}
67+
}

rust/catalyst-types/src/uuid/v7.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ impl From<uuid::Uuid> for UuidV7 {
6666
fn from(uuid: uuid::Uuid) -> Self {
6767
Self { uuid }
6868
}
69-
}
69+
}

0 commit comments

Comments
 (0)