Derive Clone for ImageLoaderSettings and ImageFormatSetting (#18335)

# Objective

I was setting up an asset loader that passes settings through to
`ImageLoader`, and i have to clone the settings to achieve this.

## Solution

Derive `Clone` for `ImageLoaderSettings` and `ImageFormatSetting`.

## Testing

Full CI passed.
This commit is contained in:
noxmore 2025-03-16 11:57:25 -07:00 committed by GitHub
parent 70514229da
commit 18f543474d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,7 @@ impl ImageLoader {
}
}
#[derive(Serialize, Deserialize, Default, Debug)]
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
pub enum ImageFormatSetting {
#[default]
FromExtension,
@ -89,7 +89,7 @@ pub enum ImageFormatSetting {
Guess,
}
#[derive(Serialize, Deserialize, Debug)]
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct ImageLoaderSettings {
pub format: ImageFormatSetting,
pub is_srgb: bool,