Skip to content

Commit

Permalink
chore: Fix usage of TipRequest::to_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
jbencin committed Jan 3, 2025
1 parent b7c82ca commit 9ae3d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stackslib/src/net/httpcore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ impl HttpRequestContentsExtensions for HttpRequestContents {
/// Use a particular tip request
fn for_tip(mut self, tip_req: TipRequest) -> Self {
if tip_req != TipRequest::UseLatestAnchoredTip {
self.query_arg("tip".to_string(), format!("{}", &tip_req.to_string()))
self.query_arg("tip".to_string(), tip_req.to_string())
} else {
let _ = self.take_query_arg(&"tip".to_string());
self
Expand Down

0 comments on commit 9ae3d77

Please sign in to comment.