mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Fixed typos in local bindings
This commit is contained in:
parent
4702c01553
commit
c8c2bd097a
3 changed files with 7 additions and 7 deletions
|
@ -379,7 +379,7 @@ pub fn record_literal_missing_fields(
|
|||
id: ExprId,
|
||||
expr: &Expr,
|
||||
) -> Option<(VariantId, Vec<LocalFieldId>, /*exhaustive*/ bool)> {
|
||||
let (fields, exhausitve) = match expr {
|
||||
let (fields, exhaustive) = match expr {
|
||||
Expr::RecordLit { path: _, fields, spread } => (fields, spread.is_none()),
|
||||
_ => return None,
|
||||
};
|
||||
|
@ -400,7 +400,7 @@ pub fn record_literal_missing_fields(
|
|||
if missed_fields.is_empty() {
|
||||
return None;
|
||||
}
|
||||
Some((variant_def, missed_fields, exhausitve))
|
||||
Some((variant_def, missed_fields, exhaustive))
|
||||
}
|
||||
|
||||
pub fn record_pattern_missing_fields(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue