tisonkun commented on code in PR #1:
URL: https://github.com/apache/datasketches-rust/pull/1#discussion_r2617221743


##########
src/hll/aux_map.rs:
##########
@@ -105,7 +105,9 @@ impl AuxMap {
         let index = self.find(slot);
         match index {
             FindResult::Found(_) => {
-                panic!("slot {} already exists in aux map", slot);
+                // Invariant: Array4 always check existance before inserting
+                // a new value on the same slot.
+                unreachable!("slot {} already exists in aux map", slot);

Review Comment:
   Then we may update the method docs as well to remove the `Panics` section. 
And ditto others.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to