Skip to content

Commit fe6227e

Browse files
authored
update lifetime-elision to show what elided code under `rust_2018_idi… (#306)
This was a bit confusing for me to read, as it was using an old style of rust that I am not used to Unfortunately, this lint group isn't on by default, but I think `elided_lifetimes_in_paths` may be on track to be deny-by-default in edition 2021?
1 parent 8da31d7 commit fe6227e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lifetime-elision.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ fn args<T: ToCStr>(&mut self, args: &[T]) -> &mut Command // el
6363
fn args<'a, 'b, T: ToCStr>(&'a mut self, args: &'b [T]) -> &'a mut Command // expanded
6464
6565
fn new(buf: &mut [u8]) -> BufWriter; // elided
66+
fn new(buf: &mut [u8]) -> BufWriter<'_>; // elided (with `rust_2018_idioms`)
6667
fn new<'a>(buf: &'a mut [u8]) -> BufWriter<'a> // expanded
6768
```

0 commit comments

Comments
 (0)