mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-28 04:13:29 +04:00
fix lints errors
This commit is contained in:
parent
5a830c7837
commit
7c54c63d27
@ -43,8 +43,8 @@
|
|||||||
info::Info,
|
info::Info,
|
||||||
input::KeyEvent,
|
input::KeyEvent,
|
||||||
keyboard::KeyCode,
|
keyboard::KeyCode,
|
||||||
tree::{self, Dimension, Resize},
|
|
||||||
theme::Style,
|
theme::Style,
|
||||||
|
tree::{self, Dimension, Resize},
|
||||||
view::View,
|
view::View,
|
||||||
Document, DocumentId, Editor, ViewId,
|
Document, DocumentId, Editor, ViewId,
|
||||||
};
|
};
|
||||||
|
@ -114,12 +114,6 @@ fn insert_child(&mut self, index: usize, node: ViewId) -> &mut Self {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
fn remove_child(&mut self, index: usize) -> &mut Self {
|
|
||||||
self.children.remove(index);
|
|
||||||
self.remove_child_bounds(index);
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
fn add_child_bounds(&mut self) -> &mut Self {
|
fn add_child_bounds(&mut self) -> &mut Self {
|
||||||
self.node_bounds.push(ContainerBounds {
|
self.node_bounds.push(ContainerBounds {
|
||||||
width: 10,
|
width: 10,
|
||||||
@ -141,11 +135,6 @@ fn insert_child_bounds(&mut self, index: usize) -> &mut Self {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
fn remove_child_bounds(&mut self, index: usize) -> &mut Self {
|
|
||||||
self.node_bounds.remove(index);
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
fn calculate_slots_width(&self) -> usize {
|
fn calculate_slots_width(&self) -> usize {
|
||||||
self.node_bounds
|
self.node_bounds
|
||||||
.iter()
|
.iter()
|
||||||
|
Loading…
Reference in New Issue
Block a user