fontdb 0.23 (#383)

* fix bench

* update Cargo.toml fontdb 0.23
This commit is contained in:
tigregalis 2025-04-21 23:58:26 +08:00 committed by GitHub
parent 9e7a56f083
commit b017d7c856
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ rust-version = "1.75"
[dependencies]
bitflags = "2.4.1"
cosmic_undo_2 = { version = "0.2.0", optional = true }
fontdb = { version = "0.16", default-features = false }
fontdb = { version = "0.23", default-features = false }
hashbrown = { version = "0.14.1", optional = true, default-features = false }
libm = { version = "0.2.8", optional = true }
log = "0.4.20"

View file

@ -26,7 +26,7 @@ fn layout(c: &mut Criterion) {
let mut run_on_text = |text: &str| {
buffer.lines.clear();
buffer.set_text(&mut fs, text, ct::Attrs::new(), *shape);
buffer.set_text(&mut fs, text, &ct::Attrs::new(), *shape);
buffer.shape_until_scroll(&mut fs, false);
};