Closed alistra closed 3 weeks ago
@alistra I suspect that os_log's string interpolation does make use of @autoclosure
somehow, but in any case the solution should be to add --selfrequired os_log
to your SwiftFormat config. I'll add os_log
to the default exclusion list in the next version.
@alistra fixed in 0.54.0
I tried to format this file
with this version
and it resulted in this file (
self
removed)and now it doesn't compile with error:
TBH I have no idea why it behaves like this - I thought it was maybe because of
@autoclosure
but it is not it. For other methods it works properly, it must be something aboutos_log
that forces theself
to be required.