Skip to content

Commit e5a726f

Browse files
committed
Revert "Response: add set_error()"
This reverts commit 3b0407f.
1 parent a749a59 commit e5a726f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/response.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,6 @@ impl Response {
483483
self.error.take()
484484
}
485485

486-
/// Sets an `Error` on the response, accessible via `error()` and `take_error()`.
487-
pub fn set_error(&mut self, error: Error) {
488-
self.error = Some(error);
489-
}
490-
491486
/// Get the HTTP version, if one has been set.
492487
///
493488
/// # Examples

0 commit comments

Comments
 (0)