commit c16623b75ad17a7689c6013d7e64d4a1108b8f5c
parent ab504e72382d8dc43ca67351b5eec7003fce994c
Author: Dan Callaghan <djc@djc.id.au>
Date: Sun, 8 May 2022 09:42:52 +1000
fix "warning: `&' interpreted as argument prefix"
Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -649,7 +649,7 @@ EOS
end
def synchronize &b
- @index_mutex.synchronize &b
+ @index_mutex.synchronize(&b)
end
def run_query xapian_query, offset, limit, checkatleast=0
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -310,7 +310,7 @@ EOS
end
def each_raw_message_line &b
- location.each_raw_message_line &b
+ location.each_raw_message_line(&b)
end
def sync_back
diff --git a/lib/sup/source.rb b/lib/sup/source.rb
@@ -102,7 +102,7 @@ class Source
end
def synchronize &block
- @poll_lock.synchronize &block
+ @poll_lock.synchronize(&block)
end
def try_lock
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -403,7 +403,7 @@ class String
unless method_defined? :each
def each &b
- each_line &b
+ each_line(&b)
end
end