Skip to content

Commit d1a7fa5

Browse files
committed
test shorthand response
1 parent 0a51365 commit d1a7fa5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/response.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,3 +647,11 @@ impl<'a> IntoIterator for &'a mut Response {
647647
self.headers.iter_mut()
648648
}
649649
}
650+
651+
mod test {
652+
use super::Response;
653+
#[test]
654+
fn construct_shorthand() {
655+
let _res = Response::new(200);
656+
}
657+
}

0 commit comments

Comments
 (0)