From 9fc86347046140fca0c4cb7c4f830a2fc2dc6acb Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 20 Jun 2024 20:46:26 -0500 Subject: [PATCH] fix: Typo during reading slug_length, fixes #24 --- actix/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix/src/utils.rs b/actix/src/utils.rs index 2b47783..a72f36e 100644 --- a/actix/src/utils.rs +++ b/actix/src/utils.rs @@ -49,7 +49,7 @@ pub fn add_link(req: String, db: &Connection) -> (bool, String) { } let style = env::var("slug_style").unwrap_or(String::from("Pair")); - let mut len = env::var("slug_style") + let mut len = env::var("slug_length") .ok() .and_then(|s| s.parse::().ok()) .unwrap_or(8);