mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
use references in Generics iter methods
This commit is contained in:
parent
b357bcab2b
commit
0e54e2b55a
4 changed files with 34 additions and 27 deletions
|
@ -3,7 +3,6 @@
|
|||
//! purposes.
|
||||
|
||||
use std::{
|
||||
cmp::Ordering,
|
||||
fmt::{self, Debug},
|
||||
mem::size_of,
|
||||
};
|
||||
|
@ -1324,6 +1323,7 @@ fn hir_fmt_generics(
|
|||
) -> Result<(), HirDisplayError> {
|
||||
let db = f.db;
|
||||
if parameters.len(Interner) > 0 {
|
||||
use std::cmp::Ordering;
|
||||
let param_compare =
|
||||
|a: &GenericArg, b: &GenericArg| match (a.data(Interner), b.data(Interner)) {
|
||||
(crate::GenericArgData::Lifetime(_), crate::GenericArgData::Lifetime(_)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue