Run rustfmt on the codebase

This commit is contained in:
Tom A. Wagner
2020-12-14 11:28:06 +01:00
parent 53895f8e28
commit c72bef364d
4 changed files with 18 additions and 14 deletions

View File

@@ -62,11 +62,11 @@ fn draw(
cr.move_to(
(from_alloc.x + from_alloc.width).into(),
(from_alloc.y + (from_alloc.height / 2)).into()
(from_alloc.y + (from_alloc.height / 2)).into(),
);
cr.line_to(
to_alloc.x.into(),
(to_alloc.y + (to_alloc.height / 2)).into()
(to_alloc.y + (to_alloc.height / 2)).into(),
);
cr.stroke();

View File

@@ -1,5 +1,5 @@
mod graph_view;
mod pipewire_node;
pub use graph_view::GraphView;
pub use pipewire_node::PipewireNode;
pub use graph_view::GraphView;

View File

@@ -24,12 +24,14 @@ impl PipewireNode {
}
pub fn add_ingoing_port(&mut self, id: u32, port: gtk::Button) {
self.widget.attach(&port, 0, (self.ingoing_ports.len() + 1) as i32, 1, 1);
self.widget
.attach(&port, 0, (self.ingoing_ports.len() + 1) as i32, 1, 1);
self.ingoing_ports.insert(id, port);
}
pub fn add_outgoing_port(&mut self, id: u32, port: gtk::Button) {
self.widget.attach(&port, 1, (self.outgoing_ports.len() + 1) as i32, 1, 1);
self.widget
.attach(&port, 1, (self.outgoing_ports.len() + 1) as i32, 1, 1);
self.outgoing_ports.insert(id, port);
}