Skip to content

Commit 98e6d12

Browse files
committed
rename std::sync::RWLockWriteGuard to RwLockWriteGuard
1 parent 956cab6 commit 98e6d12

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libstd/sync/rwlock.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub struct RwLockReadGuard<'a, T: 'a> {
120120
/// dropped.
121121
#[must_use]
122122
#[stable]
123-
pub struct RWLockWriteGuard<'a, T: 'a> {
123+
pub struct RwLockWriteGuard<'a, T: 'a> {
124124
__lock: &'a StaticRwLock,
125125
__data: &'a UnsafeCell<T>,
126126
__poison: poison::Guard,
@@ -313,11 +313,11 @@ impl<'rwlock, T> RwLockReadGuard<'rwlock, T> {
313313
})
314314
}
315315
}
316-
impl<'rwlock, T> RWLockWriteGuard<'rwlock, T> {
316+
impl<'rwlock, T> RwLockWriteGuard<'rwlock, T> {
317317
fn new(lock: &'rwlock StaticRwLock, data: &'rwlock UnsafeCell<T>)
318-
-> LockResult<RWLockWriteGuard<'rwlock, T>> {
318+
-> LockResult<RwLockWriteGuard<'rwlock, T>> {
319319
poison::map_result(lock.poison.borrow(), |guard| {
320-
RWLockWriteGuard {
320+
RwLockWriteGuard {
321321
__lock: lock,
322322
__data: data,
323323
__poison: guard,
@@ -332,12 +332,12 @@ impl<'rwlock, T> Deref for RwLockReadGuard<'rwlock, T> {
332332

333333
fn deref(&self) -> &T { unsafe { &*self.__data.get() } }
334334
}
335-
impl<'rwlock, T> Deref for RWLockWriteGuard<'rwlock, T> {
335+
impl<'rwlock, T> Deref for RwLockWriteGuard<'rwlock, T> {
336336
type Target = T;
337337

338338
fn deref(&self) -> &T { unsafe { &*self.__data.get() } }
339339
}
340-
impl<'rwlock, T> DerefMut for RWLockWriteGuard<'rwlock, T> {
340+
impl<'rwlock, T> DerefMut for RwLockWriteGuard<'rwlock, T> {
341341
fn deref_mut(&mut self) -> &mut T {
342342
unsafe { &mut *self.__data.get() }
343343
}
@@ -351,7 +351,7 @@ impl<'a, T> Drop for RwLockReadGuard<'a, T> {
351351
}
352352

353353
#[unsafe_destructor]
354-
impl<'a, T> Drop for RWLockWriteGuard<'a, T> {
354+
impl<'a, T> Drop for RwLockWriteGuard<'a, T> {
355355
fn drop(&mut self) {
356356
self.__lock.poison.done(&self.__poison);
357357
unsafe { self.__lock.lock.write_unlock(); }

0 commit comments

Comments
 (0)