From 4eb90e7c52bc867d5ad34bff05b3fd40964b5ec4 Mon Sep 17 00:00:00 2001 From: narawat Date: Wed, 29 Apr 2026 12:25:38 +0700 Subject: [PATCH] update --- Rectangle/rust/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rectangle/rust/src/main.rs b/Rectangle/rust/src/main.rs index 110535c..3daadd8 100644 --- a/Rectangle/rust/src/main.rs +++ b/Rectangle/rust/src/main.rs @@ -22,7 +22,7 @@ impl Rectangle { return Rectangle { width: l, hight: l }; } - fn can_hold(& self, rect_insert:& Rectangle) -> bool { + fn can_hold(&self, rect_insert:&Rectangle) -> bool { let mut width_holdable = false; let mut hight_holdable = false; if self.width > rect_insert.width || self.width > rect_insert.hight { @@ -41,7 +41,7 @@ impl Rectangle { return hold_result; } - fn area(& self) -> u64 { + fn area(&self) -> u64 { return self.hight * self.width }