We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25ade32 commit 0a8b314Copy full SHA for 0a8b314
1 file changed
client/src/lib.rs
@@ -61,14 +61,13 @@ pub const CONTENT_TYPE_ATTRIBUTE: &str = "xdg:content-type";
61
pub trait AsAttributes {
62
fn as_attributes(&self) -> HashMap<&str, &str>;
63
64
- #[allow(clippy::type_complexity)]
65
fn hash<'a>(
66
&'a self,
67
key: &Key,
68
) -> Vec<(&'a str, std::result::Result<Mac, crate::crypto::Error>)> {
69
self.as_attributes()
70
.into_iter()
71
- .map(|(k, v)| (k, crate::file::AttributeValue::from(v).mac(key)))
+ .map(|(k, v)| (k, crypto::compute_mac(v.as_bytes(), key)))
72
.collect()
73
}
74
0 commit comments