mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 15:20:18 +00:00
simplify the code
This commit is contained in:
parent
eab7d746ef
commit
3d72d5885e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user