Relax lifetimes further

This commit is contained in:
x10A94 2024-09-30 21:55:17 +03:00 committed by Héctor Ramón Jiménez
parent 71c9940f91
commit db2c1ca316
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -336,11 +336,11 @@ impl TextRenderer {
} }
/// Renders all layouts that were previously provided to `prepare`. /// Renders all layouts that were previously provided to `prepare`.
pub fn render<'pass>( pub fn render(
&'pass self, &self,
atlas: &'pass TextAtlas, atlas: &TextAtlas,
viewport: &'pass Viewport, viewport: &Viewport,
pass: &mut RenderPass<'pass>, pass: &mut RenderPass<'_>,
) -> Result<(), RenderError> { ) -> Result<(), RenderError> {
if self.glyphs_to_render == 0 { if self.glyphs_to_render == 0 {
return Ok(()); return Ok(());