Add Send + Sync check to all services (#277)

Should prevent us accidentally introducing breaking changes.

Fixes https://github.com/tokio-rs/axum/issues/275
This commit is contained in:
David Pedersen
2021-08-26 20:59:55 +02:00
committed by GitHub
parent e6ca9e4b04
commit 4c5068c01f
8 changed files with 77 additions and 0 deletions
+2
View File
@@ -721,3 +721,5 @@ where
pub(crate) fn assert_send<T: Send>() {}
pub(crate) fn assert_sync<T: Sync>() {}
pub(crate) fn assert_unpin<T: Unpin>() {}
pub(crate) struct NotSendSync(*const ());