chore: Fix clippy warnings. (#465)
This commit is contained in:
parent
07a8e70d1a
commit
d8636a31bd
2 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue