Skip to content

Commit e6a28ea

Browse files
Ryujiyasuclaude
andcommitted
style: apply cargo fmt formatting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent edd8d3c commit e6a28ea

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/cmp.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
217217
std::process::exit(0);
218218
}
219219
if param_str.starts_with('-') {
220-
return Err(format!(
221-
"unrecognized option '{}'",
222-
param.to_string_lossy()
223-
));
220+
return Err(format!("unrecognized option '{}'", param.to_string_lossy()));
224221
}
225222
if from.is_none() {
226223
from = Some(param);

src/params.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
195195
Err(error) => return Err(error),
196196
}
197197
if param.to_string_lossy().starts_with('-') {
198-
return Err(format!(
199-
"unrecognized option '{}'",
200-
param.to_string_lossy()
201-
));
198+
return Err(format!("unrecognized option '{}'", param.to_string_lossy()));
202199
}
203200
if from.is_none() {
204201
from = Some(param);

tests/integration.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ mod common {
3939
cmd.assert()
4040
.code(predicate::eq(2))
4141
.failure()
42-
.stderr(predicate::str::contains(
43-
"unrecognized option '--foobar'",
44-
));
42+
.stderr(predicate::str::contains("unrecognized option '--foobar'"));
4543
}
4644
Ok(())
4745
}

0 commit comments

Comments
 (0)