Update dependencies

This commit is contained in:
Jeremy Soller 2024-09-06 07:29:28 -06:00
parent 868dee2e98
commit 6bc62fa8ba
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 131 additions and 132 deletions

View file

@ -13,14 +13,12 @@ pub struct LineNumberKey {
#[derive(Debug)]
pub struct LineNumberCache {
cache: HashMap<LineNumberKey, Vec<LayoutLine>>,
scratch: ShapeBuffer,
}
impl LineNumberCache {
pub fn new() -> Self {
Self {
cache: HashMap::new(),
scratch: ShapeBuffer::default(),
}
}
@ -41,8 +39,7 @@ impl LineNumberCache {
);
buffer_line.set_align(Some(Align::Left));
buffer_line
.layout_in_buffer(
&mut self.scratch,
.layout(
font_system,
1.0, /* font size adjusted later */
None,