Skip to content

Commit 9e16db2

Browse files
committed
chore: fmtfix
1 parent 4898153 commit 9e16db2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rust/catalyst-signed-doc-macro/src/rules/content_type.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ pub(crate) fn into_rule(
1212
content_types: &HashMap<ContentTypeTemplate, ContentTypeSpec>,
1313
field: &signed_doc_spec::content_type::ContentType,
1414
) -> anyhow::Result<TokenStream> {
15-
let is_field_empty =
16-
field.value.is_none() || field.value.as_ref().is_some_and(std::string::String::is_empty);
15+
let is_field_empty = field.value.is_none()
16+
|| field
17+
.value
18+
.as_ref()
19+
.is_some_and(std::string::String::is_empty);
1720

1821
if matches!(field.required, IsRequired::Excluded) {
1922
anyhow::ensure!(

0 commit comments

Comments
 (0)