Skip to content

Commit

Permalink
revert: from_iter for Listbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed May 12, 2024
1 parent ca76d8d commit a22f69d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions promkit/src/core/listbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ impl<T: fmt::Display> FromIterator<T> for Listbox {
/// and collected into a `Vec<String>`.
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
Self(Cursor::new(
iter.into_iter()
.map(|e| format!("{}", e).replace('\n', " ").replace('\t', " "))
.collect(),
iter.into_iter().map(|e| format!("{}", e)).collect(),
0,
false,
))
Expand Down

0 comments on commit a22f69d

Please sign in to comment.