MCPcopy Index your code
hub / github.com/RustPython/RustPython / rustfmt

Function rustfmt

scripts/libc_posix.py:51–52  ·  view source on GitHub ↗
(code: str)

Source from the content-addressed store, hash-verified

49
50
51def rustfmt(code: str) -> str:
52 return subprocess.check_output(["rustfmt", "--emit=stdout"], input=code, text=True)
53
54
55@dataclasses.dataclass(eq=True, frozen=True, slots=True)

Callers 1

mainFunction · 0.85

Calls 1

check_outputMethod · 0.45

Tested by

no test coverage detected