From 097122ac3bb3f3f8bb4ad8f69949e810a3349a17 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Wed, 12 Jun 2024 11:31:38 +0200 Subject: [PATCH] Run cargo fmt --- src/goose.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/goose.rs b/src/goose.rs index 6f7dc5c7..68c0450f 100644 --- a/src/goose.rs +++ b/src/goose.rs @@ -291,12 +291,12 @@ use downcast_rs::{impl_downcast, Downcast}; use regex::Regex; use reqwest::{header, Client, ClientBuilder, Method, RequestBuilder, Response}; use serde::{Deserialize, Serialize}; +use std::fmt::{Debug, Formatter}; use std::hash::{Hash, Hasher}; use std::sync::Arc; use std::time::Duration; use std::{fmt, str}; use std::{future::Future, pin::Pin, time::Instant}; -use std::fmt::{Debug, Formatter}; use url::Url; use crate::logger::GooseLog; @@ -828,8 +828,8 @@ trait CloneGooseUserData { } impl CloneGooseUserData for T - where - T: GooseUserData + Clone + 'static, +where + T: GooseUserData + Clone + 'static, { fn clone_goose_user_data(&self) -> Box { Box::new(self.clone()) @@ -913,12 +913,15 @@ impl Clone for GooseUser { load_test_hash: self.load_test_hash, request_cadence: self.request_cadence.clone(), slept: self.slept, - session_data: if self.session_data.is_some() { Option::from(self.session_data.clone_goose_user_data()) } else { None }, + session_data: if self.session_data.is_some() { + Option::from(self.session_data.clone_goose_user_data()) + } else { + None + }, } } } - impl Debug for dyn GooseUserData { fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result { write!(fmt, "GooseUserData")