Closed antoyo closed 5 months ago
@antoyo can you add more description to this issue, i will like to pick it and work on it
@mubarak23: I edited the description to add details. Feel free to ask questions if you need more details.
So Adding the #[must_use] attribute to new_call() would help in catching situations @antoyo
@antoyo assign this issue to me, let me work on it.
Done. Feel free to ask any questions.
@antoyo this is the PR Link, kindly review, let me know where i can improve or make necessary changes
The result of of the method
Context::new_call()
must always be used, either as part of another expression, or throughBlock::add_eval()
if the call is done for its side effects.As such, adding the attribute
#[must_use]
attribute will allow seeing where we forget to use the call.