New paste Repaste Download
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?
},
}
Filename: None. Size: 374b. View raw, , hex, or download this file.

This paste expires on 2024-05-23 16:34:01.908476. Pasted through web.