Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jun 12, 2023
1 parent 7e94921 commit cef89ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ where
{
type Output = S;

fn index(&self, index: StateHandle<S>) -> &Self::Output {
fn index(&self, index: StateHandle<S>) -> &S {
self.get(index)
}
}
Expand All @@ -411,7 +411,7 @@ impl<S> ops::IndexMut<StateHandle<S>> for Context
where
S: 'static,
{
fn index_mut(&mut self, index: StateHandle<S>) -> &mut Self::Output {
fn index_mut(&mut self, index: StateHandle<S>) -> &mut S {
self.get_mut(index)
}
}

0 comments on commit cef89ee

Please sign in to comment.