about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-21 04:26:15 -0800
committerbors <bors@rust-lang.org>2014-01-21 04:26:15 -0800
commit43cffe9d719170bd342b10d1bb81911f0e14a7c4 (patch)
tree897cd7f2eb52770a2dd4d4c69efc47e1ecc7b4f7 /src/libstd/sync
parent40df5a2e9ac81f445c7122a484618918b752a1e2 (diff)
parent39713b829535b40aff2b7f368839d07ea7c2bf11 (diff)
downloadrust-43cffe9d719170bd342b10d1bb81911f0e14a7c4.tar.gz
rust-43cffe9d719170bd342b10d1bb81911f0e14a7c4.zip
auto merge of #11663 : huonw/rust/paren-lint, r=cmr
The parens in `if (true) {}` are not necessary, so we'll warn about them.

cc #3070 and #11432
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/mpmc_bounded_queue.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpmc_bounded_queue.rs b/src/libstd/sync/mpmc_bounded_queue.rs
index bf02bf204a5..18be85152d7 100644
--- a/src/libstd/sync/mpmc_bounded_queue.rs
+++ b/src/libstd/sync/mpmc_bounded_queue.rs
@@ -101,7 +101,7 @@ impl<T: Send> State<T> {
                 } else {
                     pos = enqueue_pos;
                 }
-            } else if (diff < 0) {
+            } else if diff < 0 {
                 return false
             } else {
                 pos = self.enqueue_pos.load(Relaxed);