Skip to content

Commit

Permalink
default derive
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jul 16, 2024
1 parent 39c9a77 commit d1caa77
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub struct Path {
}

/// Layer of a NavMesh
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct Layer {
/// List of `Vertex` in this mesh
Expand All @@ -75,17 +75,6 @@ pub struct Layer {
islands: Option<Vec<usize>>,
}

impl Default for Layer {
fn default() -> Self {
Self {
vertices: Default::default(),
polygons: Default::default(),
baked_polygons: Default::default(),
islands: Default::default(),
}
}
}

/// A navigation mesh
#[derive(Debug, Clone)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
Expand Down

0 comments on commit d1caa77

Please sign in to comment.