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,
height: config.height,
},
&mut buffer,
&buffer,
Color::rgb(255, 255, 255),
&mut cache,
)

View file

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