File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ // rustfmt-max_width: 160
2+ // rustfmt-fn_call_width: 96
3+ // rustfmt-fn_args_layout: Compressed
4+ // rustfmt-trailing_comma: Always
5+ // rustfmt-wrap_comments: true
6+
7+ fn foo ( ) {
8+ for elem in try!( gen_epub_book:: ops:: parse_descriptor_file ( & mut try!( File :: open ( & opts. source_file . 1 ) . map_err ( |_| {
9+ gen_epub_book:: Error :: Io {
10+ desc : "input file" ,
11+ op : "open" ,
12+ more : None ,
13+ }
14+ } ) ) ,
15+ "input file" ) ) {
16+ println ! ( "{}" , elem) ;
17+ }
18+ }
19+
20+ fn write_content ( ) {
21+ io:: copy ( try!( File :: open ( in_f) . map_err ( |_| {
22+ Error :: Io {
23+ desc : "Content" ,
24+ op : "open" ,
25+ more : None ,
26+ }
27+ } ) ) ,
28+ w) ;
29+ }
Original file line number Diff line number Diff line change 1+ // rustfmt-max_width: 160
2+ // rustfmt-fn_call_width: 96
3+ // rustfmt-fn_args_layout: Compressed
4+ // rustfmt-trailing_comma: Always
5+ // rustfmt-wrap_comments: true
6+
7+ fn foo ( ) {
8+ for elem in try!( gen_epub_book:: ops:: parse_descriptor_file (
9+ & mut try!( File :: open ( & opts. source_file . 1 ) . map_err ( |_| {
10+ gen_epub_book:: Error :: Io {
11+ desc : "input file" ,
12+ op : "open" ,
13+ more : None ,
14+ }
15+ } ) ) ,
16+ "input file"
17+ ) ) {
18+ println ! ( "{}" , elem) ;
19+ }
20+ }
21+
22+ fn write_content ( ) {
23+ io:: copy (
24+ try!( File :: open ( in_f) . map_err ( |_| {
25+ Error :: Io {
26+ desc : "Content" ,
27+ op : "open" ,
28+ more : None ,
29+ }
30+ } ) ) ,
31+ w,
32+ ) ;
33+ }
You can’t perform that action at this time.
0 commit comments