We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f28dd63 commit 3493473Copy full SHA for 3493473
crates/stdlib/src/hashlib.rs
@@ -701,9 +701,8 @@ pub mod _hashlib {
701
if len < 1 {
702
return Err(vm.new_value_error("key length must be greater than 0.".to_owned()));
703
}
704
- usize::try_from(len).map_err(|_| {
705
- vm.new_overflow_error("key length is too great.".to_owned())
706
- })?
+ usize::try_from(len)
+ .map_err(|_| vm.new_overflow_error("key length is too great.".to_owned()))?
707
708
None => hash_digest_size(&name).ok_or_else(|| unsupported_hash(&name, vm))?,
709
};
0 commit comments