Skip to content

Commit 1a2d6c2

Browse files
committed
format
1 parent 8e35fa3 commit 1a2d6c2

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ you wish to patch. The patch will be merged with the original module, so you
119119
only need to implement the functions that are broken.
120120
Patches can be placed in the `patch` directory or any of the source directories.
121121
122-
> For better c language support in your editor, you can add a `.clangd` and
123-
> `compile_flags.txt` file to the project.
122+
For better c language support in your editor, you can add a `.clangd` and
123+
`compile_flags.txt` file to your project.
124124
125125
`.clangd`:
126126

src/gig/typed_ast.gleam

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,9 +2003,7 @@ fn infer_expression(
20032003
let args = list.flatten([arguments_before, [arg], arguments_after])
20042004
let param = g.FnParameter(g.Named(x), None)
20052005
let lambda =
2006-
g.Fn(span, [param], None, [
2007-
g.Expression(g.Call(span, function, args)),
2008-
])
2006+
g.Fn(span, [param], None, [g.Expression(g.Call(span, function, args))])
20092007
infer_expression(c, n, lambda)
20102008
}
20112009
g.BitString(_, segments) -> {
@@ -2382,12 +2380,12 @@ fn unify(c: Context, a: Type, b: Type) -> Context {
23822380
if aname != bname || amodule != bmodule
23832381
-> {
23842382
panic as error(
2385-
c,
2386-
"failed to unify types \n\n"
2387-
<> string.inspect(a)
2388-
<> "\n"
2389-
<> string.inspect(b),
2390-
)
2383+
c,
2384+
"failed to unify types \n\n"
2385+
<> string.inspect(a)
2386+
<> "\n"
2387+
<> string.inspect(b),
2388+
)
23912389
}
23922390
NamedType(_, _, aargs), NamedType(_, _, bargs) -> {
23932391
case list.strict_zip(aargs, bargs) {
@@ -2416,12 +2414,12 @@ fn unify(c: Context, a: Type, b: Type) -> Context {
24162414
}
24172415
_, _ -> {
24182416
panic as error(
2419-
c,
2420-
"failed to unify types \n\n"
2421-
<> string.inspect(a)
2422-
<> "\n"
2423-
<> string.inspect(b),
2424-
)
2417+
c,
2418+
"failed to unify types \n\n"
2419+
<> string.inspect(a)
2420+
<> "\n"
2421+
<> string.inspect(b),
2422+
)
24252423
}
24262424
}
24272425
}

0 commit comments

Comments
 (0)