Updated to use .to_vec instead of .to_owned.

Just a small change, but it silences a warning.