summary refs log tree commit diff stats
path: root/src/suggestion.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/suggestion.rs')
-rw-r--r--src/suggestion.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/suggestion.rs b/src/suggestion.rs
index a96e892..f8f4741 100644
--- a/src/suggestion.rs
+++ b/src/suggestion.rs
@@ -185,6 +185,11 @@ impl Suggestions {
             suggestions: suggestions,
         }
     }
+
+    /// Creates an empty `Suggestions` future.
+    pub fn empty<'a>() -> Pin<Box<dyn Future<Output=Suggestions> + Send + 'a>> {
+        Box::pin(async { EMPTY })
+    }
 }
 
 /// Helper for building suggestions.