Skip to content

Commit f634855

Browse files
committed
refactor: consistent naming
1 parent b4fbd70 commit f634855

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/args/threads.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ pub enum FromStrError {
2525

2626
impl FromStr for Threads {
2727
type Err = FromStrError;
28-
fn from_str(value: &str) -> Result<Self, Self::Err> {
29-
let value = value.trim();
30-
match value {
28+
fn from_str(text: &str) -> Result<Self, Self::Err> {
29+
let text = text.trim();
30+
match text {
3131
AUTO => return Ok(Threads::Auto),
3232
MAX => return Ok(Threads::Max),
3333
_ => {}
3434
};
35-
value
36-
.parse()
35+
text.parse()
3736
.map_err(FromStrError::InvalidSyntax)
3837
.map(Threads::Fixed)
3938
}

0 commit comments

Comments
 (0)