Skip to content

Commit

Permalink
Format the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Sellig6792 committed Jan 5, 2023
1 parent 8b6a547 commit df75989
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/evaluation/evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use crate::ast::{InstructionTrait, InstructionType, PatternType};
use crate::evaluation::{Cell, Scopes};

pub struct Evaluator<T: InstructionTrait<T>>
where
T: Clone,
where
T: Clone,
{
program: Vec<T>,

Expand All @@ -17,8 +17,8 @@ pub struct Evaluator<T: InstructionTrait<T>>
}

impl<T: InstructionTrait<T> + 'static> Evaluator<T>
where
T: Clone,
where
T: Clone,
{
pub fn new(instructions: Vec<T>) -> Evaluator<T> {
Evaluator {
Expand Down Expand Up @@ -160,7 +160,9 @@ impl<T: InstructionTrait<T> + 'static> Evaluator<T>
}

match show_output {
None | Some(true) => println!("{}", String::from_utf8(self.output_buffer.clone()).unwrap()),
None | Some(true) => {
println!("{}", String::from_utf8(self.output_buffer.clone()).unwrap())
}
_ => (),
}
}
Expand Down

0 comments on commit df75989

Please sign in to comment.