Ignore lints in autogenerated code

This commit is contained in:
2020-05-17 00:55:29 +01:00
parent 7003b56ce6
commit 49362a6606
123 changed files with 247 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ rm -f "$dest.rs"
rm -rf "$dest"
mkdir -p "$dest"
echo "#![allow(unused)]\n#![allow(clippy::all)]" > "$modfile"
echo "#![allow(unused)]" > "$modfile"
for file in $(ls -a $specs/*.xml); do
sed -i 's/tp:type=/tp:typehint=/g' "$file"
@@ -31,7 +31,9 @@ for file in $(ls -a $specs/*.xml); do
-a AsRefClosure \
-o "$out"
rustfmt $out
sed -i '1s/^/#![allow(clippy::all)]\n\n/' "$out"
rustfmt "$out"
echo "\nmod $name;\npub use self::$name::*;" >> "$modfile"
done