Refactor TextLayoutDetails construction

This commit is contained in:
Conrad Irwin
2023-10-18 22:56:11 -06:00
parent 138fa45ecb
commit 3eb8aa8085
10 changed files with 52 additions and 64 deletions
+1 -1
View File
@@ -1288,7 +1288,7 @@ pub mod tests {
cx.update_window(window, |cx| {
let text_layout_details =
editor.read_with(cx, |editor, cx| TextLayoutDetails::new(editor, cx));
editor.read_with(cx, |editor, cx| editor.text_layout_details(cx));
let font_cache = cx.font_cache().clone();