Skip to content
Snippets Groups Projects
Verified Commit e4ff2ef6 authored by Louis's avatar Louis :fire:
Browse files

Clippy Lints

parent bee6ef6e
No related branches found
No related tags found
No related merge requests found
Pipeline #546 waiting for manual action with stages
in 1 minute and 28 seconds
......@@ -233,7 +233,7 @@ dependencies = [
[[package]]
name = "crunch-cli"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"anyhow",
"clap",
......
use crate::utils::new_image;
use clap::Parser;
use image::{GenericImage, GenericImageView, Pixel, Rgba, RgbaImage};
use rayon::prelude::*;
use serde::{Deserialize, Serialize};
use std::collections::HashSet;
use std::ops::{Deref, DerefMut};
use std::path::PathBuf;
use std::sync::Arc;
fn default_max_size() -> usize {
2048
}
/// Extract individual, non-square sprites from a given spritesheet
#[derive(Parser, Serialize, Deserialize, Clone, Debug)]
......@@ -27,7 +20,6 @@ pub struct Extract {
struct PixelData {
x: u32,
y: u32,
pixel: Rgba<u8>,
}
#[derive(Debug)]
......@@ -133,11 +125,7 @@ impl Extract {
continue;
}
current.push(PixelData {
x: cx,
y: cy,
pixel,
});
current.push(PixelData { x: cx, y: cy });
let x = [-1, 0, 1];
let y = [-1, 0, 1];
......
use crate::utils::TypedOutputFormat;
use clap::{Parser, ValueEnum};
use image::{imageops, GenericImage, ImageFormat, Pixel};
use clap::Parser;
use image::{GenericImage, ImageFormat, Pixel};
use serde::{Deserialize, Serialize};
/// Extract Information About An Image
......
......@@ -24,7 +24,7 @@ pub struct Reduce {
}
impl Reduce {
pub fn run<T: GenericImage>(&self, _image: &T) -> anyhow::Result<RgbaOutputFormat> {
pub fn _run<T: GenericImage>(&self, _image: &T) -> anyhow::Result<RgbaOutputFormat> {
Err(Error::msg("Reduce is not implemented"))
// TODO: Reduce impl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment