From 2b667952cde60999c86204a06806cca036dc4619 Mon Sep 17 00:00:00 2001 From: Malte Tancred Date: Wed, 10 Apr 2024 14:29:21 +0200 Subject: [PATCH] rustfmt --- src/actions/request.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/actions/request.rs b/src/actions/request.rs index 662e722..99293bb 100644 --- a/src/actions/request.rs +++ b/src/actions/request.rs @@ -5,7 +5,8 @@ use async_trait::async_trait; use colored::Colorize; use reqwest::{ header::{self, HeaderMap, HeaderName, HeaderValue}, - ClientBuilder, Method, Response, redirect::Policy + redirect::Policy, + ClientBuilder, Method, Response, }; use std::fmt::Write; use url::Url; @@ -173,11 +174,15 @@ impl Request { if let Some(cookies) = context.get("cookies") { let cookies: Map = serde_json::from_value(cookies.clone()).unwrap(); - let cookie = cookies.iter().map(|(key, value)| { - let v = value.to_string(); - let trimmedval = v.trim_matches('"'); - format!("{key}={trimmedval}") - }).collect::>().join(";"); + let cookie = cookies + .iter() + .map(|(key, value)| { + let v = value.to_string(); + let trimmedval = v.trim_matches('"'); + format!("{key}={trimmedval}") + }) + .collect::>() + .join(";"); headers.insert(header::COOKIE, HeaderValue::from_str(&cookie).unwrap()); }