Skip to content
Snippets Groups Projects
Commit b9320218 authored by codecraft's avatar codecraft :crocodile:
Browse files

small performance increase

parent e43effce
No related branches found
No related tags found
1 merge request!1Initial feature merge
...@@ -157,7 +157,7 @@ impl Request { ...@@ -157,7 +157,7 @@ impl Request {
.trim_matches('"'); .trim_matches('"');
let mut temp_bound = "--".to_string(); let mut temp_bound = "--".to_string();
temp_bound.push_str(boundary); 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'); temp_bound.push('\r');
let boundary = temp_bound.as_bytes(); let boundary = temp_bound.as_bytes();
Self::get_multipart_data(data, boundary, &end_boundary, &mut keymap); Self::get_multipart_data(data, boundary, &end_boundary, &mut keymap);
......
use std::{error::Error, str::FromStr, time::Duration}; use std::{error::Error, str::FromStr, time::Duration};
use crate::handling::response::CookieBuilder;
/// Structure representing a Cookie /// Structure representing a Cookie
/// # Creating a Cookie: /// # Creating a Cookie:
/// ``` /// ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment