Skip to content

Commit

Permalink
Use Box::default() in more places (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
sholderbach authored Nov 7, 2022
1 parent a846019 commit 94031fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ impl Reedline {
/// Create a new [`Reedline`] engine with a local [`History`] that is not synchronized to a file.
#[must_use]
pub fn create() -> Self {
let history = Box::new(FileBackedHistory::default());
let history = Box::<FileBackedHistory>::default();
let painter = Painter::new(std::io::BufWriter::new(std::io::stderr()));
let buffer_highlighter = Box::new(ExampleHighlighter::default());
let completer = Box::new(DefaultCompleter::default());
let buffer_highlighter = Box::<ExampleHighlighter>::default();
let completer = Box::<DefaultCompleter>::default();
let hinter = None;
let validator = None;
let edit_mode = Box::new(Emacs::default());
let edit_mode = Box::<Emacs>::default();
let hist_session_id = Self::create_history_session_id();

Reedline {
Expand Down

0 comments on commit 94031fa

Please sign in to comment.