From 9dde944b46955355a29d00ca12d0cc6eca60ac5a Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 24 Mar 2021 11:19:27 +0000 Subject: [PATCH] Update url.rs --- actix-router/src/url.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-router/src/url.rs b/actix-router/src/url.rs index 904c473e..f669da99 100644 --- a/actix-router/src/url.rs +++ b/actix-router/src/url.rs @@ -171,7 +171,7 @@ impl Quoter { } cloned.map(|data| { - // Unsafe: we get data from http::Uri, which does utf-8 checks already + // SAFETY: we get data from http::Uri, which does UTF-8 checks already // this code only decodes valid pct encoded values unsafe { String::from_utf8_unchecked(data) } })