Ignore lints in autogenerated code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user