Skip to content

Commit

Permalink
Remove quotation marks from darling attributes
Browse files Browse the repository at this point in the history
This makes click-to-definition work when reading source code
  • Loading branch information
TedDriggs committed Feb 6, 2024
1 parent 408623a commit d6cc48b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions derive_builder_core/src/macro_options/darling_opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ pub struct Field {
visibility: Option<syn::Visibility>,
// See the documentation for `FieldSetterMeta` to understand how `darling`
// is interpreting this field.
#[darling(default, with = "field_setter")]
#[darling(default, with = field_setter)]
setter: FieldLevelSetter,
/// The value for this field if the setter is never invoked.
///
Expand Down Expand Up @@ -555,7 +555,7 @@ fn default_create_empty() -> Ident {
attributes(builder),
forward_attrs(cfg, allow, builder_struct_attr, builder_impl_attr),
supports(struct_named),
and_then = "Self::unnest_attrs"
and_then = Self::unnest_attrs
)]
pub struct Options {
ident: Ident,
Expand Down Expand Up @@ -584,7 +584,7 @@ pub struct Options {

/// The path to the root of the derive_builder crate used in generated
/// code.
#[darling(rename = "crate", default = "default_crate_root")]
#[darling(rename = "crate", default = default_crate_root)]
crate_root: Path,

#[darling(default)]
Expand All @@ -601,7 +601,7 @@ pub struct Options {

/// The ident of the inherent method which takes no arguments and returns
/// an instance of the builder with all fields empty.
#[darling(default = "default_create_empty")]
#[darling(default = default_create_empty)]
create_empty: Ident,

/// Setter options applied to all field setters in the struct.
Expand Down

0 comments on commit d6cc48b

Please sign in to comment.