From 6b4ec73b7ed2522b837368a11863afb4b432b9a4 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Thu, 4 Jul 2019 22:59:28 -0400 Subject: Clippy changes --- crates/ra_hir/src/ty/infer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir/src/ty') diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index 9228dd314..78aa76449 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs @@ -529,7 +529,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { match matching_def { Some(_) => { self.write_assoc_resolution(id, item); - return matching_def; + matching_def } None => None, } -- cgit v1.2.3