Skip to content

Commit

Permalink
typo when error for #[defaults] macro
Browse files Browse the repository at this point in the history
  • Loading branch information
yoramdelangen committed Nov 12, 2024
1 parent 45f71b3 commit 3ccd00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/macros/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub fn parse_attribute(attr: &Attribute) -> Result<Option<ParsedAttribute>> {
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" => {
Expand Down

0 comments on commit 3ccd00b

Please sign in to comment.