]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/open_options.rs
Add version = "Two" to rustfmt.toml
[rust.git] / clippy_lints / src / open_options.rs
index 73a99a3a2f870a3f7351ee1a3da2cc6828ad121b..07ca196990da9b71dcafa0ec395629b01f4b562b 100644 (file)
@@ -69,15 +69,11 @@ fn get_open_options(cx: &LateContext<'_>, argument: &Expr<'_>, options: &mut Vec
                         ..
                     } = *span
                     {
-                        if lit {
-                            Argument::True
-                        } else {
-                            Argument::False
-                        }
+                        if lit { Argument::True } else { Argument::False }
                     } else {
-                        return; // The function is called with a literal
-                                // which is not a boolean literal. This is theoretically
-                                // possible, but not very likely.
+                        // The function is called with a literal which is not a boolean literal.
+                        // This is theoretically possible, but not very likely.
+                        return;
                     }
                 },
                 _ => Argument::Unknown,