Skip to content

Commit

Permalink
Fixed clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug committed Dec 12, 2024
1 parent cc25961 commit fc30537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/shared/src/order_quoting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ pub enum FindQuoteError {
NotFound(Option<QuoteId>),

#[error("quote does not match parameters")]
ParameterMismatch(QuoteData),
ParameterMismatch(Box<QuoteData>),

#[error("quote expired")]
Expired(DateTime<Utc>),
Expand Down Expand Up @@ -579,7 +579,7 @@ impl OrderQuoting for OrderQuoter {
.ok_or(FindQuoteError::NotFound(Some(id)))?;

if !parameters.matches(&data) {
return Err(FindQuoteError::ParameterMismatch(data));
return Err(FindQuoteError::ParameterMismatch(Box::new(data)));
}
if data.expiration < now {
return Err(FindQuoteError::Expired(data.expiration));
Expand Down

0 comments on commit fc30537

Please sign in to comment.