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
|
@ -606,7 +606,7 @@ impl TerminalView {
|
|||
dispatch_context
|
||||
}
|
||||
|
||||
fn set_terminal(&mut self, terminal: Model<Terminal>, cx: &mut ViewContext<'_, TerminalView>) {
|
||||
fn set_terminal(&mut self, terminal: Model<Terminal>, cx: &mut ViewContext<TerminalView>) {
|
||||
self._terminal_subscriptions =
|
||||
subscribe_for_terminal_events(&terminal, self.workspace.clone(), cx);
|
||||
self.terminal = terminal;
|
||||
|
@ -616,7 +616,7 @@ impl TerminalView {
|
|||
fn subscribe_for_terminal_events(
|
||||
terminal: &Model<Terminal>,
|
||||
workspace: WeakView<Workspace>,
|
||||
cx: &mut ViewContext<'_, TerminalView>,
|
||||
cx: &mut ViewContext<TerminalView>,
|
||||
) -> Vec<Subscription> {
|
||||
let terminal_subscription = cx.observe(terminal, |_, _, cx| cx.notify());
|
||||
let terminal_events_subscription =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue