mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Remove unused struct field
This commit is contained in:
parent
be70a5330a
commit
e977da834f
@ -38,10 +38,7 @@ impl Command<Validation> for ValidateObject<'_> {
|
||||
panic!("{:#?}", err);
|
||||
}
|
||||
|
||||
events.push(ValidationFailed {
|
||||
object: self.object.clone(),
|
||||
err,
|
||||
});
|
||||
events.push(ValidationFailed { err });
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -83,9 +80,6 @@ impl Event<Validation> for TakeErrors {
|
||||
/// Event produced by `Layer<Validation>`.
|
||||
#[derive(Clone)]
|
||||
pub struct ValidationFailed {
|
||||
/// The object for which validation failed
|
||||
pub object: AnyObject<Stored>,
|
||||
|
||||
/// The validation error
|
||||
pub err: ValidationError,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user