Sign in
android
/
platform
/
external
/
n2
/
refs/heads/upstream
/
.
/
git-pre-commit
blob: 4abbcc2b930d4de5afb2c040a7426e6bd3d51f98 [
file
] [
log
] [
blame
] [
edit
]
#!/bin/bash
diff
=
$
(
cargo fmt
--
--
check
)
result
=
$
?
if
[[
$
{
result
}
-
ne
0
]]
;
then
echo
'run `cargo fmt`'
exit
1
fi