Skip to content

Commit d41842e

Browse files
committed
Make formatting worse to appease format check
1 parent 80e1c4e commit d41842e

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

src/RuntimeGeneratedFunctions.jl

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -323,23 +323,31 @@ end
323323
# the body on a remote node when using Serialialization.jl (in Distributed.jl
324324
# and elsewhere)
325325
function Serialization.serialize(s::AbstractSerializer,
326-
rgf::RuntimeGeneratedFunction{argnames, cache_tag, context_tag, id, B}) where {
327-
argnames, cache_tag, context_tag, id, B}
326+
rgf::RuntimeGeneratedFunction{argnames, cache_tag,
327+
context_tag, id, B}) where {
328+
argnames,
329+
cache_tag,
330+
context_tag,
331+
id,
332+
B
333+
}
328334
body = _lookup_body(cache_tag, id)
329-
Serialization.serialize_type(s, RuntimeGeneratedFunction{argnames, cache_tag, context_tag, id, B})
335+
Serialization.serialize_type(s,
336+
RuntimeGeneratedFunction{argnames, cache_tag, context_tag,
337+
id, B})
330338
serialize(s, body)
331339
end
332340

333341
function Serialization.deserialize(s::AbstractSerializer,
334342
::Type{
335343
<:RuntimeGeneratedFunction{argnames, cache_tag,
336344
context_tag, id, B}}) where {
337-
argnames,
338-
cache_tag,
339-
context_tag,
340-
id,
341-
B
342-
}
345+
argnames,
346+
cache_tag,
347+
context_tag,
348+
id,
349+
B
350+
}
343351
body = deserialize(s)
344352
cached_body = _cache_body(cache_tag, id, body)
345353
f = RuntimeGeneratedFunction{argnames, cache_tag, context_tag, id}(cached_body)

test/serialize_rgf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RuntimeGeneratedFunctions.init(@__MODULE__)
88
f = @RuntimeGeneratedFunction(:(x -> "Hi from a separate process. x=$x"))
99
g = drop_expr(@RuntimeGeneratedFunction(:(y -> "Serialization with dropped body. y=$y")))
1010

11-
serialize(stdout, (f,g))
11+
serialize(stdout, (f, g))

0 commit comments

Comments
 (0)