clippy::unnecessary_to_owned
lint for `unnecessary_to_owned` and fix the sole violation in the codebase