diff --git a/src/main.rs b/src/main.rs index 91e87e4..7a2e0ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -265,7 +265,7 @@ enum ContextType { Full, } impl ContextType { - fn to_sd_context_type(&self) -> llama_core::SDContextType { + fn to_sd_context_type(self) -> llama_core::SDContextType { match self { ContextType::TextToImage => llama_core::SDContextType::TextToImage, ContextType::ImageToText => llama_core::SDContextType::ImageToImage,