diff options
| author | jack-t <jackmaverick1@gmail.com> | 2019-10-04 01:56:57 -0400 |
|---|---|---|
| committer | jack-t <jackmaverick1@gmail.com> | 2019-10-29 18:11:12 +0000 |
| commit | 08ca2360c4e817acab717dfb7e5a93d5af35cc06 (patch) | |
| tree | 60c77a2ca3cf9241561b0b9f717ae9b2cb6cc0cb /src/librustc_data_structures | |
| parent | 032a53a06ce293571e51bbe621a5c480e8a28e95 (diff) | |
| download | rust-08ca2360c4e817acab717dfb7e5a93d5af35cc06.tar.gz rust-08ca2360c4e817acab717dfb7e5a93d5af35cc06.zip | |
Add lint for unnecessary parens around types
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/owning_ref/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_data_structures/owning_ref/mod.rs b/src/librustc_data_structures/owning_ref/mod.rs index b835b1706b8..0213eb4f2a2 100644 --- a/src/librustc_data_structures/owning_ref/mod.rs +++ b/src/librustc_data_structures/owning_ref/mod.rs @@ -1046,14 +1046,14 @@ unsafe impl<O, T: ?Sized> CloneStableAddress for OwningRef<O, T> where O: CloneStableAddress {} unsafe impl<O, T: ?Sized> Send for OwningRef<O, T> - where O: Send, for<'a> (&'a T): Send {} + where O: Send, for<'a> &'a T: Send {} unsafe impl<O, T: ?Sized> Sync for OwningRef<O, T> - where O: Sync, for<'a> (&'a T): Sync {} + where O: Sync, for<'a> &'a T: Sync {} unsafe impl<O, T: ?Sized> Send for OwningRefMut<O, T> - where O: Send, for<'a> (&'a mut T): Send {} + where O: Send, for<'a> &'a mut T: Send {} unsafe impl<O, T: ?Sized> Sync for OwningRefMut<O, T> - where O: Sync, for<'a> (&'a mut T): Sync {} + where O: Sync, for<'a> &'a mut T: Sync {} impl Debug for dyn Erased { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
