Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed Jun 12, 2024
1 parent e1a151a commit 097122a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/goose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -828,8 +828,8 @@ trait CloneGooseUserData {
}

impl<T> CloneGooseUserData for T
where
T: GooseUserData + Clone + 'static,
where
T: GooseUserData + Clone + 'static,
{
fn clone_goose_user_data(&self) -> Box<dyn GooseUserData> {
Box::new(self.clone())
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 097122a

Please sign in to comment.