File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
lambda-buffers-codegen/src/LambdaBuffers/Codegen/Rust/Print Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -129,10 +129,10 @@ printFieldName (PC.FieldName n _) = pretty . toSnakeCase $ n
129129
130130toSnakeCase :: Text -> Text
131131toSnakeCase = 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
137137printVarName :: PC. VarName -> Doc ann
138138printVarName (PC. VarName n _) = pretty n
Original file line number Diff line number Diff 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
6363printTyDefKw :: TyDefKw -> Doc ann
You can’t perform that action at this time.
0 commit comments