Add a test to ensure that Authenticator is Send+Sync

This commit is contained in:
Glenn Griffin
2019-11-23 15:00:38 -08:00
parent c829fb453d
commit 497ebf61c5

View File

@@ -429,3 +429,14 @@ enum StorageType {
Memory,
Disk(PathBuf),
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn ensure_send_sync() {
fn is_send_sync<T: Send + Sync>() {}
is_send_sync::<Authenticator<<DefaultHyperClient as HyperClientBuilder>::Connector>>()
}
}