Skip to content

Commit

Permalink
crystal tool format with Crystal 1.15.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Oct 11, 2024
1 parent fd5540f commit c25e9ed
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion spec/dependency_graph/log_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end

describe Molinillo::DependencyGraph::Log do
describe "with empty log" do
shared_examples_for_replay ->(_g : DG) {}
shared_examples_for_replay ->(_g : DG) { }
end

describe "with some graph" do
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper/versions.cr
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module Shards
end
end

def only_zeroes?
def only_zeroes?(&)
return if empty?
yield unless to_i? == 0

Expand Down
2 changes: 1 addition & 1 deletion src/molinillo/delegates/specification_provider.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module Molinillo
# Ensures any raised {NoSuchDependencyError} has its
# {NoSuchDependencyError#required_by} set.
# @yield
private def with_no_such_dependency_error_handling
private def with_no_such_dependency_error_handling(&)
yield
rescue error : NoSuchDependencyError
if state
Expand Down
2 changes: 1 addition & 1 deletion src/molinillo/dependency_graph.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require "./dependency_graph/vertex"
class Molinillo::DependencyGraph(P, R)
# Enumerates through the vertices of the graph.
# @return [Array<Vertex>] The graph's vertices.
def each
def each(&)
# return vertices.values.each unless block_given?
vertices.values.each { |v| yield v }
end
Expand Down
2 changes: 1 addition & 1 deletion src/molinillo/dependency_graph/log.cr
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Molinillo::DependencyGraph::Log(P, R)

# Enumerates each action in the log
# @yield [Action]
def each
def each(&)
action = @first_action
loop do
break unless action
Expand Down
2 changes: 1 addition & 1 deletion src/molinillo/modules/ui.cr
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Molinillo
#
# @param [Integer] depth the current depth of the resolution process.
# @return [void]
def debug(depth = 0)
def debug(depth = 0, &)
if debug?
debug_info = yield
debug_info = debug_info.inspect unless debug_info.is_a?(String)
Expand Down
2 changes: 1 addition & 1 deletion src/molinillo/resolution.cr
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ module Molinillo
# @param [Integer] depth the depth of the {#states} stack
# @param [Proc] block a block that yields a {#to_s}
# @return [void]
private def debug(depth = 0)
private def debug(depth = 0, &)
resolver_ui.debug(depth) { yield }
end

Expand Down

0 comments on commit c25e9ed

Please sign in to comment.