Skip to content

Commit 6b96da7

Browse files
committed
Use simple string literal, const str is hard
1 parent a64956d commit 6b96da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/template/day.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ macro_rules! day {
145145
($day:expr) => {
146146
const {
147147
$crate::template::Day::new($day)
148-
.expect(&format!("invalid day number, expecting a value between 1 and {}", day_count!()))
148+
.expect("invalid day number, expecting a value between 1 and 12 (or 25 before 2025)")
149149
}
150150
};
151151
}

0 commit comments

Comments
 (0)