Skip to content

Commit

Permalink
update lifetime-elision to show what elided code under `rust_2018_idi… (
Browse files Browse the repository at this point in the history
#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?
  • Loading branch information
guswynn authored Aug 30, 2021
1 parent 8da31d7 commit fe6227e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lifetime-elision.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ fn args<T: ToCStr>(&mut self, args: &[T]) -> &mut Command // el
fn args<'a, 'b, T: ToCStr>(&'a mut self, args: &'b [T]) -> &'a mut Command // expanded
fn new(buf: &mut [u8]) -> BufWriter; // elided
fn new(buf: &mut [u8]) -> BufWriter<'_>; // elided (with `rust_2018_idioms`)
fn new<'a>(buf: &'a mut [u8]) -> BufWriter<'a> // expanded
```

0 comments on commit fe6227e

Please sign in to comment.