From 29d556eca60e36e3fa5ce5b12086f39037942b17 Mon Sep 17 00:00:00 2001 From: Alexander Sergeev Date: Fri, 1 Sep 2023 15:41:41 +0300 Subject: [PATCH] cargo fmt --- src/history.rs | 6 +++--- src/lib.rs | 2 +- src/prompts/input.rs | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/history.rs b/src/history.rs index 33659235..1a772d7a 100644 --- a/src/history.rs +++ b/src/history.rs @@ -25,11 +25,11 @@ pub struct BasicHistory { impl BasicHistory { /// Creates a new basic history value which has no limit on the number of /// entries and allows for duplicates. - /// + /// /// # Example - /// + /// /// A history with at most 8 entries and no duplicates: - /// + /// /// ```rs /// let mut history = BasicHistory::new().max_entries(8).no_duplicates(true); /// ``` diff --git a/src/lib.rs b/src/lib.rs index 19d71bcb..f8faae9e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,7 +39,7 @@ pub use completion::Completion; pub use edit::Editor; pub use error::{Error, Result}; #[cfg(feature = "history")] -pub use history::{History, BasicHistory}; +pub use history::{BasicHistory, History}; use paging::Paging; pub use validate::Validator; diff --git a/src/prompts/input.rs b/src/prompts/input.rs index 709a46c0..4029da2d 100644 --- a/src/prompts/input.rs +++ b/src/prompts/input.rs @@ -14,7 +14,6 @@ use crate::{ type ValidatorCallback<'a, T> = Box Option + 'a>; - /// Renders an input prompt. /// /// ## Example