1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 10:44:07 +02:00

fix --no-default-features

This commit is contained in:
Robin Appelman 2025-02-15 16:59:31 +01:00
commit 2bb996236e
2 changed files with 6 additions and 1 deletions

View file

@ -278,6 +278,7 @@ impl<'de> Deserialize<'de> for LightColor {
}
}
#[allow(dead_code)]
pub(crate) fn bool_from_int<'de, D: Deserializer<'de>>(deserializer: D) -> Result<bool, D::Error> {
let int = u8::deserialize(deserializer)?;
Ok(int != 0)