mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 19:46:10 +08:00
fix clippy warnings
This commit is contained in:
committed by
Tom A. Wagner
parent
99b2ef274a
commit
5784275d32
@@ -273,3 +273,9 @@ impl GraphView {
|
||||
self.queue_draw();
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for GraphView {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,11 +135,7 @@ impl Node {
|
||||
|
||||
pub fn get_port(&self, id: u32) -> Option<Rc<super::port::Port>> {
|
||||
let private = imp::Node::from_instance(self);
|
||||
private
|
||||
.ports
|
||||
.borrow_mut()
|
||||
.get(&id)
|
||||
.map(|port_rc| port_rc.clone())
|
||||
private.ports.borrow_mut().get(&id).cloned()
|
||||
}
|
||||
|
||||
pub fn remove_port(&self, id: u32) {
|
||||
|
||||
Reference in New Issue
Block a user