Skip to content

Commit

Permalink
Allow request::Method to be copied and cloned
Browse files Browse the repository at this point in the history
This enables looping over the same request call for retries.
  • Loading branch information
konkers committed Sep 21, 2024
1 parent 889c6e7 commit 275c790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ where
}
}

#[derive(Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
/// HTTP request methods
pub enum Method {
Expand Down

0 comments on commit 275c790

Please sign in to comment.