catch-22 with try block, clippy::unit_arg and clippy::unused_unit #3759
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
If I don't include a
()
at the end of alet res: Result<(), io::Error> = try
block, I get a "passing a unit value to a function" clippy warning. If I do include a()
, I get an "unneeded unit expression" clippy warning.Sample code:
The text was updated successfully, but these errors were encountered: