Buffer doesn't need to be mutable anymore
This commit is contained in:
		
					parent
					
						
							
								e0998be181
							
						
					
				
			
			
				commit
				
					
						ba52cbdba6
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -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,
 | 
				
			||||||
                    )
 | 
					                    )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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> {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue