Skip to content

Commit 14b38e1

Browse files
author
Anatol Liu
committed
Add static semantic token modifier for associated functions with no &self
refactor logic into code_model.rs
1 parent 771c0d8 commit 14b38e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir/src/code_model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ impl Function {
790790

791791
/// whether this function is associated with some trait/impl
792792
pub fn is_associated(self, db: &dyn HirDatabase) -> bool {
793-
if let Some(_) = self.self_param(db) {
793+
if self.self_param(db).is_some() {
794794
return false;
795795
}
796796

0 commit comments

Comments
 (0)