From 258a67fe76b9b8d1c553b3d08e684a22e81157ff Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 24 Sep 2014 19:48:54 -0700 Subject: [PATCH] enforce Request/Response to be Send --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c1db1d73..4b6efd9c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -211,3 +211,12 @@ pub enum HttpError { HttpIoError(IoError), } +//FIXME: when Opt-in Built-in Types becomes a thing, we can force these structs +//to be Send. For now, this has the compiler do a static check. +fn _assert_send() { + _assert_send::>(); + _assert_send::(); + + _assert_send::(); + _assert_send::>(); +}