diff options
Diffstat (limited to 'src/suggestion.rs')
-rw-r--r-- | src/suggestion.rs | 5 |
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. |