diff --git a/rust/signed_doc/src/metadata/content_type.rs b/rust/signed_doc/src/metadata/content_type.rs index 6159955f73..821596c92e 100644 --- a/rust/signed_doc/src/metadata/content_type.rs +++ b/rust/signed_doc/src/metadata/content_type.rs @@ -57,6 +57,9 @@ impl FromStr for ContentType { anyhow::bail!( "Unsupported Content Type: {s:?}, Supported only: {:?}", ContentType::VARIANTS + .iter() + .map(ToString::to_string) + .collect::>() ) }, } @@ -91,6 +94,9 @@ impl TryFrom<&coset::ContentType> for ContentType { anyhow::bail!( "Unsupported Content Type {value:?}, Supported only: {:?}", ContentType::VARIANTS + .iter() + .map(ToString::to_string) + .collect::>() ) }, };