Skip to content

Commit

Permalink
Change allow to conditional expect
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyyyylime committed Nov 20, 2024
1 parent 993bceb commit 7b57a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fn decode_char(text: &str) -> StrResult<char> {
.and_then(|n| char::from_u32(n))
.ok_or_else(|| format!("invalid unicode escape {hex:?}"))?;

#[allow(unused_variables)]
#[cfg_attr(not(feature = "unicode_names2"), expect(unused_variables))]
if let Some(name) = name {
#[cfg(feature = "unicode_names2")]
if unicode_names2::character(name) != Some(ch) {
Expand Down

0 comments on commit 7b57a1c

Please sign in to comment.