Skip to content

Commit c3c3ba4

Browse files
committed
1 parent cfe2613 commit c3c3ba4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
2-
32
name = "mime_guess2"
43
version = "2.0.5"
4+
edition = "2024"
55
authors = ["Austin Bonander <[email protected]>"]
66
license = "MIT"
77
description = "A simple crate for detection of a file's MIME type by its extension."

build.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,12 @@ fn build_rev_map<W: Write>(out: &mut W) {
126126

127127
macro_rules! unicase_const {
128128
($s:expr) => ({
129-
format_args!("{}({:?})", (if $s.is_ascii() {
129+
let prefix = if $s.is_ascii() {
130130
"UniCase::ascii"
131131
} else {
132132
"UniCase::unicode"
133-
}), $s)
133+
};
134+
format!("{}({:?})", prefix, $s)
134135
})
135136
}
136137

0 commit comments

Comments
 (0)