TedDriggs / darling

A Rust proc-macro attribute parser
MIT License
983 stars 66 forks source link

Field-level default should take path without quotation marks #257

Closed TedDriggs closed 10 months ago

TedDriggs commented 10 months ago

The DefaultExpression type was never updated to accept a path in the right-hand side. This means that #[darling(default = path_to_fn)] doesn't work, while #[darling(default = "path_to_fn")] does. We should allow the quotation-free form.