Those changes aren't groundbreaking.
One avoids allocating a new String every time a Network is converted to his string representation, a user can always call to_owned or clone on the static string to get the owned String.
The other one returns a reference to Network instead of copying it every time, I feel this is more correct since, for example, constants::hrp asks for a reference, therefore we can short circuit the two things without creating a temporary reference to a temporary copy only for this
Those changes aren't groundbreaking. One avoids allocating a new String every time a Network is converted to his string representation, a user can always call to_owned or clone on the static string to get the owned String. The other one returns a reference to Network instead of copying it every time, I feel this is more correct since, for example,
constants::hrp
asks for a reference, therefore we can short circuit the two things without creating a temporary reference to a temporary copy only for this