mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
fix impl assertions
This commit is contained in:
parent
98faa61afe
commit
ff4b2d251f
@ -110,9 +110,8 @@ mod tests {
|
||||
use super::*;
|
||||
use crate::body::to_bytes;
|
||||
|
||||
assert_impl_all!(BoxBody: MessageBody, fmt::Debug, Unpin);
|
||||
|
||||
assert_not_impl_any!(BoxBody: Send, Sync, Unpin);
|
||||
assert_impl_all!(BoxBody: fmt::Debug, MessageBody, Unpin);
|
||||
assert_not_impl_any!(BoxBody: Send, Sync);
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn nested_boxed_body() {
|
||||
|
@ -181,12 +181,12 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
assert_impl_all!(AnyBody<()>: MessageBody, fmt::Debug, Send, Sync, Unpin);
|
||||
assert_impl_all!(AnyBody<AnyBody<()>>: MessageBody, fmt::Debug, Send, Sync, Unpin);
|
||||
assert_impl_all!(AnyBody<Bytes>: MessageBody, fmt::Debug, Send, Sync, Unpin);
|
||||
assert_impl_all!(AnyBody: MessageBody, fmt::Debug, Unpin);
|
||||
assert_impl_all!(AnyBody<PinType>: MessageBody);
|
||||
assert_impl_all!(AnyBody<()>: Send, Sync, Unpin, fmt::Debug, MessageBody);
|
||||
assert_impl_all!(AnyBody<AnyBody<()>>: Send, Sync, Unpin, fmt::Debug, MessageBody);
|
||||
assert_impl_all!(AnyBody<Bytes>: Send, Sync, Unpin, fmt::Debug, MessageBody);
|
||||
assert_impl_all!(AnyBody: Unpin, fmt::Debug, MessageBody);
|
||||
assert_impl_all!(AnyBody<PinType>: Send, Sync, MessageBody);
|
||||
|
||||
assert_not_impl_any!(AnyBody: Send, Sync, Unpin);
|
||||
assert_not_impl_any!(AnyBody<PinType>: Send, Sync, Unpin);
|
||||
assert_not_impl_any!(AnyBody: Send, Sync);
|
||||
assert_not_impl_any!(AnyBody<PinType>: Unpin);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user