E570 Auto-format: cargo fmt --all · RustPython/RustPython@800bf35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 800bf35

Browse files
Auto-format: cargo fmt --all
1 parent 3fa7178 commit 800bf35

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/stdlib/src/hashlib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,9 +701,8 @@ pub mod _hashlib {
701701
if len < 1 {
702702
return Err(vm.new_value_error("key length must be greater than 0.".to_owned()));
703703
}
704-
usize::try_from(len).map_err(|_| {
705-
vm.new_overflow_error("key length is too great.".to_owned())
706-
})?
704+
usize::try_from(len)
705+
.map_err(|_| vm.new_overflow_error("key length is too great.".to_owned()))?
707706
}
708707
None => hash_digest_size(&name).ok_or_else(|| unsupported_hash(&name, vm))?,
709708
};

0 commit comments

Comments
 (0)
0