paleolimbot commented on code in PR #565:
URL: https://github.com/apache/sedona-db/pull/565#discussion_r2785016230


##########
rust/sedona/src/show.rs:
##########
@@ -316,29 +322,32 @@ impl<'a> DisplayTable<'a> {
     /// number of characters in other columns (based on user options).
     fn minimum_width(&self) -> Result<u16> {
         // Leftmost border
-        let mut total_size = 1;
-        let mut hidden_count = 0;
+        let mut total_size: u16 = 1;
+        let mut hidden_count: u16 = 0;
 
         for col in &self.columns {
             // Padding on both sides plus separator
-            total_size += 3;
+            total_size = total_size.saturating_add(3);

Review Comment:
   There is a comment `// Padding on both sides plus separator` but I am happy 
to clarify in a follow-up if needed!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to