Closed affanshahid closed 1 year ago
ExchangeRate::convert moves the amount parameter even though it doesn't need to. Changed this to an immutable reference to prevent unnecessary moves/clones in user code.
ExchangeRate::convert
amount
good catch, thanks!
ExchangeRate::convert
moves theamount
parameter even though it doesn't need to. Changed this to an immutable reference to prevent unnecessary moves/clones in user code.