mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-23 17:18:40 +02:00
chore(rust): migrate to edition 2021
This commit applies 'cargo fix --edition' to safely migrate the project to Edition 2021 of Rust. A rustfmt.toml has also be added to enforce the flattening of use statements when running 'cargo fmt'.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
name = "bindings"
|
name = "bindings"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Jade Iqbal"]
|
authors = ["Jade Iqbal"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "derive-ahk"
|
name = "derive-ahk"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "komorebi-core"
|
name = "komorebi-core"
|
||||||
version = "0.1.6"
|
version = "0.1.6"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ description = "A tiling window manager for Windows"
|
|||||||
categories = ["tiling-window-manager", "windows"]
|
categories = ["tiling-window-manager", "windows"]
|
||||||
repository = "https://github.com/LGUG2Z/komorebi"
|
repository = "https://github.com/LGUG2Z/komorebi"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ description = "The command-line interface for Komorebi, a tiling window manager
|
|||||||
categories = ["cli", "tiling-window-manager", "windows"]
|
categories = ["cli", "tiling-window-manager", "windows"]
|
||||||
repository = "https://github.com/LGUG2Z/komorebi"
|
repository = "https://github.com/LGUG2Z/komorebi"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ macro_rules! gen_workspace_subcommand_args {
|
|||||||
$(#[clap(arg_enum)] $($arg_enum)?)?
|
$(#[clap(arg_enum)] $($arg_enum)?)?
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
all($(FALSE $($arg_enum)?)?),
|
all($(FALSE $($arg_enum)?)?),
|
||||||
doc = ""$name" of the workspace as a "$value""
|
doc = ""$name " of the workspace as a "$value ""
|
||||||
)]
|
)]
|
||||||
value: $value,
|
value: $value,
|
||||||
}
|
}
|
||||||
|
|||||||
1
rustfmt.toml
Normal file
1
rustfmt.toml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
imports_granularity = "Item"
|
||||||
Reference in New Issue
Block a user