Migrate to the 2024 rust edition
This commit is contained in:
parent
e7d23083b0
commit
debd3795e9
2 changed files with 3 additions and 5 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "2"
|
resolver = "3"
|
||||||
members = ["showbits-assets", "showbits-common", "showbits-thermal-printer"]
|
members = ["showbits-assets", "showbits-common", "showbits-thermal-printer"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
anyhow = "1.0.83"
|
anyhow = "1.0.83"
|
||||||
|
|
@ -54,9 +54,6 @@ rust.unused_lifetimes = "warn"
|
||||||
rust.unused_qualifications = "warn"
|
rust.unused_qualifications = "warn"
|
||||||
# Clippy
|
# Clippy
|
||||||
clippy.use_self = "warn"
|
clippy.use_self = "warn"
|
||||||
# Migrating to the 2024 edition
|
|
||||||
rust.rust_2024_compatibility = "warn"
|
|
||||||
rust.tail_expr_drop_order = { level = "allow", priority = 1 }
|
|
||||||
|
|
||||||
# Optimize dependencies in debug mode (mainly for faster image exports).
|
# Optimize dependencies in debug mode (mainly for faster image exports).
|
||||||
# Does not apply to workspace members, only "real" dependencies.
|
# Does not apply to workspace members, only "real" dependencies.
|
||||||
|
|
|
||||||
1
rustfmt.toml
Normal file
1
rustfmt.toml
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
style_edition = "2021"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue