diff --git a/src/instruction.rs b/src/instruction.rs index 08a27bb..df07598 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -19,14 +19,14 @@ pub struct InstructionCollector{ instruction:Option, } impl InstructionCollector{ - 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>){ @@ -50,4 +50,4 @@ impl InstructionCollector{ None=>None, } } -} \ No newline at end of file +}