refactor: Using format named variables · alt-art/commit@e6406da · GitHub
Skip to content

Commit e6406da

Browse files
committed
refactor: Using format named variables
1 parent 0af6332 commit e6406da

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/commit_message/message_build/mod.rs‎

Lines changed: 2 additions & 2 deletions

‎src/commit_message/prompt.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ impl Prompt {
2525
pub fn optional_input(&self, prompt: &str, label: &str) -> Result<String> {
2626
let input = Text::new(prompt)
2727
.with_render_config(self.config)
28-
.with_help_message(format!("{}. Press Enter to skip", label).as_str())
28+
.with_help_message(format!("{label}. Press Enter to skip").as_str())
2929
.prompt()?;
3030
Ok(input)
3131
}
3232

3333
pub fn required_input(&self, prompt: &str, label: &str) -> Result<String> {
3434
let input = Text::new(prompt)
3535
.with_render_config(self.config)
36-
.with_validator(required!(format!("{} can't be empty", label).as_str()))
36+
.with_validator(required!(format!("{label} can't be empty").as_str()))
3737
.prompt()?;
3838
Ok(input)
3939
}

‎src/config/mod.rs‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)