In Configurations.md demonstrate both cases for noop selections

This commit is contained in:
Lucas Kent 2021-09-10 17:50:40 +10:00 committed by Caleb Cartwright
parent 4b9d637f58
commit cb144c35e7

View File

@ -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)]
@ -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 {}
```
@ -1971,6 +1977,8 @@ fn main() {
#### `false`:
```rust
fn main() {
(foo());
((((foo()))));
}
```
@ -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`
@ -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 };
}
```
@ -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()));
}
```
@ -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.
```