Skip to content

Commit

Permalink
Avoid format - fix clippy warning (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion authored Feb 17, 2023
1 parent d5a4caa commit b860dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion num_enum_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ impl Parse for EnumInfo {
// We could probably allow them, but there doesn't seem to be much of a use-case,
// and it's easier to give good error messages about duplicate values this way,
// rather than rustc errors on conflicting match branches.
die!(expr => format!("Only literals are allowed as num_enum alternate values"))
die!(expr => "Only literals are allowed as num_enum alternate values".to_string())
},
}
})
Expand Down

0 comments on commit b860dba

Please sign in to comment.