Skip to content

Commit

Permalink
Fix clippy::manual_str_repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
iceiix committed Aug 1, 2021
1 parent d2d7ac3 commit ecc141b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ impl TextBox {

fn transform_input(&self) -> String {
if self.password {
::std::iter::repeat('*').take(self.input.len()).collect()
"*".repeat(self.input.len())
} else {
self.input.clone()
}
Expand Down

0 comments on commit ecc141b

Please sign in to comment.