tustvold commented on PR #5398:
URL: https://github.com/apache/arrow-rs/pull/5398#issuecomment-1944881703

   By default `atoi` allows for trailing content, the following ensures there 
is none.
   
   ```
   macro_rules! parser_primitive {
       ($t:ty) => {
           impl Parser for $t {
               fn parse(string: &str) -> Option<Self::Native> {
                   match 
atoi::FromRadix10SignedChecked::from_radix_10_signed_checked(string.as_bytes()) 
{
                       (Some(n), x) if x == string.len() => Some(n),
                       _ => None,
                   }
               }
           }
       };
   }
   ```
   


-- 
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