Skip to content

Commit dbe028f

Browse files
committed
fix lint
1 parent 2ccf5fa commit dbe028f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prompt/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<'a> StringPrompt<'a> {
5050

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

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

0 commit comments

Comments
 (0)