-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass the World
to after hook even if Step
has failed (#207)
#209
Conversation
FCM
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed to preserve &mut World
in After Hook.
I've left changes in |
@ilslv I'd opt for going with patch release for that. |
// `HookType::After` is executed, so it can slightly mess up | ||
// timing if `timestamps` feature is enabled. Fix it by | ||
// passing here `event::Metadata` at the time | ||
// `HookType::After` was started. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilslv I don't see why we should postpone this. Please, fix in a separate PR.
Resolves #207
Synopsis
For now
after
hook accepts mutable reference to theWorld
instance, but only in caseStep
didn't fail.Solution
Accept shared reference to the
World
instance (it's ok because it's not passed on either way) and pass it even in caseStep
has failed.Checklist
Draft:
prefixDraft:
prefix is removed