Skip to content

Commit 921889a

Browse files
committed
Fix compilation errors
1 parent e7cbb8a commit 921889a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

renderer/src/component/primitive/text.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,12 @@ fn to_text_buffer(
233233
font_family: &str,
234234
) -> Buffer {
235235
let mut text_buffer = Buffer::new(font_system, Metrics::new(font_size, 1.2 * font_size));
236+
let attrs = Attrs::new().family(Family::Name(font_family));
236237
text_buffer.set_size(font_system, None, None);
237238
text_buffer.set_text(
238239
font_system,
239240
text,
240-
Attrs::new().family(Family::Name(font_family)),
241+
&attrs,
241242
Shaping::Advanced,
242243
);
243244
text_buffer.shape_until_scroll(font_system, false);

video/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ async fn create_device() -> (Device, Queue) {
5656
required_features: Features::default(),
5757
required_limits: Limits::default(),
5858
memory_hints: MemoryHints::default(),
59+
trace: wgpu::Trace::default(),
5960
},
60-
None,
6161
)
6262
.await
6363
.expect("Failed to create device")

0 commit comments

Comments
 (0)