mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
redundant_pattern_matching
This commit is contained in:
parent
5a62a0db46
commit
71d4dba960
17 changed files with 39 additions and 46 deletions
|
@ -1043,7 +1043,7 @@ impl HirDisplay for Ty {
|
|||
f.start_location_link(t.into());
|
||||
}
|
||||
write!(f, "Future")?;
|
||||
if let Some(_) = future_trait {
|
||||
if future_trait.is_some() {
|
||||
f.end_location_link();
|
||||
}
|
||||
write!(f, "<")?;
|
||||
|
@ -1051,7 +1051,7 @@ impl HirDisplay for Ty {
|
|||
f.start_location_link(t.into());
|
||||
}
|
||||
write!(f, "Output")?;
|
||||
if let Some(_) = output {
|
||||
if output.is_some() {
|
||||
f.end_location_link();
|
||||
}
|
||||
write!(f, " = ")?;
|
||||
|
@ -1520,7 +1520,7 @@ fn write_bounds_like_dyn_trait(
|
|||
}
|
||||
write!(f, "Sized")?;
|
||||
}
|
||||
if let Some(_) = sized_trait {
|
||||
if sized_trait.is_some() {
|
||||
f.end_location_link();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue