Unverified Commit 705f0f07 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Increase max line length for generated client code (#2835)

This PR increases the max line length on generated client code to reduce
the likelihood of rustfmt failing to format files.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 3a133b18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -170,7 +170,8 @@ class ClientCodegenVisitor(
            ),
        )
        try {
            "cargo fmt".runCommand(fileManifest.baseDir, timeout = settings.codegenConfig.formatTimeoutSeconds.toLong())
            // use an increased max_width to make rustfmt fail less frequently
            "cargo fmt -- --config max_width=150".runCommand(fileManifest.baseDir, timeout = settings.codegenConfig.formatTimeoutSeconds.toLong())
        } catch (err: CommandFailed) {
            logger.warning("Failed to run cargo fmt: [${service.id}]\n${err.output}")
        }