const opportunity
This commit is contained in:
parent
0375844f4f
commit
a819f93fa9
@ -19,14 +19,14 @@ pub struct InstructionCollector<I>{
|
||||
instruction:Option<I>,
|
||||
}
|
||||
impl<I> InstructionCollector<I>{
|
||||
pub fn new(time:Time)->Self{
|
||||
pub const fn new(time:Time)->Self{
|
||||
Self{
|
||||
time,
|
||||
instruction:None
|
||||
}
|
||||
}
|
||||
#[inline]
|
||||
pub fn time(&self)->Time{
|
||||
pub const fn time(&self)->Time{
|
||||
self.time
|
||||
}
|
||||
pub fn collect(&mut self,instruction:Option<TimedInstruction<I>>){
|
||||
|
Loading…
Reference in New Issue
Block a user