From b9320218a6da2a008c13fd8c24a28a349420717e Mon Sep 17 00:00:00 2001
From: Darius Auding <Darius.auding@gmx.de>
Date: Thu, 13 Jul 2023 23:12:32 +0200
Subject: [PATCH] small performance increase

---
 core/http/src/handling/request/form_utils.rs                | 2 +-
 core/http/src/handling/response/cookie_management/cookie.rs | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/http/src/handling/request/form_utils.rs b/core/http/src/handling/request/form_utils.rs
index 7991f4d..67ada47 100644
--- a/core/http/src/handling/request/form_utils.rs
+++ b/core/http/src/handling/request/form_utils.rs
@@ -157,7 +157,7 @@ impl Request {
                     .trim_matches('"');
                 let mut temp_bound = "--".to_string();
                 temp_bound.push_str(boundary);
-                let end_boundary = format!("{temp_bound}--\r").as_bytes().to_owned();
+                let end_boundary: Vec<u8> = format!("{temp_bound}--\r").into();
                 temp_bound.push('\r');
                 let boundary = temp_bound.as_bytes();
                 Self::get_multipart_data(data, boundary, &end_boundary, &mut keymap);
diff --git a/core/http/src/handling/response/cookie_management/cookie.rs b/core/http/src/handling/response/cookie_management/cookie.rs
index 3005eb3..bbb5ac3 100644
--- a/core/http/src/handling/response/cookie_management/cookie.rs
+++ b/core/http/src/handling/response/cookie_management/cookie.rs
@@ -1,7 +1,5 @@
 use std::{error::Error, str::FromStr, time::Duration};
 
-use crate::handling::response::CookieBuilder;
-
 /// Structure representing a Cookie
 /// # Creating a Cookie:
 /// ```
-- 
GitLab