From 98f9e5ccf2dc9c2dbd7bf05a44c6d79d0c67d300 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Sun, 29 Oct 2023 19:04:34 +0000 Subject: [PATCH 1/2] Restyled by rustfmt --- client/src/calculations.rs | 1 + client/src/client.rs | 1 + client/src/main.rs | 2 +- client/src/mod.rs | 2 +- complex/src/complex_impl.rs | 2 +- complex/src/lib.rs | 2 +- server/src/handler.rs | 1 + server/src/image.rs | 1 + server/src/main.rs | 4 ++-- shared/src/lib.rs | 2 +- shared/src/types/complex.rs | 2 +- shared/src/types/messages.rs | 1 - shared/src/types/mod.rs | 2 +- shared/src/types/pixel_data.rs | 2 +- shared/src/types/pixel_intensity.rs | 2 +- shared/src/types/point.rs | 2 +- shared/src/types/range.rs | 2 +- shared/src/types/resolution.rs | 2 +- shared/src/types/u8data.rs | 2 +- shared/src/utils.rs | 1 + 20 files changed, 20 insertions(+), 16 deletions(-) diff --git a/client/src/calculations.rs b/client/src/calculations.rs index e69de29..8b13789 100644 --- a/client/src/calculations.rs +++ b/client/src/calculations.rs @@ -0,0 +1 @@ + diff --git a/client/src/client.rs b/client/src/client.rs index e69de29..8b13789 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -0,0 +1 @@ + diff --git a/client/src/main.rs b/client/src/main.rs index 332bf70..926c69e 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -1,3 +1,3 @@ fn main() { println!("[CLIENT] Hello, world!"); -} \ No newline at end of file +} diff --git a/client/src/mod.rs b/client/src/mod.rs index 482a15c..cd97638 100644 --- a/client/src/mod.rs +++ b/client/src/mod.rs @@ -1,2 +1,2 @@ pub mod calculations; -pub mod client; \ No newline at end of file +pub mod client; diff --git a/complex/src/complex_impl.rs b/complex/src/complex_impl.rs index 956aeb5..9102ffa 100644 --- a/complex/src/complex_impl.rs +++ b/complex/src/complex_impl.rs @@ -24,4 +24,4 @@ impl Complex { } } -fn main() {} \ No newline at end of file +fn main() {} diff --git a/complex/src/lib.rs b/complex/src/lib.rs index 2f14872..dcd5682 100644 --- a/complex/src/lib.rs +++ b/complex/src/lib.rs @@ -1 +1 @@ -pub mod complex_impl; \ No newline at end of file +pub mod complex_impl; diff --git a/server/src/handler.rs b/server/src/handler.rs index e69de29..8b13789 100644 --- a/server/src/handler.rs +++ b/server/src/handler.rs @@ -0,0 +1 @@ + diff --git a/server/src/image.rs b/server/src/image.rs index e69de29..8b13789 100644 --- a/server/src/image.rs +++ b/server/src/image.rs @@ -0,0 +1 @@ + diff --git a/server/src/main.rs b/server/src/main.rs index 8e9eab9..b6dafd8 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1,3 +1,3 @@ fn main() { -println!("[SERVER] Hello, world!"); -} \ No newline at end of file + println!("[SERVER] Hello, world!"); +} diff --git a/shared/src/lib.rs b/shared/src/lib.rs index 3f82d70..b4ab6a6 100644 --- a/shared/src/lib.rs +++ b/shared/src/lib.rs @@ -1,2 +1,2 @@ pub mod types; -pub mod utils; \ No newline at end of file +pub mod utils; diff --git a/shared/src/types/complex.rs b/shared/src/types/complex.rs index e9a0cff..eb5af30 100644 --- a/shared/src/types/complex.rs +++ b/shared/src/types/complex.rs @@ -2,4 +2,4 @@ pub struct Complex { pub re: f64, pub im: f64, -} \ No newline at end of file +} diff --git a/shared/src/types/messages.rs b/shared/src/types/messages.rs index e865623..c9f10f6 100644 --- a/shared/src/types/messages.rs +++ b/shared/src/types/messages.rs @@ -29,4 +29,3 @@ pub struct FragmentResult { pub pixel_data: PixelData, pub pixel_intensity: Vec, } - diff --git a/shared/src/types/mod.rs b/shared/src/types/mod.rs index ac67dab..762995b 100644 --- a/shared/src/types/mod.rs +++ b/shared/src/types/mod.rs @@ -1,7 +1,7 @@ pub mod complex; pub mod messages; -pub mod pixel_intensity; pub mod pixel_data; +pub mod pixel_intensity; pub mod point; pub mod range; pub mod resolution; diff --git a/shared/src/types/pixel_data.rs b/shared/src/types/pixel_data.rs index 70928b2..97a46a2 100644 --- a/shared/src/types/pixel_data.rs +++ b/shared/src/types/pixel_data.rs @@ -2,4 +2,4 @@ pub struct PixelData { pub offset: u32, pub count: u32, -} \ No newline at end of file +} diff --git a/shared/src/types/pixel_intensity.rs b/shared/src/types/pixel_intensity.rs index bdd2cf2..3cb22ca 100644 --- a/shared/src/types/pixel_intensity.rs +++ b/shared/src/types/pixel_intensity.rs @@ -2,4 +2,4 @@ pub struct PixelIntensity { pub zn: f32, pub count: f32, -} \ No newline at end of file +} diff --git a/shared/src/types/point.rs b/shared/src/types/point.rs index e5d397d..6f3397c 100644 --- a/shared/src/types/point.rs +++ b/shared/src/types/point.rs @@ -2,4 +2,4 @@ pub struct Point { pub x: f64, pub y: f64, -} \ No newline at end of file +} diff --git a/shared/src/types/range.rs b/shared/src/types/range.rs index 8c7cae5..ec111f1 100644 --- a/shared/src/types/range.rs +++ b/shared/src/types/range.rs @@ -4,4 +4,4 @@ use crate::types::point::Point; pub struct Range { pub min: Point, pub max: Point, -} \ No newline at end of file +} diff --git a/shared/src/types/resolution.rs b/shared/src/types/resolution.rs index 91d1435..a299bf9 100644 --- a/shared/src/types/resolution.rs +++ b/shared/src/types/resolution.rs @@ -2,4 +2,4 @@ pub struct Resolution { pub nx: u16, pub ny: u16, -} \ No newline at end of file +} diff --git a/shared/src/types/u8data.rs b/shared/src/types/u8data.rs index a89db68..df03c47 100644 --- a/shared/src/types/u8data.rs +++ b/shared/src/types/u8data.rs @@ -2,4 +2,4 @@ pub struct U8Data { pub offset: u32, pub count: u32, -} \ No newline at end of file +} diff --git a/shared/src/utils.rs b/shared/src/utils.rs index e69de29..8b13789 100644 --- a/shared/src/utils.rs +++ b/shared/src/utils.rs @@ -0,0 +1 @@ + From 38f704543bed92f493c5f027e0e77a8e3af81a6f Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Sun, 29 Oct 2023 19:04:35 +0000 Subject: [PATCH 2/2] Restyled by whitespace --- client/Cargo.toml | 2 +- complex/Cargo.toml | 2 +- server/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/Cargo.toml b/client/Cargo.toml index 095aaac..d5bd136 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -9,4 +9,4 @@ edition = "2021" [dependencies.shared] -path = "../shared" \ No newline at end of file +path = "../shared" diff --git a/complex/Cargo.toml b/complex/Cargo.toml index a9782f5..08eeff6 100644 --- a/complex/Cargo.toml +++ b/complex/Cargo.toml @@ -9,4 +9,4 @@ edition = "2021" [dependencies.shared] -path = "../shared" \ No newline at end of file +path = "../shared" diff --git a/server/Cargo.toml b/server/Cargo.toml index ecd5661..acacadf 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -9,4 +9,4 @@ edition = "2021" [dependencies.shared] -path = "../shared" \ No newline at end of file +path = "../shared"