Skip to content

Commit

Permalink
Removed std::fmt::Display requirement for TextBuffer.
Browse files Browse the repository at this point in the history
Now uses the `AsRef<str>` impl to format it where applicable.
  • Loading branch information
Zenithsiz committed Jun 12, 2021
1 parent 900fac2 commit 934da56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egui/src/widgets/text_edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl CCursorPair {
/// an underlying buffer.
///
/// Most likely you will use a `String` which implements `TextBuffer`.
pub trait TextBuffer: AsRef<str> + Into<String> + std::fmt::Display {
pub trait TextBuffer: AsRef<str> + Into<String> {
/// Inserts text `text` into this buffer at character index `ch_idx`.
///
/// # Notes
Expand Down

0 comments on commit 934da56

Please sign in to comment.