Skip to content

Commit

Permalink
Missing 'mut' in unsafe{} comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dbr committed Jan 30, 2023
1 parent b730a88 commit 6cd8083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}

Expand Down

0 comments on commit 6cd8083

Please sign in to comment.