File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ pub struct Writer<W: std::io::Write> {
116116
117117impl Writer < fs:: File > {
118118 /// Write to a given file path in given format.
119+ #[ allow( dead_code) ]
119120 pub fn to_file < P : AsRef < Path > > ( path : P ) -> std:: io:: Result < Self > {
120121 fs:: File :: create ( path) . map ( |f| Writer :: new ( f) )
121122 }
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ pub struct Writer<W: std::io::Write> {
125125
126126impl Writer < fs:: File > {
127127 /// Write to a given file path in given format.
128+ #[ allow( dead_code) ]
128129 pub fn to_file < P : AsRef < Path > > ( path : P ) -> std:: io:: Result < Self > {
129130 fs:: File :: create ( path) . map ( |f| Writer :: new ( f) )
130131 }
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ extern crate xz2;
2525
2626use std:: collections:: HashSet ;
2727use std:: fs;
28+ #[ allow( unused_imports) ]
2829use std:: io:: Read ;
2930use std:: process:: { Command , Stdio } ;
3031
You can’t perform that action at this time.
0 commit comments