1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00

fix impl assertions

This commit is contained in:
Rob Ede 2022-02-08 14:32:57 +00:00
parent 98faa61afe
commit ff4b2d251f
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 9 additions and 10 deletions

View File

@ -110,9 +110,8 @@ mod tests {
use super::*; use super::*;
use crate::body::to_bytes; use crate::body::to_bytes;
assert_impl_all!(BoxBody: MessageBody, fmt::Debug, Unpin); assert_impl_all!(BoxBody: fmt::Debug, MessageBody, Unpin);
assert_not_impl_any!(BoxBody: Send, Sync);
assert_not_impl_any!(BoxBody: Send, Sync, Unpin);
#[actix_rt::test] #[actix_rt::test]
async fn nested_boxed_body() { async fn nested_boxed_body() {

View File

@ -181,12 +181,12 @@ mod tests {
} }
} }
assert_impl_all!(AnyBody<()>: MessageBody, fmt::Debug, Send, Sync, Unpin); assert_impl_all!(AnyBody<()>: Send, Sync, Unpin, fmt::Debug, MessageBody);
assert_impl_all!(AnyBody<AnyBody<()>>: MessageBody, fmt::Debug, Send, Sync, Unpin); assert_impl_all!(AnyBody<AnyBody<()>>: Send, Sync, Unpin, fmt::Debug, MessageBody);
assert_impl_all!(AnyBody<Bytes>: MessageBody, fmt::Debug, Send, Sync, Unpin); assert_impl_all!(AnyBody<Bytes>: Send, Sync, Unpin, fmt::Debug, MessageBody);
assert_impl_all!(AnyBody: MessageBody, fmt::Debug, Unpin); assert_impl_all!(AnyBody: Unpin, fmt::Debug, MessageBody);
assert_impl_all!(AnyBody<PinType>: MessageBody); assert_impl_all!(AnyBody<PinType>: Send, Sync, MessageBody);
assert_not_impl_any!(AnyBody: Send, Sync, Unpin); assert_not_impl_any!(AnyBody: Send, Sync);
assert_not_impl_any!(AnyBody<PinType>: Send, Sync, Unpin); assert_not_impl_any!(AnyBody<PinType>: Unpin);
} }