Skip to content

Commit

Permalink
In Configurations.md demonstrate both cases for noop selections
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored and calebcartwright committed Sep 25, 2021
1 parent 4b9d637 commit cb144c3
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,9 @@ pub enum Foo {}
#### `false`:

```rust
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
pub enum Bar {}

#[derive(Eq, PartialEq)]
#[derive(Debug)]
#[derive(Copy, Clone)]
Expand Down Expand Up @@ -1857,6 +1860,9 @@ Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.
#![doc = "Example documentation"]

#[doc = "Example item documentation"]
pub enum Bar {}

/// Example item documentation
pub enum Foo {}
```

Expand Down Expand Up @@ -1971,6 +1977,8 @@ fn main() {
#### `false`:
```rust
fn main() {
(foo());

((((foo()))));
}
```
Expand All @@ -1996,6 +2004,14 @@ impl Iterator for Dummy {

type Item = i32;
}

impl Iterator for Dummy {
type Item = i32;

fn next(&mut self) -> Option<Self::Item> {
None
}
}
```

#### `true`
Expand Down Expand Up @@ -2552,7 +2568,8 @@ fn main() {
let x = 1;
let y = 2;
let z = 3;
let a = Foo { x: x, y: y, z: z };
let a = Foo { x, y, z };
let b = Foo { x: x, y: y, z: z };
}
```

Expand Down Expand Up @@ -2721,6 +2738,8 @@ Replace uses of the try! macro by the ? shorthand

```rust
fn main() {
let lorem = ipsum.map(|dolor| dolor.sit())?;

let lorem = try!(ipsum.map(|dolor| dolor.sit()));
}
```
Expand Down Expand Up @@ -2792,6 +2811,12 @@ Break comments to fit on the line
#### `false` (default):

```rust
// Lorem ipsum dolor sit amet, consectetur adipiscing elit,
// sed do eiusmod tempor incididunt ut labore et dolore
// magna aliqua. Ut enim ad minim veniam, quis nostrud
// exercitation ullamco laboris nisi ut aliquip ex ea
// commodo consequat.

// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
```

Expand Down

0 comments on commit cb144c3

Please sign in to comment.