Add test case for issue 1306 which was resolved
Closes 1306 It's unclear when the issue was fixed, but it cannot be reproduced.
This commit is contained in:
parent
35f4c55bf4
commit
2403f827bf
29
tests/source/issue_1306.rs
Normal file
29
tests/source/issue_1306.rs
Normal file
@ -0,0 +1,29 @@
|
||||
// rustfmt-max_width: 160
|
||||
// rustfmt-fn_call_width: 96
|
||||
// rustfmt-fn_args_layout: Compressed
|
||||
// rustfmt-trailing_comma: Always
|
||||
// rustfmt-wrap_comments: true
|
||||
|
||||
fn foo() {
|
||||
for elem in try!(gen_epub_book::ops::parse_descriptor_file(&mut try!(File::open(&opts.source_file.1).map_err(|_| {
|
||||
gen_epub_book::Error::Io {
|
||||
desc: "input file",
|
||||
op: "open",
|
||||
more: None,
|
||||
}
|
||||
})),
|
||||
"input file")) {
|
||||
println!("{}", elem);
|
||||
}
|
||||
}
|
||||
|
||||
fn write_content() {
|
||||
io::copy(try!(File::open(in_f).map_err(|_| {
|
||||
Error::Io {
|
||||
desc: "Content",
|
||||
op: "open",
|
||||
more: None,
|
||||
}
|
||||
})),
|
||||
w);
|
||||
}
|
33
tests/target/issue_1306.rs
Normal file
33
tests/target/issue_1306.rs
Normal file
@ -0,0 +1,33 @@
|
||||
// rustfmt-max_width: 160
|
||||
// rustfmt-fn_call_width: 96
|
||||
// rustfmt-fn_args_layout: Compressed
|
||||
// rustfmt-trailing_comma: Always
|
||||
// rustfmt-wrap_comments: true
|
||||
|
||||
fn foo() {
|
||||
for elem in try!(gen_epub_book::ops::parse_descriptor_file(
|
||||
&mut try!(File::open(&opts.source_file.1).map_err(|_| {
|
||||
gen_epub_book::Error::Io {
|
||||
desc: "input file",
|
||||
op: "open",
|
||||
more: None,
|
||||
}
|
||||
})),
|
||||
"input file"
|
||||
)) {
|
||||
println!("{}", elem);
|
||||
}
|
||||
}
|
||||
|
||||
fn write_content() {
|
||||
io::copy(
|
||||
try!(File::open(in_f).map_err(|_| {
|
||||
Error::Io {
|
||||
desc: "Content",
|
||||
op: "open",
|
||||
more: None,
|
||||
}
|
||||
})),
|
||||
w,
|
||||
);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user