about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2017-12-23 19:28:33 -0800
committerZack M. Davis <code@zackmdavis.net>2018-01-18 08:33:58 -0800
commit14982db2d68268458a3de03e395b2e9afe518b50 (patch)
treed24dc1e4035a4109c9e78d52762b34eeff645e14 /src/libstd/sys
parent44afd76788df1a63fcd3fe19815eb28dbe9c2bf7 (diff)
downloadrust-14982db2d68268458a3de03e395b2e9afe518b50.tar.gz
rust-14982db2d68268458a3de03e395b2e9afe518b50.zip
in which the unused-parens lint comes to cover function and method args
Resolves #46137.
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs
index cb249af4254..525882c1e1e 100644
--- a/src/libstd/sys/unix/thread.rs
+++ b/src/libstd/sys/unix/thread.rs
@@ -311,8 +311,8 @@ pub mod guard {
 
     #[cfg(target_os = "macos")]
     pub unsafe fn current() -> Option<usize> {
-        Some((libc::pthread_get_stackaddr_np(libc::pthread_self()) as usize -
-              libc::pthread_get_stacksize_np(libc::pthread_self())))
+        Some(libc::pthread_get_stackaddr_np(libc::pthread_self()) as usize -
+             libc::pthread_get_stacksize_np(libc::pthread_self()))
     }
 
     #[cfg(any(target_os = "openbsd", target_os = "bitrig"))]