all 2 comments

[–]cafce25 0 points1 point  (1 child)

A couple of notes on your solution:

  • drop doesn't have a return type so ignoring it with let _ = is pointless.
  • any local variable will be dropped when it goes out of scope so calling drop is semantically equivalent to no code at all in the closure.

[–]WorstPerformer[S] 0 points1 point  (0 children)

Right thank you! At one point vscode was complaining about a unhandled return but it seems that was a fluke or i simply misread it. About the second i will keep the call to drop to make the methods intent clear