-
Notifications
You must be signed in to change notification settings - Fork 795
Conversation
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.
supportive of the concept, the base PR shoudl be ready to go once @mattsse takes a look
f61e0d7
to
d40c84d
Compare
dependency prs merged |
3ed7ab7
to
002c17a
Compare
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.
The elimination of lifetime is a good change imo.
can't reproduce the CI failures locally :/ |
this is ready for review. The current lint and doc failures seem to be unrelated? I can't reproduce locally either. |
I tried compiling with the latest nightly ( After a few attempts I got it to compile at least with clippy and it found the |
e7cb117
to
dbd9420
Compare
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.
Good with me, prefer generic over lifetime. CI issues unrelated. Thank you for pushing this thru James, keen to start making cracks at the new middleware little by little.
Depends on #2082
Motivation
FunctionCall
andEvent
both are created byContract
types via similar APIs. However,Event
had a lifetime and borrowed the client, whileFunctionCall
cloned the client.Solution
This PR updates
Event
to work asFunctionCall
does.Old Style:
Event<'a, M, D>
New Style:
Event<B, M, D>
PR Checklist