diff options
| author | bors <bors@rust-lang.org> | 2018-01-20 15:06:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-01-20 15:06:41 +0000 |
| commit | 15a1e2844dfea7850be5c6c901b67ceff370b0eb (patch) | |
| tree | 2929f026038000e5f0ecfdbe6e1e0fb378157a6b /src/libstd/sys/unix/thread.rs | |
| parent | bdda8d61151a91fcc95b059918dd834c8e7ac09e (diff) | |
| parent | 14982db2d68268458a3de03e395b2e9afe518b50 (diff) | |
| download | rust-15a1e2844dfea7850be5c6c901b67ceff370b0eb.tar.gz rust-15a1e2844dfea7850be5c6c901b67ceff370b0eb.zip | |
Auto merge of #46980 - zackmdavis:and_the_case_of_the_needlessly_parenthesized_arguments, r=petrochenkov
in which the unused-parens lint comes to cover function and method args Resolves #46137.
Diffstat (limited to 'src/libstd/sys/unix/thread.rs')
| -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"))] |
