diff --git a/docs/Cargo.toml b/docs/Cargo.toml
index 54b4a78..4fb463d 100644
--- a/docs/Cargo.toml
+++ b/docs/Cargo.toml
@@ -8,7 +8,7 @@ license = "CC-BY-SA-4.0"
 repository = "https://github.com/lambda-fairy/maud"
 description = "Documentation for Maud."
 
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 comrak = { version = "*", default-features = false }
diff --git a/doctest/Cargo.toml b/doctest/Cargo.toml
index c55afcd..35df0a4 100644
--- a/doctest/Cargo.toml
+++ b/doctest/Cargo.toml
@@ -2,7 +2,7 @@
 name = "doctest"
 version = "0.1.0"
 authors = ["Chris Wong <lambda.fairy@gmail.com>"]
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 actix-web = { version = "4.0.0-rc.2", default-features = false, features = ["macros"] }