Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
51
def
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
main
Function · 0.85
Calls
1
check_output
Method · 0.45
Tested by
no test coverage detected