Make some improvements as suggested by clippy

This commit is contained in:
Slavi Pantaleev
2025-05-10 09:33:44 +03:00
parent 3ffa50b7b9
commit ac4f2080ce
4 changed files with 10 additions and 10 deletions

View File

@@ -6,11 +6,11 @@ pub fn determine_controller(
) -> ControllerType {
let text = text.trim();
if let Some(prompt) = text.strip_prefix(&format!("create")) {
if let Some(prompt) = text.strip_prefix("create") {
return ControllerType::ImageGeneration(prompt.trim().to_owned());
}
if let Some(prompt) = text.strip_prefix(&format!("edit")) {
if let Some(prompt) = text.strip_prefix("edit") {
return ControllerType::ImageEdit(prompt.trim().to_owned());
}