Require default Attrs to be specified in set_rich_text

This commit is contained in:
Jeremy Soller 2023-10-27 13:08:27 -06:00
parent c1e40363ab
commit ad10e7373b
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 11 additions and 7 deletions

View file

@ -119,7 +119,7 @@ fn main() {
editor
.buffer_mut()
.set_rich_text(spans.iter().copied(), Shaping::Advanced);
.set_rich_text(spans.iter().copied(), attrs, Shaping::Advanced);
let mut swash_cache = SwashCache::new();