From a0403b4325cc598e92f108b6b6fd7e7f815c92bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20S=C3=B6derstr=C3=B6m?= Date: Tue, 31 Oct 2023 02:36:39 +0100 Subject: [PATCH] style: format code --- src/program.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/program.rs b/src/program.rs index b06b16e..7bec077 100644 --- a/src/program.rs +++ b/src/program.rs @@ -234,7 +234,7 @@ impl InnerContext { #[derive(Debug, Clone)] pub struct Context<'a> { tool: Tool, - program: Arc> + program: Arc>, } impl<'a> Context<'a> { @@ -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. @@ -730,7 +733,6 @@ mod tests { ); } - #[test] #[allow(deprecated)] fn test_program_extend() -> Result<()> {