Skip to content

Commit 2b0d0b4

Browse files
committed
drm/asahi: buffer: Clippy fixes
Signed-off-by: Asahi Lina <[email protected]>
1 parent 5510aba commit 2b0d0b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/gpu/drm/asahi/buffer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ impl Scene::ver {
153153

154154
/// Returns the GPU pointer to the `buffer::Info::ver` object associated with this Scene.
155155
pub(crate) fn buffer_pointer(&self) -> GpuPointer<'_, buffer::Info::ver> {
156-
// We can't return the strong pointer directly since its lifetime crosses a lock, but we know
157-
// its lifetime will be valid as long as &self since we hold a reference to the buffer,
158-
// so just construct the strong pointer with the right lifetime here.
156+
// SAFETY: We can't return the strong pointer directly since its lifetime crosses a lock,
157+
// but we know its lifetime will be valid as long as &self since we hold a reference to the
158+
// buffer, so just construct the strong pointer with the right lifetime here.
159159
unsafe { self.weak_buffer_pointer().upgrade() }
160160
}
161161

0 commit comments

Comments
 (0)