diff options
author | Mikhail Rakhmanov <[email protected]> | 2020-06-03 19:10:33 +0100 |
---|---|---|
committer | Mikhail Rakhmanov <[email protected]> | 2020-06-03 19:10:33 +0100 |
commit | a9d567584857b1be4ca8eaa5ef2c7d85f7b2845e (patch) | |
tree | ff99d995f83bd0dcfc7c1d56039144f32799e604 /crates/ra_assists/src/assist_context.rs | |
parent | 08aa8e1de717425ebf49796df1515d9fbd8b2e3e (diff) |
Fix incorrect behaviour if not resolved
Diffstat (limited to 'crates/ra_assists/src/assist_context.rs')
-rw-r--r-- | crates/ra_assists/src/assist_context.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_assists/src/assist_context.rs b/crates/ra_assists/src/assist_context.rs index bc5481494..1925db8b2 100644 --- a/crates/ra_assists/src/assist_context.rs +++ b/crates/ra_assists/src/assist_context.rs | |||
@@ -179,6 +179,7 @@ impl Assists { | |||
179 | f: impl FnOnce(&mut AssistDirector), | 179 | f: impl FnOnce(&mut AssistDirector), |
180 | ) -> Option<()> { | 180 | ) -> Option<()> { |
181 | if !self.resolve { | 181 | if !self.resolve { |
182 | self.buf.push((label, None)); | ||
182 | return None; | 183 | return None; |
183 | } | 184 | } |
184 | let mut director = AssistDirector::default(); | 185 | let mut director = AssistDirector::default(); |