diff --git a/.rustfmt.toml b/.rustfmt.toml
index b0be00850d55e..0be5c8f05d51c 100644
--- a/.rustfmt.toml
+++ b/.rustfmt.toml
@@ -5,7 +5,7 @@
 edition = "2021"
 
 # Version of the formatting rules to use.
-version = "Two"
+style_edition = "2021"
 
 # Line endings will be converted to \n.
 newline_style = "Unix"