Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/diagnostics/match_check/usefulness.rs')
| -rw-r--r-- | crates/hir-ty/src/diagnostics/match_check/usefulness.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/diagnostics/match_check/usefulness.rs b/crates/hir-ty/src/diagnostics/match_check/usefulness.rs index d737b24ad3..1b1a5ff269 100644 --- a/crates/hir-ty/src/diagnostics/match_check/usefulness.rs +++ b/crates/hir-ty/src/diagnostics/match_check/usefulness.rs @@ -409,7 +409,7 @@ impl<'p> Matrix<'p> { /// Number of columns of this matrix. `None` is the matrix is empty. pub(super) fn _column_count(&self) -> Option<usize> { - self.patterns.get(0).map(|r| r.len()) + self.patterns.first().map(|r| r.len()) } /// Pushes a new row to the matrix. If the row starts with an or-pattern, this recursively |