Fix assorted Clippy lints (#3390)

This commit is contained in:
Dennis Kobert
2025-11-17 08:58:31 +01:00
committed by GitHub
parent ebb434692a
commit 181c30bc0a
30 changed files with 669 additions and 694 deletions

View File

@@ -272,7 +272,7 @@ impl NodeGraphExecutor {
use image::{ImageFormat, RgbImage, RgbaImage};
let Some(image) = RgbaImage::from_raw(width, height, data) else {
return Err(format!("Failed to create image buffer for export"));
return Err("Failed to create image buffer for export".to_string());
};
let mut encoded = Vec::new();
@@ -298,7 +298,7 @@ impl NodeGraphExecutor {
}
}
FileType::Svg => {
return Err(format!("SVG cannot be exported from an image buffer"));
return Err("SVG cannot be exported from an image buffer".to_string());
}
}