This code is based on the example code in the rust book in the lifetimes chapter. I was wondering how do the following two versions of the same method differ: