Skip to content

Commit

Permalink
chore(rust): migrate to edition 2021
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
LGUG2Z committed Oct 21, 2021
1 parent d3cb9e0 commit 7070878
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bindings/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "bindings"
version = "0.1.0"
authors = ["Jade Iqbal"]
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion derive-ahk/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "derive-ahk"
version = "0.1.0"
edition = "2018"
edition = "2021"

[lib]
proc-macro = true
Expand Down
2 changes: 1 addition & 1 deletion komorebi-core/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "komorebi-core"
version = "0.1.6"
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion komorebi/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ description = "A tiling window manager for Windows"
categories = ["tiling-window-manager", "windows"]
repository = "https://github.com/LGUG2Z/komorebi"
license = "MIT"
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion komorebic/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ description = "The command-line interface for Komorebi, a tiling window manager
categories = ["cli", "tiling-window-manager", "windows"]
repository = "https://github.com/LGUG2Z/komorebi"
license = "MIT"
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion komorebic/src/main.rs
Expand Up @@ -132,7 +132,7 @@ macro_rules! gen_workspace_subcommand_args {
$(#[clap(arg_enum)] $($arg_enum)?)?
#[cfg_attr(
all($(FALSE $($arg_enum)?)?),
doc = ""$name" of the workspace as a "$value""
doc = ""$name " of the workspace as a "$value ""
)]
value: $value,
}
Expand Down
1 change: 1 addition & 0 deletions rustfmt.toml
@@ -0,0 +1 @@
imports_granularity = "Item"

0 comments on commit 7070878

Please sign in to comment.