Skip to content

Commit 0e57644

Browse files
committed
Fix formatting
1 parent e00a80b commit 0e57644

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lambda-buffers-codegen/src/LambdaBuffers/Codegen/Rust/Print/Syntax.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ printFieldName (PC.FieldName n _) = pretty . toSnakeCase $ n
129129

130130
toSnakeCase :: Text -> Text
131131
toSnakeCase = Text.concatMap f
132-
where f c
133-
| Char.isUpper c = "_" <> Text.toLower (Text.singleton c)
134-
| otherwise = Text.singleton c
135-
132+
where
133+
f c
134+
| Char.isUpper c = "_" <> Text.toLower (Text.singleton c)
135+
| otherwise = Text.singleton c
136136

137137
printVarName :: PC.VarName -> Doc ann
138138
printVarName (PC.VarName n _) = pretty n

lambda-buffers-codegen/src/LambdaBuffers/Codegen/Rust/Print/TyDef.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ printTyDef pkgs (PC.TyDef tyN tyabs _) = do
5353
(kw, generics, absDoc) <- printTyAbs pkgs tyN tyabs
5454
if kw /= SynonymTyDef
5555
then
56-
return
57-
$ printDeriveDebug
58-
<> hardline
59-
<> group (printTyDefKw kw <+> printTyName tyN <> generics)
60-
<> absDoc
56+
return $
57+
printDeriveDebug
58+
<> hardline
59+
<> group (printTyDefKw kw <+> printTyName tyN <> generics)
60+
<> absDoc
6161
else return $ group $ printTyDefKw kw <+> printTyName tyN <> generics <+> equals <+> absDoc
6262

6363
printTyDefKw :: TyDefKw -> Doc ann

0 commit comments

Comments
 (0)