Skip to content

Commit

Permalink
Fix red CI (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored May 17, 2024
1 parent 38c3972 commit 818fea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion puffin/src/frame_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ compile_error!(
// ----------------------------------------------------------------------------

/// See <https://github.com/EmbarkStudios/puffin/pull/130> for pros-and-cons of different compression algorithms.
#[cfg(feature = "packing")]
#[repr(u8)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
enum CompressionKind {
#[allow(dead_code)] // with some feature sets
Uncompressed = 0,

/// Very fast, and lightweight dependency
Expand All @@ -202,6 +202,7 @@ enum CompressionKind {
Zstd = 2,
}

#[cfg(feature = "packing")]
impl CompressionKind {
#[cfg(feature = "serialization")]
fn from_u8(value: u8) -> anyhow::Result<Self> {
Expand Down

0 comments on commit 818fea5

Please sign in to comment.