change variable name
This commit is contained in:
@@ -829,7 +829,7 @@ pub fn serialize<W:BinWriterExt>(block:&Block,writer:&mut W)->Result<(),binrw::E
|
||||
num_realtime_blocks:plan_realtime.len() as u32,
|
||||
};
|
||||
|
||||
let mut chrono_plan=Vec::with_capacity(plan_offline.len()+plan_realtime.len());
|
||||
let mut plan_order=Vec::with_capacity(plan_offline.len()+plan_realtime.len());
|
||||
let mut block_positions=Vec::with_capacity(file_header.block_position_count() as usize);
|
||||
let mut offline_blocks_timeline=Vec::with_capacity(plan_offline.len());
|
||||
let mut realtime_blocks_timeline=Vec::with_capacity(plan_realtime.len());
|
||||
@@ -848,7 +848,7 @@ pub fn serialize<W:BinWriterExt>(block:&Block,writer:&mut W)->Result<(),binrw::E
|
||||
});
|
||||
block_id+=1;
|
||||
|
||||
chrono_plan.push($plan);
|
||||
plan_order.push($plan);
|
||||
}
|
||||
}
|
||||
macro_rules! push_realtime{
|
||||
@@ -862,7 +862,7 @@ pub fn serialize<W:BinWriterExt>(block:&Block,writer:&mut W)->Result<(),binrw::E
|
||||
});
|
||||
block_id+=1;
|
||||
|
||||
chrono_plan.push($plan);
|
||||
plan_order.push($plan);
|
||||
}
|
||||
}
|
||||
// push three important blocks
|
||||
@@ -897,7 +897,7 @@ pub fn serialize<W:BinWriterExt>(block:&Block,writer:&mut W)->Result<(),binrw::E
|
||||
|
||||
file_header.write_le(writer)?;
|
||||
block_timelines.write_le(writer)?;
|
||||
for plan in chrono_plan{
|
||||
for plan in plan_order{
|
||||
for (event_type_id,range) in plan.0.into_iter().enumerate(){
|
||||
let event_type=EventType::from_usize(event_type_id);
|
||||
let event_chunk_header=EventChunkHeader{
|
||||
|
||||
Reference in New Issue
Block a user