aicers / giganto

Raw-Event Storage System for AICE
Apache License 2.0
6 stars 3 forks source link

Remove unnecessary `clone` #892

Closed msk closed 2 weeks ago

msk commented 2 weeks ago

In the check_address function, we were cloning the start and end fields of the IpRange struct. However, since we only need to dereference these fields to parse them as IpAddr, we can use as_deref instead of cloning.

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.97%. Comparing base (77fed66) to head (976561e).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #892 +/- ## ======================================= Coverage 76.97% 76.97% ======================================= Files 31 31 Lines 24879 24879 ======================================= Hits 19151 19151 Misses 5728 5728 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.