chammika opened a new issue, #3205:
URL: https://github.com/apache/iggy/issues/3205

   Replace `if-then-panic!` patterns with `assert!` macros as suggested by 
clippy pedantic mode.
   
   Reproduce
   ```sh
   cargo clippy -- -W clippy::manual_assert
   ```
   
   Proposed fix by clippy
   
   ```rs
   // Before
   if !byte.is_ascii_digit() {
       panic!("Invalid digit in version number");
   }
   
   // After
   assert!(byte.is_ascii_digit(), "Invalid digit in version number");
   ```


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