Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ascjones committed Oct 22, 2021
1 parent 3a4aaea commit 031153d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,10 @@ pub struct FieldBuilder<
marker: PhantomData<fn() -> (N, T)>,
}

impl Default for FieldBuilder {
fn default() -> Self {
FieldBuilder {
impl FieldBuilder {
/// Create a new FieldBuilder.
pub fn new() -> Self {
Self {
name: Default::default(),
ty: Default::default(),
type_name: Default::default(),
Expand All @@ -352,13 +353,6 @@ impl Default for FieldBuilder {
}
}

impl FieldBuilder {
/// Create a new FieldBuilder.
pub fn new() -> Self {
Default::default()
}
}

impl<T> FieldBuilder<field_state::NameNotAssigned, T> {
/// Initialize the field name.
pub fn name(self, name: &'static str) -> FieldBuilder<field_state::NameAssigned, T> {
Expand Down

0 comments on commit 031153d

Please sign in to comment.