Skip to content

Commit 668ea50

Browse files
author
Nicklas Warming Jacobsen
committed
In derive Encryption, call to_string instead of clone on the sort key
1 parent f544568 commit 668ea50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptonamo-derive/src/encryptable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub(crate) fn derive_encryptable(input: DeriveInput) -> Result<TokenStream, syn:
5454
if let Some(prefix) = Self::sort_key_prefix() {
5555
format!("{}#{}", prefix, self.#sort_key_attr)
5656
} else {
57-
self.#sort_key_attr.clone()
57+
self.#sort_key_attr.to_string()
5858
}
5959
}
6060
} else {

0 commit comments

Comments
 (0)