diff --git a/crates/fj-core/src/layers/validation.rs b/crates/fj-core/src/layers/validation.rs index 76681e55b..29ee541a1 100644 --- a/crates/fj-core/src/layers/validation.rs +++ b/crates/fj-core/src/layers/validation.rs @@ -38,10 +38,7 @@ impl Command for ValidateObject<'_> { panic!("{:#?}", err); } - events.push(ValidationFailed { - object: self.object.clone(), - err, - }); + events.push(ValidationFailed { err }); } } } @@ -83,9 +80,6 @@ impl Event for TakeErrors { /// Event produced by `Layer`. #[derive(Clone)] pub struct ValidationFailed { - /// The object for which validation failed - pub object: AnyObject, - /// The validation error pub err: ValidationError, }