aboutsummaryrefslogtreecommitdiff
path: root/src/render_helpers/primary_gpu_texture.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-08-11 09:39:17 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-08-11 09:39:28 +0300
commit0044578681cee50fd7ad49fcb8d1e2ea53d85fe4 (patch)
tree14549a3da03aa06ea2f210eae2911837e8ced75a /src/render_helpers/primary_gpu_texture.rs
parent0c09f2529b6b46e7070d9c038fba1e37532880d8 (diff)
downloadniri-0044578681cee50fd7ad49fcb8d1e2ea53d85fe4.tar.gz
niri-0044578681cee50fd7ad49fcb8d1e2ea53d85fe4.tar.bz2
niri-0044578681cee50fd7ad49fcb8d1e2ea53d85fe4.zip
Fix new lifetime warnings
Diffstat (limited to 'src/render_helpers/primary_gpu_texture.rs')
-rw-r--r--src/render_helpers/primary_gpu_texture.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render_helpers/primary_gpu_texture.rs b/src/render_helpers/primary_gpu_texture.rs
index 1d318582..85dbc5b1 100644
--- a/src/render_helpers/primary_gpu_texture.rs
+++ b/src/render_helpers/primary_gpu_texture.rs
@@ -67,7 +67,7 @@ impl RenderElement<GlesRenderer> for PrimaryGpuTextureRenderElement {
Ok(())
}
- fn underlying_storage(&self, _renderer: &mut GlesRenderer) -> Option<UnderlyingStorage> {
+ fn underlying_storage(&self, _renderer: &mut GlesRenderer) -> Option<UnderlyingStorage<'_>> {
// If scanout for things other than Wayland buffers is implemented, this will need to take
// the target GPU into account.
None
@@ -91,7 +91,7 @@ impl<'render> RenderElement<TtyRenderer<'render>> for PrimaryGpuTextureRenderEle
fn underlying_storage(
&self,
_renderer: &mut TtyRenderer<'render>,
- ) -> Option<UnderlyingStorage> {
+ ) -> Option<UnderlyingStorage<'_>> {
// If scanout for things other than Wayland buffers is implemented, this will need to take
// the target GPU into account.
None