ChainSafe / forest

🌲 Rust Filecoin Node Implementation
https://forest.chainsafe.io
Apache License 2.0
618 stars 145 forks source link

fix: change FnMut(&MessageCallbackCtx) to FnMut(MessageCallbackCtx<'_>) #4422

Closed hanabi1224 closed 2 weeks ago

hanabi1224 commented 2 weeks ago

Summary of changes

To address the below comment, the rust compiler has now become smart enough to compile the desired code with no additional tricks

// note: we take &MessageCallbackCtx rather than MessageCallbackCtx<'_>
//       because I'm not smart enough to make the second one work

Changes introduced in this pull request:

-

Reference issue to close (if applicable)

Closes

Other information and links

Change checklist