Fix clippy::manual_str_repeat
This commit is contained in:
parent
814b6ab422
commit
eb420c4896
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue