Skip to content

Commit 113dcf2

Browse files
committed
tests/util/response: Remove redundant status() fn
The `Deref` impl on this struct already provides the same thing.
1 parent 5b3f7b7 commit 113dcf2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/tests/util/response.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ impl<T> Response<T> {
5151
assert_ok!(from_utf8(bytes)).to_string()
5252
}
5353

54-
pub fn status(&self) -> StatusCode {
55-
self.response.status()
56-
}
57-
5854
#[track_caller]
5955
pub fn assert_redirect_ends_with(&self, target: &str) -> &Self {
6056
let headers = self.response.headers();

0 commit comments

Comments
 (0)