diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2017-12-23 19:28:33 -0800 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-01-18 08:33:58 -0800 |
| commit | 14982db2d68268458a3de03e395b2e9afe518b50 (patch) | |
| tree | d24dc1e4035a4109c9e78d52762b34eeff645e14 /src/libstd/sys/unix | |
| parent | 44afd76788df1a63fcd3fe19815eb28dbe9c2bf7 (diff) | |
| download | rust-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/unix')
| -rw-r--r-- | src/libstd/sys/unix/thread.rs | 4 |
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"))] |
