Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
HKalbasi committed May 23, 2024
1 parent 5c48ed3 commit c08c771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl<C: Parser + Send + Sync + 'static> ClapEditor<C> {

/// Creates a new `ClapEditor` with the default prompt.
pub fn new() -> Self {
Self::construct(Box::new(DefaultPrompt::default()), |e| e)
Self::construct(Box::<DefaultPrompt>::default(), |e| e)
}

/// Creates a new `ClapEditor` with the given prompt.
Expand Down

0 comments on commit c08c771

Please sign in to comment.