Add claude setting for rust fmt

This commit is contained in:
Greg Shuflin
2026-03-04 01:50:02 -08:00
parent 55f316f028
commit 6a7ce13761
+15
View File
@@ -0,0 +1,15 @@
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "FILE=$(jq -r '.tool_input.file_path'); if [[ \"$FILE\" == *.rs ]]; then rustfmt \"$FILE\" 2>/dev/null; fi"
}
]
}
]
}
}