mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-28 21:32:39 +00:00
Fix warnings
This commit is contained in:
parent
0854976691
commit
8c0541b455
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ impl Entity for GoToLine {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
|
|
||||||
fn release(&mut self, cx: &mut MutableAppContext) {
|
fn release(&mut self, cx: &mut MutableAppContext) {
|
||||||
self.active_editor.update(cx, |editor, cx| {
|
self.active_editor.update(cx, |editor, _| {
|
||||||
editor.set_highlighted_row(None);
|
editor.set_highlighted_row(None);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ impl View for GoToLine {
|
||||||
"GoToLine"
|
"GoToLine"
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render(&mut self, cx: &mut RenderContext<Self>) -> ElementBox {
|
fn render(&mut self, _: &mut RenderContext<Self>) -> ElementBox {
|
||||||
Align::new(
|
Align::new(
|
||||||
ConstrainedBox::new(
|
ConstrainedBox::new(
|
||||||
Container::new(ChildView::new(self.line_editor.id()).boxed()).boxed(),
|
Container::new(ChildView::new(self.line_editor.id()).boxed()).boxed(),
|
||||||
|
|
Loading…
Reference in a new issue