typelevel-scalafix icon indicating copy to clipboard operation
typelevel-scalafix copied to clipboard

Rewrite `resource.use { _ => useIt }` as `.surround(useIt)`

Open armanbilge opened this issue 3 years ago • 2 comments

Edit: although I guess there is an issue of lazyness here 🤔

armanbilge avatar Oct 12 '22 03:10 armanbilge

Seems fine if the as rule is fine?

rossabaker avatar Feb 15 '23 13:02 rossabaker

The as rule only applies in certain situations IIRC.

  • https://github.com/typelevel/typelevel-scalafix/pull/41

armanbilge avatar Feb 15 '23 16:02 armanbilge