Skip to content

Commit 053ca15

Browse files
committed
Fix clippy warnings
1 parent cf2af97 commit 053ca15

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct Args {
5353
fn 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

tests/schemas/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#![allow(clippy::all)]
2+
#![allow(dead_code)]
3+
24
pub mod array_3d;
35
pub mod complex;
46
pub mod decimals;
57
pub mod enums;
68
pub mod enums_casing;
79
pub mod enums_multiline_doc;
810
pub mod enums_sanitize;
9-
#[allow(dead_code)]
1011
pub mod fixed;
1112
pub mod interop;
1213
pub mod logical_dates;

0 commit comments

Comments
 (0)