You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Configurations.md
+26-1
Original file line number
Diff line number
Diff line change
@@ -1684,6 +1684,9 @@ pub enum Foo {}
1684
1684
#### `false`:
1685
1685
1686
1686
```rust
1687
+
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
1688
+
pubenumBar {}
1689
+
1687
1690
#[derive(Eq, PartialEq)]
1688
1691
#[derive(Debug)]
1689
1692
#[derive(Copy, Clone)]
@@ -1857,6 +1860,9 @@ Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.
1857
1860
#![doc ="Example documentation"]
1858
1861
1859
1862
#[doc ="Example item documentation"]
1863
+
pubenumBar {}
1864
+
1865
+
/// Example item documentation
1860
1866
pubenumFoo {}
1861
1867
```
1862
1868
@@ -1971,6 +1977,8 @@ fn main() {
1971
1977
#### `false`:
1972
1978
```rust
1973
1979
fnmain() {
1980
+
(foo());
1981
+
1974
1982
((((foo()))));
1975
1983
}
1976
1984
```
@@ -1996,6 +2004,14 @@ impl Iterator for Dummy {
1996
2004
1997
2005
typeItem=i32;
1998
2006
}
2007
+
2008
+
implIteratorforDummy {
2009
+
typeItem=i32;
2010
+
2011
+
fnnext(&mutself) ->Option<Self::Item> {
2012
+
None
2013
+
}
2014
+
}
1999
2015
```
2000
2016
2001
2017
#### `true`
@@ -2552,7 +2568,8 @@ fn main() {
2552
2568
letx=1;
2553
2569
lety=2;
2554
2570
letz=3;
2555
-
leta=Foo { x:x, y:y, z:z };
2571
+
leta=Foo { x, y, z };
2572
+
letb=Foo { x:x, y:y, z:z };
2556
2573
}
2557
2574
```
2558
2575
@@ -2721,6 +2738,8 @@ Replace uses of the try! macro by the ? shorthand
2721
2738
2722
2739
```rust
2723
2740
fnmain() {
2741
+
letlorem=ipsum.map(|dolor|dolor.sit())?;
2742
+
2724
2743
letlorem=try!(ipsum.map(|dolor|dolor.sit()));
2725
2744
}
2726
2745
```
@@ -2792,6 +2811,12 @@ Break comments to fit on the line
2792
2811
#### `false` (default):
2793
2812
2794
2813
```rust
2814
+
// Lorem ipsum dolor sit amet, consectetur adipiscing elit,
2815
+
// sed do eiusmod tempor incididunt ut labore et dolore
2816
+
// magna aliqua. Ut enim ad minim veniam, quis nostrud
2817
+
// exercitation ullamco laboris nisi ut aliquip ex ea
2818
+
// commodo consequat.
2819
+
2795
2820
// 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.
0 commit comments