diff options
Diffstat (limited to 'src/libstd/sync/rwlock.rs')
| -rw-r--r-- | src/libstd/sync/rwlock.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index cd833b17867..6fd2a6ed77d 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -64,8 +64,8 @@ pub struct RwLock<T> { data: UnsafeCell<T>, } -unsafe impl<T:'static+Send> Send for RwLock<T> {} -unsafe impl<T> Sync for RwLock<T> {} +unsafe impl<T: Send + Sync> Send for RwLock<T> {} +unsafe impl<T: Send + Sync> Sync for RwLock<T> {} /// Structure representing a statically allocated RwLock. /// |
