branca
branca copied to clipboard
Do not consume self on builder getters
key(), nonce(), ttl() and timestamp() all consume self. This means the builders instance needs to be cloned if a user wants to continue using it after calling any of the above getters. This seems unintentional. I suggest they all take &self instead of self.
pub fn nonce(&self) -> &[u8] {
self.nonce
}