refactor persistency
This commit is contained in:
@ -8,6 +8,12 @@ pub enum TextureFormat {
|
||||
JPEG,
|
||||
}
|
||||
|
||||
impl TextureFormat {
|
||||
fn variants() -> &'static [TextureFormat] {
|
||||
&[TextureFormat::PNG, TextureFormat::JPEG]
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
// Lol, I thought we would need custom code, like for Sha256, but it works out of the box :D
|
||||
|
Reference in New Issue
Block a user