Skip to content

Commit

Permalink
lint: fixed lints
Browse files Browse the repository at this point in the history
  • Loading branch information
lukexor committed Oct 10, 2024
1 parent 4712d6d commit 68d7d41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tetanes/src/nes/renderer/gui/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ pub struct ShortcutWidget<'a, T> {
phantom: std::marker::PhantomData<&'a ()>,
}

impl<'a, T> Deref for ShortcutWidget<'a, T> {
impl<T> Deref for ShortcutWidget<'_, T> {
type Target = T;
fn deref(&self) -> &Self::Target {
&self.inner
}
}

impl<'a, T> DerefMut for ShortcutWidget<'a, T> {
impl<T> DerefMut for ShortcutWidget<'_, T> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.inner
}
}

impl<'a, T> Widget for ShortcutWidget<'a, T>
impl<T> Widget for ShortcutWidget<'_, T>
where
T: Widget,
{
Expand Down Expand Up @@ -139,7 +139,7 @@ impl<'a> ToggleValue<'a> {
}
}

impl<'a> Widget for ToggleValue<'a> {
impl Widget for ToggleValue<'_> {
fn ui(self, ui: &mut Ui) -> Response {
let mut res = ui.selectable_label(*self.selected, self.text);
if res.clicked() {
Expand Down Expand Up @@ -167,7 +167,7 @@ impl<'a, T: PartialEq> RadioValue<'a, T> {
}
}

impl<'a, T: PartialEq> Widget for RadioValue<'a, T> {
impl<T: PartialEq> Widget for RadioValue<'_, T> {
fn ui(self, ui: &mut Ui) -> Response {
let mut res = ui.radio(*self.current_value == self.alternative, self.text);
if res.clicked() && *self.current_value != self.alternative {
Expand Down

0 comments on commit 68d7d41

Please sign in to comment.