We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4898153 commit 9e16db2Copy full SHA for 9e16db2
rust/catalyst-signed-doc-macro/src/rules/content_type.rs
@@ -12,8 +12,11 @@ pub(crate) fn into_rule(
12
content_types: &HashMap<ContentTypeTemplate, ContentTypeSpec>,
13
field: &signed_doc_spec::content_type::ContentType,
14
) -> 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);
+ let is_field_empty = field.value.is_none()
+ || field
17
+ .value
18
+ .as_ref()
19
+ .is_some_and(std::string::String::is_empty);
20
21
if matches!(field.required, IsRequired::Excluded) {
22
anyhow::ensure!(
0 commit comments