Rework automatic code generation
This commit is contained in:
@@ -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 -- .
|
||||
|
Reference in New Issue
Block a user