Cleanups preparing for WindowContext refactor (#22475)
* Remove unnecessary WindowContext and ViewContext '_ lifetimes * Removed some cases where WindowContext has a different name than `cx`. Release Notes: - N/A
This commit is contained in:
parent
9815358bdd
commit
016b5d60e1
41 changed files with 127 additions and 152 deletions
|
@ -16,7 +16,7 @@ pub(crate) enum Head {
|
|||
impl Head {
|
||||
pub fn editor<V: 'static>(
|
||||
placeholder_text: Arc<str>,
|
||||
edit_handler: impl FnMut(&mut V, View<Editor>, &EditorEvent, &mut ViewContext<'_, V>) + 'static,
|
||||
edit_handler: impl FnMut(&mut V, View<Editor>, &EditorEvent, &mut ViewContext<V>) + 'static,
|
||||
cx: &mut ViewContext<V>,
|
||||
) -> Self {
|
||||
let editor = cx.new_view(|cx| {
|
||||
|
@ -29,7 +29,7 @@ impl Head {
|
|||
}
|
||||
|
||||
pub fn empty<V: 'static>(
|
||||
blur_handler: impl FnMut(&mut V, &mut ViewContext<'_, V>) + 'static,
|
||||
blur_handler: impl FnMut(&mut V, &mut ViewContext<V>) + 'static,
|
||||
cx: &mut ViewContext<V>,
|
||||
) -> Self {
|
||||
let head = cx.new_view(EmptyHead::new);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue