Rework automatic code generation

This commit is contained in:
2020-05-17 23:23:45 +01:00
parent 1e481d4c9a
commit cb463336bc
123 changed files with 122 additions and 245 deletions

View File

@@ -31,11 +31,9 @@ for file in $(ls -a $specs/*.xml); do
-a AsRefClosure \
-o "$out"
sed -i '1s/^/#![allow(clippy::all)]\n\n/' "$out"
rustfmt "$out"
echo "\nmod $name;\npub use self::$name::*;" >> "$modfile"
echo "\n#[allow(clippy::all)]\nmod $name;\npub use self::$name::*;" >> "$modfile"
done
git -C telepathy-spec checkout -- .