about summary refs log tree commit diff
path: root/src/libstd/sys_common/poison.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sys_common/poison.rs')
-rw-r--r--src/libstd/sys_common/poison.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys_common/poison.rs b/src/libstd/sys_common/poison.rs
index 1625efe4a2a..af93571a604 100644
--- a/src/libstd/sys_common/poison.rs
+++ b/src/libstd/sys_common/poison.rs
@@ -174,7 +174,7 @@ impl<T> PoisonError<T> {
     /// [`RwLock::read`]: ../../std/sync/struct.RwLock.html#method.read
     #[stable(feature = "sync_poison", since = "1.2.0")]
     pub fn new(guard: T) -> PoisonError<T> {
-        PoisonError { guard: guard }
+        PoisonError { guard }
     }
 
     /// Consumes this error indicating that a lock is poisoned, returning the