Skip to content

Commit

Permalink
Inline redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Feb 14, 2024
1 parent d3b44ae commit 2ca47a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/fj-core/src/layers/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ impl Layers {

/// Construct an instance of `Layers`, using the provided configuration
pub fn with_validation_config(config: ValidationConfig) -> Self {
let validation = Layer::new(Validation::with_validation_config(config));

Self {
validation,
validation: Layer::new(Validation::with_validation_config(config)),
..Default::default()
}
}
Expand Down

0 comments on commit 2ca47a7

Please sign in to comment.