From 3ccd00b944c99ac2bd8268eccfbc744bb0ef39b8 Mon Sep 17 00:00:00 2001 From: Yoram Date: Tue, 12 Nov 2024 14:05:25 +0100 Subject: [PATCH] typo when error for #[defaults] macro --- crates/macros/src/impl_.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/macros/src/impl_.rs b/crates/macros/src/impl_.rs index 49fb9dc3ea..821ead014a 100644 --- a/crates/macros/src/impl_.rs +++ b/crates/macros/src/impl_.rs @@ -187,7 +187,7 @@ pub fn parse_attribute(attr: &Attribute) -> Result> { Ok(Some(match name.as_ref() { "defaults" => { let defaults = HashMap::from_meta(&meta) - .map_err(|_| anyhow!("Unable to parse `#[default]` macro."))?; + .map_err(|_| anyhow!("Unable to parse `#[defaults]` macro."))?; ParsedAttribute::Default(defaults) } "optional" => {