Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
tirithen committed Oct 31, 2023
1 parent 053ce10 commit a0403b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl InnerContext {
#[derive(Debug, Clone)]
pub struct Context<'a> {
tool: Tool,
program: Arc<Mutex<&'a Program>>
program: Arc<Mutex<&'a Program>>,
}

impl<'a> Context<'a> {
Expand Down Expand Up @@ -430,7 +430,10 @@ impl Program {
/// ```
pub fn context(&mut self, tool: Tool) -> Context {
self.create_context_if_missing_for_tool(&tool);
Context { tool, program: Arc::new(Mutex::new(self)) }
Context {
tool,
program: Arc::new(Mutex::new(self)),
}
}

/// This is the main way of adding cuts to a program.
Expand Down Expand Up @@ -730,7 +733,6 @@ mod tests {
);
}


#[test]
#[allow(deprecated)]
fn test_program_extend() -> Result<()> {
Expand Down

0 comments on commit a0403b4

Please sign in to comment.