chore: Fix clippy warnings. (#465)

This commit is contained in:
Jason Lee 2024-12-05 12:03:29 +08:00 committed by GitHub
parent 07a8e70d1a
commit d8636a31bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -47,7 +47,7 @@ pub trait ContextModal: Sized {
fn notifications(&self) -> Rc<Vec<View<Notification>>>;
}
impl<'a> ContextModal for WindowContext<'a> {
impl ContextModal for WindowContext<'_> {
fn open_drawer<F>(&mut self, build: F)
where
F: Fn(Drawer, &mut WindowContext) -> Drawer + 'static,
@ -148,7 +148,7 @@ impl<'a> ContextModal for WindowContext<'a> {
Rc::new(Root::read(&self).notification.read(&self).notifications())
}
}
impl<'a, V> ContextModal for ViewContext<'a, V> {
impl<V> ContextModal for ViewContext<'_, V> {
fn open_drawer<F>(&mut self, build: F)
where
F: Fn(Drawer, &mut WindowContext) -> Drawer + 'static,

View file

@ -19,19 +19,19 @@ impl ActiveTheme for AppContext {
}
}
impl<'a, V> ActiveTheme for ViewContext<'a, V> {
impl<V> ActiveTheme for ViewContext<'_, V> {
fn theme(&self) -> &Theme {
self.deref().theme()
}
}
impl<'a, V> ActiveTheme for ModelContext<'a, V> {
impl<V> ActiveTheme for ModelContext<'_, V> {
fn theme(&self) -> &Theme {
self.deref().theme()
}
}
impl<'a> ActiveTheme for WindowContext<'a> {
impl ActiveTheme for WindowContext<'_> {
fn theme(&self) -> &Theme {
self.deref().theme()
}