PartialEq LocalClientId u8
This commit is contained in:
		
							parent
							
								
									3865caba8d
								
							
						
					
					
						commit
						5d410f88f3
					
				| @ -109,6 +109,12 @@ impl LocalClientId { | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl PartialEq<u8> for LocalClientId { | ||||
|     fn eq(&self, other: &u8) -> bool { | ||||
|         self.0 == *other as usize | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| #[derive(Debug, Copy, Clone, PartialEq)] | ||||
| pub struct AreaClient { | ||||
|     pub client: ClientId, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user