From<i32> for SwapInterval
should be panic-less TryFrom<i32>
implementation
#1311
Labels
From<i32> for SwapInterval
should be panic-less TryFrom<i32>
implementation
#1311
Hi,
I've found that your implementation of
From<i32> for SwapInterval
panics if the given value is out of range. However,From
trait seems not intended to be used withpanic
; I would like to purpose replace it withTryFrom<i32>
implementation (this purpose is a breaking change).The text was updated successfully, but these errors were encountered: