Skip to content

Commit cbfaf61

Browse files
committed
chore: format with runic
1 parent a720445 commit cbfaf61

File tree

7 files changed

+157
-149
lines changed

7 files changed

+157
-149
lines changed

bin/structure.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import InteractiveUtils, Markdown, TextWrap
55

66
# Rather than generating the file directly, we'll write the output to a buffer
77
# first, so that we wouldn't end up with a partial file if there is some error.
8-
buffer = let buffer = IOBuffer(; write=true)
8+
buffer = let buffer = IOBuffer(; write = true)
99
write(
1010
buffer,
1111
"""
@@ -28,7 +28,7 @@ buffer = let buffer = IOBuffer(; write=true)
2828

2929
all_targets = Dict{String, Vector{String}}()
3030
ignore_errors = (
31-
PkgAuthentication.Failure, PkgAuthentication.Success
31+
PkgAuthentication.Failure, PkgAuthentication.Success,
3232
)
3333
for line in readlines(pathof(PkgAuthentication))
3434
m = match(r"^function step\(state::(.+?)\)::Union{(.+?)}$", line)
@@ -37,7 +37,7 @@ buffer = let buffer = IOBuffer(; write=true)
3737
end
3838
end
3939
choice_index = 0
40-
for state in sort(InteractiveUtils.subtypes(PkgAuthentication.State); by=string)
40+
for state in sort(InteractiveUtils.subtypes(PkgAuthentication.State); by = string)
4141
println(buffer)
4242
state_str = string(nameof(state))
4343
# Generate the connecting arrows between the states
@@ -67,8 +67,8 @@ buffer = let buffer = IOBuffer(; write=true)
6767
docstr_text = docstr.meta[:results][1].text[1]
6868
println(buffer, " note left of $(state_str)")
6969
TextWrap.print_wrapped(
70-
buffer, docstr_text; width=65,
71-
initial_indent=8, subsequent_indent=8,
70+
buffer, docstr_text; width = 65,
71+
initial_indent = 8, subsequent_indent = 8,
7272
)
7373
println(buffer)
7474
println(buffer, " end note")

0 commit comments

Comments
 (0)