From 9bdbf03d212ff855aeaefaef5a8aa62acb4bc30f Mon Sep 17 00:00:00 2001 From: Barsik Date: Wed, 15 Nov 2023 09:22:04 +0200 Subject: [PATCH] fix: fmt --- module/test/a/src/lib.rs | 17 ++++++++++------- module/test/b/src/lib.rs | 17 ++++++++++------- module/test/c/src/lib.rs | 17 ++++++++++------- 3 files changed, 30 insertions(+), 21 deletions(-) diff --git a/module/test/a/src/lib.rs b/module/test/a/src/lib.rs index 3b9acffd5a..e9b1860dae 100644 --- a/module/test/a/src/lib.rs +++ b/module/test/a/src/lib.rs @@ -1,14 +1,17 @@ -pub fn add(left: usize, right: usize) -> usize { +pub fn add( left : usize, right : usize ) -> usize +{ left + right } -#[cfg(test)] -mod tests { +#[ cfg( test ) ] +mod tests +{ use super::*; - #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); + #[ test ] + fn it_works() + { + let result = add( 2, 2 ); + assert_eq!( result, 4 ); } } diff --git a/module/test/b/src/lib.rs b/module/test/b/src/lib.rs index 3b9acffd5a..e9b1860dae 100644 --- a/module/test/b/src/lib.rs +++ b/module/test/b/src/lib.rs @@ -1,14 +1,17 @@ -pub fn add(left: usize, right: usize) -> usize { +pub fn add( left : usize, right : usize ) -> usize +{ left + right } -#[cfg(test)] -mod tests { +#[ cfg( test ) ] +mod tests +{ use super::*; - #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); + #[ test ] + fn it_works() + { + let result = add( 2, 2 ); + assert_eq!( result, 4 ); } } diff --git a/module/test/c/src/lib.rs b/module/test/c/src/lib.rs index 3b9acffd5a..e9b1860dae 100644 --- a/module/test/c/src/lib.rs +++ b/module/test/c/src/lib.rs @@ -1,14 +1,17 @@ -pub fn add(left: usize, right: usize) -> usize { +pub fn add( left : usize, right : usize ) -> usize +{ left + right } -#[cfg(test)] -mod tests { +#[ cfg( test ) ] +mod tests +{ use super::*; - #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); + #[ test ] + fn it_works() + { + let result = add( 2, 2 ); + assert_eq!( result, 4 ); } }