diff --git a/core/http/src/handling/request/form_utils.rs b/core/http/src/handling/request/form_utils.rs index 7991f4d2febcbbb38d8066a6d5f0be87a9e14790..67ada474f0407637a80d4932c5bcc747927c1765 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 3005eb301f08bfb42a5392bea92b81093aec6ee6..bbb5ac3ac4f83e2f4ed556342a3d69eafaadb1a6 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: /// ```