We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4fbd70 commit f634855Copy full SHA for f634855
1 file changed
src/args/threads.rs
@@ -25,15 +25,14 @@ pub enum FromStrError {
25
26
impl FromStr for Threads {
27
type Err = FromStrError;
28
- fn from_str(value: &str) -> Result<Self, Self::Err> {
29
- let value = value.trim();
30
- match value {
+ fn from_str(text: &str) -> Result<Self, Self::Err> {
+ let text = text.trim();
+ match text {
31
AUTO => return Ok(Threads::Auto),
32
MAX => return Ok(Threads::Max),
33
_ => {}
34
};
35
- value
36
- .parse()
+ text.parse()
37
.map_err(FromStrError::InvalidSyntax)
38
.map(Threads::Fixed)
39
}
0 commit comments