Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
uzimaru0000 committed Jun 12, 2024
1 parent 2ccf5fa commit dbe028f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prompt/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl<'a> StringPrompt<'a> {

fn create_password_prompt(&self) -> Option<Password> {
if let VariantOrUnknownOrEmpty::Item(StringFormat::Password) = self.string.format {
let mut prompt = Password::new(&self.message)
let mut prompt = Password::new(self.message)
.with_display_mode(inquire::PasswordDisplayMode::Masked)
.without_confirmation();
prompt.help_message = self.description;
Expand All @@ -63,7 +63,7 @@ impl<'a> StringPrompt<'a> {

fn create_date_prompt(&self) -> Option<DateSelect> {
if let VariantOrUnknownOrEmpty::Item(StringFormat::Date) = self.string.format {
let mut prompt = DateSelect::new(&self.message)
let mut prompt = DateSelect::new(self.message)
.with_vim_mode(true)
.with_week_start(chrono::Weekday::Sun);
prompt.help_message = self.description;
Expand Down

0 comments on commit dbe028f

Please sign in to comment.