Buffer doesn't need to be mutable anymore

This commit is contained in:
grovesNL 2023-01-25 16:10:10 -03:30 committed by Josh Groves
parent e0998be181
commit ba52cbdba6
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ async fn run() {
width: config.width, width: config.width,
height: config.height, height: config.height,
}, },
&mut buffer, &buffer,
Color::rgb(255, 255, 255), Color::rgb(255, 255, 255),
&mut cache, &mut cache,
) )

View file

@ -60,7 +60,7 @@ impl TextRenderer {
queue: &Queue, queue: &Queue,
atlas: &mut TextAtlas, atlas: &mut TextAtlas,
screen_resolution: Resolution, screen_resolution: Resolution,
buffer: &mut cosmic_text::Buffer<'a>, buffer: &cosmic_text::Buffer<'a>,
default_color: Color, default_color: Color,
cache: &mut SwashCache, cache: &mut SwashCache,
) -> Result<(), PrepareError> { ) -> Result<(), PrepareError> {