Update to rust edition 2024
This commit is contained in:
parent
2345d80d80
commit
36bba029f4
4 changed files with 15 additions and 16 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "2"
|
resolver = "3"
|
||||||
members = ["mark", "mark-bin"]
|
members = ["mark", "mark-bin"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
clap = { version = "4.5.21", features = ["derive", "deprecated"] }
|
clap = { version = "4.5.21", features = ["derive", "deprecated"] }
|
||||||
|
|
@ -28,7 +28,6 @@ rust.redundant_imports = "warn"
|
||||||
rust.redundant_lifetimes = "warn"
|
rust.redundant_lifetimes = "warn"
|
||||||
rust.single_use_lifetimes = "warn"
|
rust.single_use_lifetimes = "warn"
|
||||||
rust.unit_bindings = "warn"
|
rust.unit_bindings = "warn"
|
||||||
rust.unnameable_types = "warn"
|
|
||||||
rust.unused_crate_dependencies = "warn"
|
rust.unused_crate_dependencies = "warn"
|
||||||
rust.unused_import_braces = "warn"
|
rust.unused_import_braces = "warn"
|
||||||
rust.unused_lifetimes = "warn"
|
rust.unused_lifetimes = "warn"
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
[package]
|
[package]
|
||||||
name = "mark-bin"
|
name = "mark-bin"
|
||||||
version.workspace = true
|
version = { workspace = true }
|
||||||
edition.workspace = true
|
edition = { workspace = true }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap.workspace = true
|
clap = { workspace = true }
|
||||||
image.workspace = true
|
image = { workspace = true }
|
||||||
mark.workspace = true
|
mark = { workspace = true }
|
||||||
palette.workspace = true
|
palette = { workspace = true }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
[package]
|
[package]
|
||||||
name = "mark"
|
name = "mark"
|
||||||
version.workspace = true
|
version = { workspace = true }
|
||||||
edition.workspace = true
|
edition = { workspace = true }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
image.workspace = true
|
image = { workspace = true }
|
||||||
palette.workspace = true
|
palette = { workspace = true }
|
||||||
rand.workspace = true
|
rand = { workspace = true }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ use std::marker::PhantomData;
|
||||||
|
|
||||||
use image::RgbaImage;
|
use image::RgbaImage;
|
||||||
use palette::{
|
use palette::{
|
||||||
color_difference::{Ciede2000, HyAb},
|
|
||||||
Clamp, IntoColor, Lab, Srgb,
|
Clamp, IntoColor, Lab, Srgb,
|
||||||
|
color_difference::{Ciede2000, HyAb},
|
||||||
};
|
};
|
||||||
use rand::{rngs::SmallRng, Rng, SeedableRng};
|
use rand::{Rng, SeedableRng, rngs::SmallRng};
|
||||||
|
|
||||||
use crate::util;
|
use crate::util;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue