What's the ideomatic way to do this?
let result = somehash.insert(newitem);
match result {
Ok(dup) => panic!("Dupilcate entry inserted into hash"),
None =>()
}
Is there something short like unwrap() for that situation? Thanks, and happy holidays.