Skip to content

Commit

Permalink
clippy 1.75
Browse files Browse the repository at this point in the history
  • Loading branch information
sbillig committed Jan 27, 2024
1 parent 0b75030 commit 277ad77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/hir-analysis/src/ty/ty_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ impl FuncDef {

pub fn receiver_ty(self, db: &dyn HirAnalysisDb) -> Option<TyId> {
if self.hir_func(db).is_method(db.as_hir_db()) {
self.arg_tys(db).get(0).copied()
self.arg_tys(db).first().copied()
} else {
None
}
Expand Down
2 changes: 1 addition & 1 deletion crates/hir/src/hir_def/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ impl Func {
return false;
};

let Some(first_param) = params.data(db).get(0) else {
let Some(first_param) = params.data(db).first() else {
return false;
};

Expand Down

0 comments on commit 277ad77

Please sign in to comment.