mirror of
				https://github.com/edera-dev/krata.git
				synced 2025-11-03 07:19:37 +00:00 
			
		
		
		
	kratanet: fix unused value warning
This commit is contained in:
		@ -60,7 +60,7 @@ pub struct VirtualBridge {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
enum VirtualBridgeSelect {
 | 
					enum VirtualBridgeSelect {
 | 
				
			||||||
    BroadcastSent(Option<BytesMut>),
 | 
					    BroadcastSent,
 | 
				
			||||||
    PacketReceived(Option<BytesMut>),
 | 
					    PacketReceived(Option<BytesMut>),
 | 
				
			||||||
    MemberLeave(Option<EthernetAddress>),
 | 
					    MemberLeave(Option<EthernetAddress>),
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -133,7 +133,7 @@ impl VirtualBridge {
 | 
				
			|||||||
        loop {
 | 
					        loop {
 | 
				
			||||||
            let selection = select! {
 | 
					            let selection = select! {
 | 
				
			||||||
                biased;
 | 
					                biased;
 | 
				
			||||||
                x = from_broadcast_receiver.recv() => VirtualBridgeSelect::BroadcastSent(x.ok()),
 | 
					                _ = from_broadcast_receiver.recv() => VirtualBridgeSelect::BroadcastSent,
 | 
				
			||||||
                x = to_bridge_receiver.recv() => VirtualBridgeSelect::PacketReceived(x),
 | 
					                x = to_bridge_receiver.recv() => VirtualBridgeSelect::PacketReceived(x),
 | 
				
			||||||
                x = member_leave_reciever.recv() => VirtualBridgeSelect::MemberLeave(x),
 | 
					                x = member_leave_reciever.recv() => VirtualBridgeSelect::MemberLeave(x),
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
@ -204,7 +204,7 @@ impl VirtualBridge {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                VirtualBridgeSelect::PacketReceived(None) => break,
 | 
					                VirtualBridgeSelect::PacketReceived(None) => break,
 | 
				
			||||||
                VirtualBridgeSelect::MemberLeave(None) => {}
 | 
					                VirtualBridgeSelect::MemberLeave(None) => {}
 | 
				
			||||||
                VirtualBridgeSelect::BroadcastSent(_) => {}
 | 
					                VirtualBridgeSelect::BroadcastSent => {}
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        Ok(())
 | 
					        Ok(())
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user