about summary refs log tree commit diff
path: root/clippy_lints/src/open_options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/open_options.rs')
-rw-r--r--clippy_lints/src/open_options.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/clippy_lints/src/open_options.rs b/clippy_lints/src/open_options.rs
index 31a6caa50d6..65257973bea 100644
--- a/clippy_lints/src/open_options.rs
+++ b/clippy_lints/src/open_options.rs
@@ -5,19 +5,19 @@ use rustc::{declare_tool_lint, lint_array};
 use syntax::ast::LitKind;
 use syntax::source_map::{Span, Spanned};
 
-/// **What it does:** Checks for duplicate open options as well as combinations
-/// that make no sense.
-///
-/// **Why is this bad?** In the best case, the code will be harder to read than
-/// necessary. I don't know the worst case.
-///
-/// **Known problems:** None.
-///
-/// **Example:**
-/// ```rust
-/// OpenOptions::new().read(true).truncate(true)
-/// ```
 declare_clippy_lint! {
+    /// **What it does:** Checks for duplicate open options as well as combinations
+    /// that make no sense.
+    ///
+    /// **Why is this bad?** In the best case, the code will be harder to read than
+    /// necessary. I don't know the worst case.
+    ///
+    /// **Known problems:** None.
+    ///
+    /// **Example:**
+    /// ```rust
+    /// OpenOptions::new().read(true).truncate(true)
+    /// ```
     pub NONSENSICAL_OPEN_OPTIONS,
     correctness,
     "nonsensical combination of options for opening a file"