File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ struct Args {
5353fn run ( ) -> Result < ( ) , Box < dyn Error > > {
5454 let args = Args :: parse ( ) ;
5555
56- let mut out: Box < dyn Write > = if args. output_file == PathBuf :: from ( "-" ) {
56+ let mut out: Box < dyn Write > = if * args. output_file == * "-" {
5757 Box :: new ( stdout ( ) )
5858 } else {
5959 Box :: new (
@@ -79,7 +79,7 @@ fn run() -> Result<(), Box<dyn Error>> {
7979
8080 g. generate ( & source, & mut out) ?;
8181
82- if args. fmt && args. output_file != PathBuf :: from ( "-" ) {
82+ if args. fmt && * args. output_file != * "-" {
8383 Command :: new ( "rustfmt" ) . arg ( & args. output_file ) . status ( ) ?;
8484 }
8585
Original file line number Diff line number Diff line change 11#![ allow( clippy:: all) ]
2+ #![ allow( dead_code) ]
3+
24pub mod array_3d;
35pub mod complex;
46pub mod decimals;
57pub mod enums;
68pub mod enums_casing;
79pub mod enums_multiline_doc;
810pub mod enums_sanitize;
9- #[ allow( dead_code) ]
1011pub mod fixed;
1112pub mod interop;
1213pub mod logical_dates;
You can’t perform that action at this time.
0 commit comments