MCPcopy Index your code
hub / github.com/github/copilot-sdk / rustfmt

Function rustfmt

scripts/codegen/rust.ts:2120–2129  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

2118// ── Format with rustfmt ─────────────────────────────────────────────────────
2119
2120async function rustfmt(filePath: string): Promise<void> {
2121 try {
2122 await execFileAsync("rustfmt", ["--edition", "2021", filePath]);
2123 } catch (e: unknown) {
2124 const error = e as { stderr?: string };
2125 console.warn(
2126 `rustfmt warning for ${path.basename(filePath)}: ${error.stderr || e}`,
2127 );
2128 }
2129}
2130
2131// ── Main ────────────────────────────────────────────────────────────────────
2132

Callers 1

generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…