mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Use anonymous lifetime where possible
This commit is contained in:
parent
70a01fead5
commit
4e793e7859
30 changed files with 60 additions and 60 deletions
|
@ -126,7 +126,7 @@ struct Display<'a> {
|
|||
path: &'a ModPath,
|
||||
}
|
||||
|
||||
impl<'a> fmt::Display for Display<'a> {
|
||||
impl fmt::Display for Display<'_> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
display_fmt_path(self.db, self.path, f, true)
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ struct UnescapedDisplay<'a> {
|
|||
path: &'a UnescapedModPath<'a>,
|
||||
}
|
||||
|
||||
impl<'a> fmt::Display for UnescapedDisplay<'a> {
|
||||
impl fmt::Display for UnescapedDisplay<'_> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
display_fmt_path(self.db, self.path.0, f, false)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue