mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-07 03:31:31 +01:00
Add a test to ensure that Authenticator is Send+Sync
This commit is contained in:
@@ -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>>()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user