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]
|
||||
resolver = "2"
|
||||
resolver = "3"
|
||||
members = ["mark", "mark-bin"]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
|
||||
[workspace.dependencies]
|
||||
clap = { version = "4.5.21", features = ["derive", "deprecated"] }
|
||||
|
|
@ -28,7 +28,6 @@ rust.redundant_imports = "warn"
|
|||
rust.redundant_lifetimes = "warn"
|
||||
rust.single_use_lifetimes = "warn"
|
||||
rust.unit_bindings = "warn"
|
||||
rust.unnameable_types = "warn"
|
||||
rust.unused_crate_dependencies = "warn"
|
||||
rust.unused_import_braces = "warn"
|
||||
rust.unused_lifetimes = "warn"
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
[package]
|
||||
name = "mark-bin"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
version = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
clap.workspace = true
|
||||
image.workspace = true
|
||||
mark.workspace = true
|
||||
palette.workspace = true
|
||||
clap = { workspace = true }
|
||||
image = { workspace = true }
|
||||
mark = { workspace = true }
|
||||
palette = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
[package]
|
||||
name = "mark"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
version = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
image.workspace = true
|
||||
palette.workspace = true
|
||||
rand.workspace = true
|
||||
image = { workspace = true }
|
||||
palette = { workspace = true }
|
||||
rand = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ use std::marker::PhantomData;
|
|||
|
||||
use image::RgbaImage;
|
||||
use palette::{
|
||||
color_difference::{Ciede2000, HyAb},
|
||||
Clamp, IntoColor, Lab, Srgb,
|
||||
color_difference::{Ciede2000, HyAb},
|
||||
};
|
||||
use rand::{rngs::SmallRng, Rng, SeedableRng};
|
||||
use rand::{Rng, SeedableRng, rngs::SmallRng};
|
||||
|
||||
use crate::util;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue