simplify the code

This commit is contained in:
vms 2021-03-11 14:43:47 +03:00
parent eab7d746ef
commit 3d72d5885e

View File

@ -57,18 +57,13 @@ macro_rules! module_manifest {
}
const fn generate_manifest() -> [u8; __FCE_MANIFEST_SIZE] {
let authors = $authors;
let version = $version;
let description = $description;
let repository = $repository;
let manifest: [u8; __FCE_MANIFEST_SIZE] = [0; __FCE_MANIFEST_SIZE];
let offset = 0;
let (manifest, offset) = append_data(manifest, authors, offset);
let (manifest, offset) = append_data(manifest, version, offset);
let (manifest, offset) = append_data(manifest, description, offset);
let (manifest, _) = append_data(manifest, repository, offset);
let (manifest, offset) = append_data(manifest, $authors, offset);
let (manifest, offset) = append_data(manifest, $version, offset);
let (manifest, offset) = append_data(manifest, $description, offset);
let (manifest, _) = append_data(manifest, $repository, offset);
manifest
}