Use IndexMap::swap_remove instead of deprecated IndexMap::remove
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							be079f7e40
						
					
				
				
					commit
					06a68a76a2
				
			| @@ -341,7 +341,7 @@ impl<'a> Ptr<'a> { | ||||
|     /// concerned. | ||||
|     pub fn unlink(&mut self) { | ||||
|         let id = self.key.stream_id; | ||||
|         self.store.ids.remove(&id); | ||||
|         self.store.ids.swap_remove(&id); | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user