Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Dec 28, 2024
1 parent b363be2 commit 28f4226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "loop"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
license = "Apache-2.0/MIT"
authors = ["Ivan Ukhov <ivan.ukhov@gmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion src/support.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub fn workers(value: Option<usize>) -> usize {
value
.map(|value| std::cmp::min(value, 1))
.map(|value| std::cmp::max(value, 1))
.unwrap_or_else(|| {
std::thread::available_parallelism()
.map(|value| value.get())
Expand Down

0 comments on commit 28f4226

Please sign in to comment.