File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments