Skip to content

Commit fd35ef0

Browse files
authored
fix warning on personalized output (#26)
1 parent a37290c commit fd35ef0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ macro_rules! base_main {
107107
if opt.get_flag("bench") {
108108
bench(days);
109109
} else {
110-
if days.len() > 1 && (opt.contains_id("stdin") || opt.contains_id("file")) {
110+
if days.len() > 1 && (opt.get_flag("stdin") || opt.contains_id("file")) {
111111
eprintln!(r"/!\ You are using a personalized output over several days which can");
112112
eprintln!(r" be missleading. If you only intend to run solutions for a");
113113
eprintln!(r" specific day, you can specify it by using the `-d DAY_NUM` flag.");
114114
}
115115

116116
for (i, day) in days.iter().enumerate() {
117117
parse! {
118-
run_day { i, format!("day{}", day), YEAR, opt };
118+
run_day { i, format!("day{day}"), YEAR, opt };
119119
$( $tail )*
120120
};
121121
}

0 commit comments

Comments
 (0)