753: assists: compute edit r=matklad a=kjeremy

Fixes #751 

Co-authored-by: kjeremy <kjeremy@gmail.com>
This commit is contained in:
bors[bot] 2019-02-06 16:18:47 +00:00
commit c1e10a24fa

View file

@ -53,7 +53,7 @@ pub fn assists<H>(db: &H, range: FileRange) -> Vec<(AssistLabel, AssistAction)>
where
H: HirDatabase + 'static,
{
AssistCtx::with_ctx(db, range, false, |ctx| {
AssistCtx::with_ctx(db, range, true, |ctx| {
all_assists()
.iter()
.filter_map(|f| f(ctx.clone()))