Closed OJarrisonn closed 4 weeks ago
Changing the method EditableConfig::from_integer to use the idiomatic TryFrom trait.
EditableConfig::from_integer
TryFrom
Since from_integer is a fallible convertion function, it's more appropriate to use TryFrom<usize>
from_integer
TryFrom<usize>
Also notice that the previous name says integer but receives an usize
usize
Hi again, @OJarrisonn, and thank you for this PR. Once more, a great and to the point change. Merged into the unstable branch with only some adaptations to the commit message.
Changing the method
EditableConfig::from_integer
to use the idiomaticTryFrom
trait.Since
from_integer
is a fallible convertion function, it's more appropriate to useTryFrom<usize>
Also notice that the previous name says integer but receives an
usize