mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-13 14:38:36 +00:00
Missing 'mut' in unsafe{} comment
This commit is contained in:
parent
b730a88d00
commit
6cd80834e5
@ -659,7 +659,7 @@ impl Context {
|
||||
/// Returns an iterator containing every [`Viewport`](crate::Viewport) that currently exists.
|
||||
pub fn viewports_mut(&mut self) -> impl Iterator<Item = &mut crate::Viewport> {
|
||||
let slice = self.platform_io_mut().viewports.as_slice();
|
||||
// safe because &self ensures exclusive ownership
|
||||
// safe because &mut self ensures exclusive ownership
|
||||
unsafe { slice.iter().map(|ptr| &mut **ptr) }
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user