This commit is contained in:
Ahmed Ibrahim
2026-01-13 14:47:05 -08:00
parent c0a5e8c2cf
commit fe85da4ba4
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -258,7 +258,10 @@ impl ModelPreset {
/// Merge remote presets with existing presets, preferring remote when slugs match.
///
/// Remote presets take precedence. Existing presets not in remote are appended with `is_default` set to false.
pub fn merge(remote_presets: Vec<ModelPreset>, existing_presets: Vec<ModelPreset>) -> Vec<ModelPreset> {
pub fn merge(
remote_presets: Vec<ModelPreset>,
existing_presets: Vec<ModelPreset>,
) -> Vec<ModelPreset> {
if remote_presets.is_empty() {
return existing_presets;
}