| match self.my_map.entry(*key_name) {
|
| Entry::Occupied(slot) => {
|
| Ok(slot.get())
|
| },
|
| Entry::Vacant(slot) => {
|
| let sign_key = RsaSignKeyPkcs115Sha256::new(*priv_key);
|
| slot.insert(sign_key);
|
| Ok(slot.get()) // ERROR! get() doesn't exist here, what can i do to return &sign_key which is not inserted into the hash tabe?
|
| },
|
| }
|