diff options
Diffstat (limited to 'src/hint.rs')
-rw-r--r-- | src/hint.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hint.rs b/src/hint.rs index ea28ca8..1b4f88a 100644 --- a/src/hint.rs +++ b/src/hint.rs @@ -50,8 +50,16 @@ impl<'r, H: ?Sized + Hinter> Hinter for &'r H { /// Add suggestion based on previous history entries matching current user /// input. +#[derive(Default)] pub struct HistoryHinter {} +impl HistoryHinter { + /// Create a new `HistoryHinter` + pub fn new() -> HistoryHinter { + HistoryHinter::default() + } +} + impl Hinter for HistoryHinter { type Hint = String; |