It's not possible to tell how a function handles references (e.g. returns borrowed one, steals an argument) from usage (i.e. in a code review).