Skip to content

Commit 25c9b33

Browse files
committed
error: squash warning on older versions of Rust
Kind of interesting that this doesn't appear on newer versions of Rust. I think it's technically correct?
1 parent e5e140d commit 25c9b33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/error/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,10 @@ impl core::fmt::Display for CrateFeatureError {
696696
TzdbZoneInfo => "tzdb-zoneinfo",
697697
};
698698
#[allow(unreachable_code)]
699-
core::fmt::Display::fmt(name, f)?;
700-
f.write_str("` is not enabled")
699+
{
700+
core::fmt::Display::fmt(name, f)?;
701+
f.write_str("` is not enabled")
702+
}
701703
}
702704
}
703705

0 commit comments

Comments
 (0)