mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
Update regex to match diffs output by cargo fmt. (#208)
It appears the header of the diffs output by cargo fmt have changed. It now says "Diff in /blah/blah/blah.rs at line 99:" Matching on lines starting with + or - should be more future-proof against changes to the surroundings.
This commit is contained in:
@@ -96,7 +96,7 @@ do
|
|||||||
diff="$diff$(cargo fmt -- --skip-children --write-mode=diff $file)"
|
diff="$diff$(cargo fmt -- --skip-children --write-mode=diff $file)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if grep --quiet "^Diff at line" <<< "$diff"; then
|
if grep --quiet "^[-+]" <<< "$diff"; then
|
||||||
FMTRESULT=1
|
FMTRESULT=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user