clippy: use `u64::from` to avoid lossy conversion
As a hedge against this type changing, clippy recommends
using `u64::from` over `as` as `From::from` will be a compile
time error if the type ever changes away from a lossless conversion
type.
diff --git a/src/metadata.rs b/src/metadata.rs
index 42778f9..c9f2bfb 100644
--- a/src/metadata.rs
+++ b/src/metadata.rs
@@ -624,7 +624,7 @@
));
}
- if (key_ids.len() as u64) < (threshold as u64) {
+ if (key_ids.len() as u64) < u64::from(threshold) {
return Err(Error::IllegalArgument(format!(
"Cannot have a threshold greater than the number of associated key IDs. {} vs. {}",
threshold,