From 4fd471c571c24b005945ace456ca46c0a39f678e Mon Sep 17 00:00:00 2001 From: Duncan Proctor Date: Tue, 22 Oct 2024 06:54:44 -0400 Subject: [PATCH] tidy --- crates/hir/src/source_analyzer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/hir/src/source_analyzer.rs b/crates/hir/src/source_analyzer.rs index 1e28990f43..9d32229e8f 100644 --- a/crates/hir/src/source_analyzer.rs +++ b/crates/hir/src/source_analyzer.rs @@ -364,8 +364,7 @@ impl SourceAnalyzer { (RangeOp::Inclusive, None, None) => return None, (RangeOp::Inclusive, Some(_), None) => return None, }; - let s = self.resolver.resolve_known_struct(db.upcast(), &path); - return s; + self.resolver.resolve_known_struct(db.upcast(), &path) } pub(crate) fn resolve_range_expr(