Find IntoFuture::IntoFuture's poll method

This commit is contained in:
Justin Ridgewell 2022-08-16 17:53:10 -04:00
parent dc3219bb11
commit cebf95718c
4 changed files with 65 additions and 10 deletions

View file

@ -19,7 +19,7 @@ pub(crate) fn complete_dot(
};
// Suggest .await syntax for types that implement Future trait
if receiver_ty.impls_future(ctx.db) {
if receiver_ty.impls_into_future(ctx.db) {
let mut item =
CompletionItem::new(CompletionItemKind::Keyword, ctx.source_range(), "await");
item.detail("expr.await");